cisco IOS XE 17.16.x — Displaying NETCONF-YANG Diagnostics Through RPCs

Device(config)# yang-interfaces aaa authentication method-list netconf-authn Device(config)# yang-interfaces aaa authorization method-list netconf-authr Device(config)# end Displaying NETCONF-YANG Diagnostics Through RPCs You can either use the show netconf-yang diagnostics command or the following RPCs to view the diagnostics information. The following is a sample RPC that enables NETCONF-YANG diagnostics, and the RPC response received from the host:

#308 xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:b0f45ac0-3fe2-4e1d-a3a1-f57985965be6"> xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-netconf-diag-rpc"> diag-maximum ## Received message from host version="1.0" ?> message-id="urn:uuid:b0f45ac0-3fe2-4e1d-a3a1-f57985965be6" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> The following is a sample RPC that shows the current status and the RPC response received from the host:

#294 xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c6c986ac-fc44-45e2-9390-f8a5968dc8d4"> xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-netconf-diag-oper"/> # Received message from host version="1.0" ?> message-id="urn:uuid:c6c986ac-fc44-45e2-9390-f8a5968dc8d4" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-netconf-diag-oper"> Model-Driven Programmability Displaying NETCONF-YANG Diagnostics Through RPCs Programmability Configuration Guide, Cisco IOS XE 17.16.x 190