NETCONF Configuration Guide
...
Monitoring
Monitoring
4 min
ietf netconf monitoring 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 get all server capabilities and schemas request example for get all capabilities and schemas via get \<filter type="subtree"> \<top xmlns="http //asterfusion com/ns/yang/asternos interfaces"> \<netconf state/> \</top> \</filter> response example \<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\&revision=2021 04 07\</capability> \<capability>urn\ ietf\ params\ xml\ ns\ yang\ ietf inet types?module=ietf inet types\&revision=2013 07 15\</capability> \<capability>urn\ ietf\ params\ xml\ ns\ yang\ ietf yang types?module=ietf yang types\&revision=2013 07 15\</capability> \<capability>urn\ ietf\ params\ xml\ ns\ netconf\ base 1 0?module=ietf netconf\&revision=2013 09 29\&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> get schema 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 \<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 \<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>
