Querying a Summary of IP Interface Status and Configuration Information
Querying a Summary of Interface Status and Configuration Information
GET http://<IP_Address>/api/mo/sys/ipv4/inst/dom-management/if-[mgmt0]/stat.json?rsp-subtree=full&rsp-foreign-subtree=ephemeral&batch-id=1&batch-size=10
{
"totalCount": "1",
"imdata": [
{
"ipv4IfStat": {
"attributes": {
"aclIn": "",
"aclOut": "",
"adminState": "up",
"bcastAddr": "255.255.255.255",
"directBcast": "disabled",
"dn": "sys/ipv4/inst/dom-management/if-[mgmt0]/stat",
"firstIod": "0",
"icmpRedirect": "enabled",
"iodValue": "2",
"ipDisabled": "TRUE",
"ipLoadSharing": "none",
"ipUnreach": "disabled",
"linkState": "up",
"localProxyArp": "disabled",
"mAddr": "",
"mRouting": "disabled",
"mtu": "1500",
"numAddr": "0",
"numMaddr": "0",
"numVaddr": "0",
"portUnreach": "enabled",
"pref": "0",
"priAddr": "10.77.143.134",
"priMasklen": "24",
"priRoutePref": "0",
"priSubnet": "10.77.143.0",
"priTag": "0",
"protoState": "up",
"proxyArp": "disabled",
"secAddr": "",
"secAddrMasklen": "",
"secAddrRoutePref": "",
"secAddrSubnet": "",
"secAddrTag": "",
"statsLastReset": "never",
"tag": "0",
"unnumChildIntf": "",
"unnumIntf": "",
"urpfMode": "none",
"vaddrClient": "",
"vaddrMasklen": "",
"vaddrPrefix": "",
"vaddrSubnet": "",
"vrfNameOut": "management"
}
}
},
{
"warning": {
"attributes": {
"text": "backend rv=43700005, Fetch complete"
}
}
}
]
}
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output Switch# show ip interface brief vrf management
IP Interface Status for VRF "management"(2)
Interface IP Address Interface Status
mgmt0 10.77.143.134 protocol-up/link-up/admin-up
switch(config)# show ip interface mgmt0
IP Interface Status for VRF "management"(2)
mgmt0, Interface status: protocol-up/link-up/admin-up, iod: 2,
IP address: 10.77.143.134, IP subnet: 10.77.143.0/24 route-preference: 0, tag:
0
IP broadcast address: 255.255.255.255
IP multicast groups locally joined: none
IP MTU: 1500 bytes (using link MTU)
IP primary address route-preference: 0, tag: 0
IP proxy ARP : disabled
IP Local Proxy ARP : disabled
IP multicast routing: disabled
IP icmp redirects: enabled
IP directed-broadcast: disabled
IP Forwarding: disabled
IP icmp unreachables (except port): disabled
IP icmp port-unreachable: enabled
IP unicast reverse path forwarding: none
IP load sharing: none
IP interface statistics last reset: never
IP interface software stats: (sent/received/forwarded/originated/consumed)
Unicast packets : 3244/5598/0/3244/11196
Unicast bytes : 491021/506181/0/491021/1012188
Multicast packets : 0/79282/0/0/0
Multicast bytes : 0/7948514/0/0/0
Broadcast packets : 0/5159/0/0/0
Broadcast bytes : 0/710173/0/0/0
Labeled packets : 0/0/0/0/0
Labeled bytes : 0/0/0/0/0
WCCP Redirect outbound: disabled
WCCP Redirect inbound: disabled
WCCP Redirect exclude: disabled
Note: The property information for this example was added in Release 9.3(3).
ipv4IfStat Properties
The following table contains information about the ipv4IfStat properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name Data Type Description Values aclIn string:Basic Acl In A sequence of characters aclOut string:Basic Acl Out A sequence of characters adminState string:Basic Admin State A sequence of characters bcastAddr address:IPv4 Broadcast Address Value must match ipv4 format directBcast nw:AdminSt
(scalar:Enum8)Directed Broadcast SELECTION: dn
reference:BinRefA tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. firstIod scalar:Uint64 First iod RANGE: [0, 18446744073709551615] icmpRedirect nw:AdminSt
(scalar:Enum8)Icmp Redirect SELECTION: iodValue scalar:Uint64 Iod Value RANGE: [0, 18446744073709551615] ipDisabled string:Basic IP Disabled A sequence of characters ipLoadSharing string:Basic IP Load Sharing Type A sequence of characters ipUnreach nw:AdminSt
(scalar:Enum8)IP Unreachable SELECTION: linkState string:Basic Link State A sequence of characters localProxyArp nw:AdminSt
(scalar:Enum8)Local Proxy Arp SELECTION: mAddr string:Basic IP Multicast Groups Address A sequence of characters mRouting nw:AdminSt
(scalar:Enum8)Multicast Routing SELECTION: mtu scalar:Uint16 MTU RANGE: [0, 65535] numAddr scalar:Uint32 Number of addresses RANGE: [0, 4294967295] numMaddr scalar:Uint32 Number of multicast addresses RANGE: [0, 4294967295] numVaddr scalar:Uint64 Number of virtual addresses RANGE: [0, 18446744073709551615] portUnreach nw:AdminSt
(scalar:Enum8)Port Unreachable SELECTION: pref scalar:UByte Preference RANGE: [0, 255] priAddr address:IPv4 Primary Address Value must match ipv4 format priMasklen scalar:UByte Primary Address Masklen RANGE: [0, 255] priRoutePref scalar:UByte Primary address route preference RANGE: [0, 255] priSubnet address:Subnet Primary Address Subnet priTag scalar:Uint32 Primary Address Tag RANGE: [0, 4294967295] protoState string:Basic Protocol state A sequence of characters proxyArp nw:AdminSt
(scalar:Enum8)Proxy Arp SELECTION: secAddr string:Basic Secondary IP Address A sequence of characters secAddrMasklen string:Basic Secondary Address Masklen A sequence of characters secAddrRoutePref string:Basic Secondary address route preference A sequence of characters secAddrSubnet string:Basic Secondary Address Subnet A sequence of characters secAddrTag string:Basic Secondary Address Tag A sequence of characters statsLastReset string:Basic Stats Last Reset A sequence of characters tag scalar:Uint32 Tag RANGE: [0, 4294967295] unnumChildIntf string:Basic Un-numbered child interface A sequence of characters unnumIntf string:Basic Unnumbered IP Interface A sequence of characters urpfMode string:Basic Unicast reverse path forwarding mode A sequence of characters vaddrClient string:Basic Virtual address client A sequence of characters vaddrMasklen string:Basic Virtual address masklen A sequence of characters vaddrPrefix string:Basic Virtual address prefix A sequence of characters vaddrSubnet string:Basic Virtual address subnet A sequence of characters vrfNameOut string:Basic Vrf Name Out A sequence of characters
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: