Retrieving NETCONF information
# Copy the following text to the client to retrieve NETCONF information:
<?xml version="1.0" encoding="UTF-8"?> <rpc message-id="m-641" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get> <filter type='subtree'> <netconf-state xmlns='urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring'> <getType/> </netconf-state> </filter> </get> </rpc>
The value for the <getType> parameter can be one of the following operations:
capabilities—Retrieves device capabilities.
datastores—Retrieves databases from the device.
schemas—Retrieves the list of the YANG file names from the device.
sessions—Retrieves session information from the device.
statistics—Retrieves NETCONF statistics.
If you do not specify a value for the <getType> parameter, the retrieval operation retrieves all NETCONF information.
The retrieval operation does not support data filtering.
After receiving the NETCONF information retrieval request, the device returns a response in the following format if the operation is successful:
<?xml version="1.0"?> <rpc-reply message-id="100" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> ALL NETCONF information </data> </rpc-reply>