XPath to collect interface statistics on IOS XE
- #xpath
- Last updated on
Cisco Platform
IOS XE
CLI
show interface
WLC’s version used
17.6.2
Yang Module
Cisco-IOS-XE-interfaces-oper
Prefix
interfaces-ios-xe-oper
XPath
/interfaces-ios-xe-oper:interfaces/interface
Example:
GET
curl -X 'GET' \
'http://<IP:PORT>/restconf/proxy/https://<IP:PORT>/restconf/data/Cisco-IOS-XE-interfaces-oper:interfaces/interface' \
-H 'accept: application/yang-data+json'
Sending
http://<IP:PORT>/restconf/proxy/https://<IP:PORT>/restconf/data/Cisco-IOS-XE-interfaces-oper:interfaces/interface
Received message from host
I’m just adding the output of the interesting field “description”
{
"Cisco-IOS-XE-interfaces-oper:interface": [
{
},
"vrf": "",
"ipv4": "0.0.0.0",
"ipv4-subnet-mask": "0.0.0.0",
"description": "Po1 --> C9348_Core1 Gig1/0/3",
"mtu": 1500,
"input-security-acl": "",
"output-security-acl": "",
"v4-protocol-stats": {
"in-pkts": "0",
"in-octets": "0",
"in-error-pkts": "0",
"in-forwarded-pkts": "0",
"in-forwarded-octets": "0",
"in-discarded-pkts": "0",
"out-pkts": "0",
"out-octets": "0",
"out-error-pkts": "0",
"out-forwarded-pkts": "0",
"out-forwarded-octets": "0",
"out-discarded-pkts": "0"
},