---
title: Monitoring
slug: enterprise-v6p1/RafH-monitoring
createdAt: 2025-12-18T08:39:37.724Z
---

# <font color="#1d50a2">IETF-NETCONF-Monitoring</font>

IETF-Netconf-Monitoring is a standard module defined in [RFC6022](https://datatracker.ietf.org/doc/html/rfc6022).

AsterNOS support part of the module, and introduce as following section.

## <font color="#1d50a2">Get All Server Capabilities and Schemas</font>

Request Example for get all capabilities and schemas via **get**

```xml
<filter type="subtree">
  <top xmlns="http://asterfusion.com/ns/yang/asternos-interfaces">
    <netconf-state/>
  </top>
</filter>
```

Response Example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:44fd2d94-642c-4f11-a727-969f88b2985d">
  <data>
    <top>
      <netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
        <capabilities>
          <capability>urn:ietf:params:netconf:base:1.1</capability>
          <capability>urn:ietf:params:netconf:capability:writable-running:1.0</capability>
          <capability>urn:ietf:params:netconf:capability:rollback-on-error:1.0</capability>
          <capability>urn:ietf:params:netconf:capability:validate:1.1</capability>
          <capability>urn:ietf:params:netconf:capability:startup:1.0</capability>
          <capability>urn:ietf:params:netconf:capability:url:1.0?scheme=http,ftp,file,scp,file,https,sftp</capability>
          <capability>urn:ietf:params:xml:ns:yang:1?module=yang&amp;revision=2021-04-07</capability>
          <capability>urn:ietf:params:xml:ns:yang:ietf-inet-types?module=ietf-inet-types&amp;revision=2013-07-15</capability>
          <capability>urn:ietf:params:xml:ns:yang:ietf-yang-types?module=ietf-yang-types&amp;revision=2013-07-15</capability>
          <capability>urn:ietf:params:xml:ns:netconf:base:1.0?module=ietf-netconf&amp;revision=2013-09-29&amp;features=writable-running,candidate,rollback-on-error,startup</capability>
          <capability>urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=explicit&also-supported=trim,report-all</capability>
          <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?module=ietf-netconf-monitoring&revision=2010-10-04&features=get-schema</capability>
        </capabilities>
        <datastores>
          <datastore>
            <name>running</name>
          </datastore>
          <datastore>
            <name>operational</name>
          </datastore>
          <datastore>
            <name>startup</name>
          </datastore>
        </datastores>
        <schemas>
          <schema>
            <identifier>asternos-bgp-neighbor</identifier>
            <version>2024-07-09</version>
            <format>yang</format>
            <namespace>http://asterfusion.com/ns/yang/</namespace>
            <location>NETCONF</location>
          </schema>
          <!-- omit other schemas for brevity -->
          <schema>
            <identifier>asternos-interfaces</identifier>
            <version>2025-08-25</version>
            <format>yang</format>
            <namespace>http://asterfusion.com/ns/yang/</namespace>
            <location>NETCONF</location>
          </schema>
          <schema>
            <identifier>openconfig-extensions</identifier>
            <version>2022-10-05</version>
            <format>yang</format>
            <namespace>http://asterfusion.com/ns/yang/</namespace>
            <location>NETCONF</location>
          </schema>
        </schemas>
      </netconf-state>
    </top>
  </data>
</rpc-reply>
```

## <font color="#1d50a2">Get-Schema</font>

:::hint{type="warning"}
**NOTE:**
User can retrieve supported schemas refer to **Get All Server Capabilities and Schemas**

This RPC retrieves the YANG schema corresponding to the specified identifier, version, and format.
:::

Request example to get asternos-interface yang schema via **get-schema**

```xml
<get-schema xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <identifier>asternos-aaa</identifier>
  <version>2025-04-28</version>
  <format>yang</format>
</get-schema>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:d3f9651c-f757-42e5-958f-18a8a9c83986">
  <data xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
  module asternos-aaa {
    yang-version 1.1;
    namespace "http://asterfusion.com/ns/yang/asternos-aaa" ;
    prefix aaa;

    organization
      "AsterFusion";

    contact
      "Asterfusion Support Page: https://support.asterfusion.com/";

    description
      "AsterNOS Model for Authentication, Accounting, Authorization";

    revision 2025-04-28 {
      description
        "Add radius as optional authentication login method.";
    }

    revision 2025-02-08 {
      description
        "Initial revision.";
    }

    container aaa {
      container accounting {
        description
          "AAA accounting";
        leaf-list protocol {
          type enumeration{
            enum tacacs+;
            enum local;
            enum radius;
          }
          max-elements 2;
          ordered-by user;
          default "local";
          description
            "AAA accounting protocol.";
        }
      }

      container authentication {
        description
          "AAA authentication";
        leaf-list protocol {
          type enumeration{
            enum local;
            enum tacacs+;
            enum radius;
          }
          max-elements 2;
          ordered-by user;
          default "local";
          description
            "AAA authentication login mode.
            Currently, when you set primary protocol to non-local,
            the sencond protocol can only be set to local.
            Otherwise,an error is raised out.";
        }
        leaf failthrough {
          type boolean;
          default false;
          description
            "Allow AAA fail-through";
        }
        leaf fallback {
          type boolean;
          default false;
          description
            "Allow AAA fallback";
        }
        leaf debug {
          type boolean;
          default false;
          description
            "Authentication debug";
        }
      }

      container authorization {
        description
          "AAA authentication";
        leaf-list protocol {
          type enumeration{
            enum tacacs+;
            enum local;
            enum radius;
          }
          max-elements 2;
          ordered-by user;
          default "local";
          description
            "AAA authorization protocol.";
        }
        leaf auth-service {
          type boolean;
          default false;
          description
            "AAA Authentication for service";
        }
        leaf auth-cmd {
          type boolean;
          default false;
          description
            "AAA Authentication for cmd";
        }
        leaf debug {
          type boolean;
          default false;
          description
            "Authentication debug";
        }
      }
    }

    rpc show-aaa {
      output {
        anydata data {
          description "Dispaly configuration of AAA  accounting, authentication and authorization.";
        }
      }
    }
  }
  </data>
</rpc-reply>
```

