Querying Interface and VLAN Counters and Statistics
The NX-API REST provides HTTP GET requests that query interface statistics and VLAN statistics. The information returned from these queries is useful in monitoring the performance of the switch.
Querying RMON Dot3 Ethernet Statistics
Querying RMON Dot3 Ethernet Statistics
GET http://<IP_Address>/api/node/mo/sys/intf/phys-[eth3/2]/dbgDot3Stats.json
{
"rmonDot3Stats": {
"attributes": {
"alignmentErrors": "0",
"babble": "0",
"carrierSenseErrors": "0",
"childAction": "",
"clearTs": "never",
"controlInUnknownOpcodes": "0",
"deferredTransmissions": "0",
"dn": "sys/intf/phys-[eth3/2]/dbgDot3Stats",
"excessiveCollisions": "0",
"fCSErrors": "0",
"frameTooLongs": "0",
"inPauseFrames": "0",
"inputdribble": "0",
"internalMacReceiveErrors": "0",
"internalMacTransmitErrors": "0",
"lateCollisions": "0",
"lostCarrierErrors": "0",
"modTs": "never",
"multipleCollisionFrames": "0",
"noCarrierErrors": "0",
"outPauseFrames": "0",
"runts": "0",
"sQETTestErrors": "0",
"singleCollisionFrames": "0",
"status": "",
"symbolErrors": "0"
}
}
}
The HTTP request shown in this section shows how to query RMON Dot3 Ethernet Statistics for a specified Ethernet interface. For detailed information on Dot3 Ethernet Statistics, see RFC 3635, " Definitions of Managed Objects for the Ethernet-like Interface Types" at the following URL.
https://tools.ietf.org/html/rfc3635
Note: The property information for this example was added in Release 9.3(3).
rmonDot3Stats Properties
The following table contains information about the rmonDot3Stats 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 |
---|---|---|---|
alignmentErrors | scalar:Uint64 | The alignment errors. | RANGE: [0, 18446744073709551615] |
babble | scalar:Uint64 | babble count | RANGE: [0, 18446744073709551615] |
carrierSenseErrors | scalar:Uint64 | The carrier sense errors. | RANGE: [0, 18446744073709551615] |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
clearTs | scalar:Date | Clear timestamp | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z DEFAULT: never |
controlInUnknownOpcodes | scalar:Uint64 | The control input unknown opcodes. | RANGE: [0, 18446744073709551615] |
deferredTransmissions | scalar:Uint64 | The deferred transmissions. | RANGE: [0, 18446744073709551615] |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
excessiveCollisions | scalar:Uint64 | The excessive collisions. | RANGE: [0, 18446744073709551615] |
fCSErrors | scalar:Uint64 | The frame check sequence errors. | RANGE: [0, 18446744073709551615] |
frameTooLongs | scalar:Uint64 | The frame too longs. | RANGE: [0, 18446744073709551615] |
inPauseFrames | scalar:Uint64 | The input pause frames. | RANGE: [0, 18446744073709551615] |
inputdribble | scalar:Uint64 | Input Dribble | RANGE: [0, 18446744073709551615] |
internalMacReceiveErrors | scalar:Uint64 | The internal MAC receive errors. | RANGE: [0, 18446744073709551615] |
internalMacTransmitErrors | scalar:Uint64 | The internal MAC transmit errors. | RANGE: [0, 18446744073709551615] |
lateCollisions | scalar:Uint64 | The late collisions. | RANGE: [0, 18446744073709551615] |
lostCarrierErrors | scalar:Uint64 | Lost Carrier Errors | RANGE: [0, 18446744073709551615] |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
multipleCollisionFrames | scalar:Uint64 | The multiple collision frames. | RANGE: [0, 18446744073709551615] |
noCarrierErrors | scalar:Uint64 | No Carrier Errors | RANGE: [0, 18446744073709551615] |
outPauseFrames | scalar:Uint64 | The output pause frames. | RANGE: [0, 18446744073709551615] |
runts | scalar:Uint64 | runts count | RANGE: [0, 18446744073709551615] |
sQETTestErrors | scalar:Uint64 | The SQET test errors. | RANGE: [0, 18446744073709551615] |
singleCollisionFrames | scalar:Uint64 | The single collision frames. | RANGE: [0, 18446744073709551615] |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
symbolErrors | scalar:Uint64 | The symbol errors. | RANGE: [0, 18446744073709551615] |
Related Documentation
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:
Querying Ethernet Statistics
Querying Ethernet Statistics
GET http://<IP_Address>/api/node/mo/sys/intf/phys-[eth1/1]/dbgEtherStats.json
{
"totalCount": "1",
"imdata": [
{
"rmonEtherStats": {
"attributes": {
"broadcastPkts": "0",
"cRCAlignErrors": "0",
"childAction": "",
"clearTs": "never",
"collisions": "0",
"dn": "sys/intf/phys-[eth1/1]/dbgEtherStats",
"dropEvents": "0",
"fragments": "0",
"ifdowndrop": "0",
"ignored": "0",
"jabbers": "0",
"modTs": "never",
"multicastPkts": "0",
"octets": "0",
"overrun": "0",
"oversizePkts": "0",
"pkts": "0",
"pkts1024to1518Octets": "0",
"pkts128to255Octets": "0",
"pkts256to511Octets": "0",
"pkts512to1023Octets": "0",
"pkts64Octets": "0",
"pkts65to127Octets": "0",
"rXNoErrors": "0",
"rxOversizePkts": "0",
"status": "",
"tXNoErrors": "0",
"txOversizePkts": "0",
"underrun": "0",
"undersizePkts": "0",
"watchdog": "0"
}
}
}
]
}
The example in this section queries Ethernet statistics for interrace eth1/1. For a description of the Ethernet statistics, see RFC 2819 at the following URL:
https://tools.ietf.org/html/rfc2819
Note: The property information for this example was added in Release 9.3(3).
rmonEtherStats Properties
The following table contains information about the rmonEtherStats 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 |
---|---|---|---|
broadcastPkts | scalar:Uint64 | Broadcast Packets | RANGE: [0, 18446744073709551615] |
cRCAlignErrors | scalar:Uint64 | The cyclic redundancy check align errors. | RANGE: [0, 18446744073709551615] |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
clearTs | scalar:Date | Clear timestamp | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z DEFAULT: never |
collisions | scalar:Uint64 | The collisions. | RANGE: [0, 18446744073709551615] |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
dropEvents | scalar:Uint64 | The drop event packets. | RANGE: [0, 18446744073709551615] |
fragments | scalar:Uint64 | The fragmented packets. | RANGE: [0, 18446744073709551615] |
ifdowndrop | scalar:Uint64 | If Down Drop | RANGE: [0, 18446744073709551615] |
ignored | scalar:Uint64 | Ignored Packets | RANGE: [0, 18446744073709551615] |
jabbers | scalar:Uint64 | The jabber frames. | RANGE: [0, 18446744073709551615] |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
multicastPkts | scalar:Uint64 | Multicast Packets | RANGE: [0, 18446744073709551615] |
octets | scalar:Uint64 | Octets | RANGE: [0, 18446744073709551615] |
overrun | scalar:Uint64 | Overrun Packets | RANGE: [0, 18446744073709551615] |
oversizePkts | scalar:Uint64 | The oversize packets. | RANGE: [0, 18446744073709551615] |
pkts | scalar:Uint64 | The packets. | RANGE: [0, 18446744073709551615] |
pkts1024to1518Octets | scalar:Uint64 | The packets with 1024 to 1518 octets. | RANGE: [0, 18446744073709551615] |
pkts128to255Octets | scalar:Uint64 | The packets with 128 to 255 octets. | RANGE: [0, 18446744073709551615] |
pkts256to511Octets | scalar:Uint64 | The packets with 256 to 511 octets. | RANGE: [0, 18446744073709551615] |
pkts512to1023Octets | scalar:Uint64 | The packets with 2512 to 1023 octets. | RANGE: [0, 18446744073709551615] |
pkts64Octets | scalar:Uint64 | The packets with 64 octets. | RANGE: [0, 18446744073709551615] |
pkts65to127Octets | scalar:Uint64 | The packets with 65 to 127 octets. | RANGE: [0, 18446744073709551615] |
rXNoErrors | scalar:Uint64 | The received packets with no errors. | RANGE: [0, 18446744073709551615] |
rxOversizePkts | scalar:Uint64 | The oversized received packets. | RANGE: [0, 18446744073709551615] |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
tXNoErrors | scalar:Uint64 | The transmitted packets with no errors. | RANGE: [0, 18446744073709551615] |
txOversizePkts | scalar:Uint64 | The oversized transmitted packets. | RANGE: [0, 18446744073709551615] |
underrun | scalar:Uint64 | Underrun Packets | RANGE: [0, 18446744073709551615] |
undersizePkts | scalar:Uint64 | The undersize packets. | RANGE: [0, 18446744073709551615] |
watchdog | scalar:Uint64 | Watchdog | RANGE: [0, 18446744073709551615] |
Related Documentation
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:
Querying RMON High Capacity Interface Input Statistics
Querying RMON High Capacity Interface Input Statistics
GET http://<IP_Address>/api/node/mo/sys/intf/phys-[eth1/1]/dbgIfHCIn.json
{
"totalCount": "1",
"imdata": [
{
"rmonIfHCIn": {
"attributes": {
"broadcastPkts": "0",
"childAction": "",
"clearTs": "never",
"dn": "sys/intf/phys-[eth1/1]/dbgIfHCIn",
"modTs": "never",
"multicastPkts": "0",
"octets": "0",
"status": "",
"ucastPkts": "0"
}
}
}
]
}
The example in this section queries high capacity interface input statistics for interface eth1/1.
Note: The property information for this example was added in Release 9.3(3).
rmonIfHCIn Properties
The following table contains information about the rmonIfHCIn 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 |
---|---|---|---|
broadcastPkts | scalar:Uint64 | Broadcast Packets | RANGE: [0, 18446744073709551615] |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
clearTs | scalar:Date | Clear timestamp | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z DEFAULT: never |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
multicastPkts | scalar:Uint64 | Multicast Packets | RANGE: [0, 18446744073709551615] |
octets | scalar:Uint64 | Octets | RANGE: [0, 18446744073709551615] |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
ucastPkts | scalar:Uint64 | Unicast Packets | RANGE: [0, 18446744073709551615] |
Related Documentation
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:
Querying RMON High Capacity Interface Output Statistics
Querying RMON High Capacity Interface Output Statistics
GET http://<IP_Address>/api/node/mo/sys/intf/phys-[eth1/1]/dbgIfHCOut.json
{
"totalCount": "1",
"imdata": [
{
"rmonIfHCOut": {
"attributes": {
"broadcastPckts": "0",
"broadcastPkts": "0",
"childAction": "",
"clearTs": "never",
"dn": "sys/intf/phys-[eth1/1]/dbgIfHCOut",
"modTs": "never",
"multicastPkts": "0",
"octets": "0",
"status": "",
"ucastPkts": "0"
}
}
}
]
}
The example in this section queries high capacity interface output statistics for interface eht1/1.
Note: The property information for this example was added in Release 9.3(3).
rmonIfHCOut Properties
The following table contains information about the rmonIfHCOut 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 |
---|---|---|---|
broadcastPckts | scalar:Uint64 | The broadcast packets. | RANGE: [0, 18446744073709551615] |
broadcastPkts | scalar:Uint64 | Broadcast Packets | RANGE: [0, 18446744073709551615] |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
clearTs | scalar:Date | Clear timestamp | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z DEFAULT: never |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
multicastPkts | scalar:Uint64 | Multicast Packets | RANGE: [0, 18446744073709551615] |
octets | scalar:Uint64 | Octets | RANGE: [0, 18446744073709551615] |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
ucastPkts | scalar:Uint64 | Unicast Packets | RANGE: [0, 18446744073709551615] |
Related Documentation
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:
Querying Interface Input Counters
Querying Interface Input Counters
GET http://172.31.200.187/api/node/mo/sys/intf/phys-[eth1/1]/dbgIfIn.json
{
"totalCount": "1",
"imdata": [
{
"rmonIfIn": {
"attributes": {
"broadcastPkts": "0",
"childAction": "",
"clearTs": "never",
"discards": "0",
"dn": "sys/intf/phys-[eth1/1]/dbgIfIn",
"errors": "0",
"modTs": "never",
"multicastPkts": "0",
"nUcastPkts": "0",
"noBuffer": "0",
"octetRate": "0",
"octets": "0",
"packetRate": "0",
"rateInterval": "738263040",
"status": "",
"ucastPkts": "0",
"unknownEtype": "0",
"unknownProtos": "0"
}
}
}
]
}
The example in this section queries interface input counters for interface eth1/1.
Note: The property information for this example was added in Release 9.3(3).
rmonIfIn Properties
The following table contains information about the rmonIfIn 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 |
---|---|---|---|
broadcastPkts | scalar:Uint64 | Broadcast Packets | RANGE: [0, 18446744073709551615] |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
clearTs | scalar:Date | Clear timestamp | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z DEFAULT: never |
discards | scalar:Uint64 | Discard Packets | RANGE: [0, 18446744073709551615] |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
errors | scalar:Uint64 | Error Packets | RANGE: [0, 18446744073709551615] |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
multicastPkts | scalar:Uint64 | Multicast Packets | RANGE: [0, 18446744073709551615] |
nUcastPkts | scalar:Uint64 | Non Unicast Packets | RANGE: [0, 18446744073709551615] |
noBuffer | scalar:Uint64 | No Buffer | RANGE: [0, 18446744073709551615] |
octetRate | scalar:Uint64 | Octet Rate | RANGE: [0, 18446744073709551615] |
octets | scalar:Uint64 | Octets | RANGE: [0, 18446744073709551615] |
packetRate | scalar:Uint64 | Packet Rate | RANGE: [0, 18446744073709551615] |
rateInterval | scalar:Uint32 | Rate Interval | RANGE: [0, 4294967295] |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
ucastPkts | scalar:Uint64 | Unicast Packets | RANGE: [0, 18446744073709551615] |
unknownEtype | scalar:Uint64 | Unknown Ether Type Packets | RANGE: [0, 18446744073709551615] |
unknownProtos | scalar:Uint64 | The unknown protocol packets. | RANGE: [0, 18446744073709551615] |
Related Documentation
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:
Querying Interface Output Counters
Querying Interface Output Counters
GET http://<IP_Address>/api/node/mo/sys/intf/phys-[eth1/1]/dbgIfOut.json
{
"totalCount": "1",
"imdata": [
{
"rmonIfOut": {
"attributes": {
"broadcastPkts": "0",
"childAction": "",
"clearTs": "never",
"discards": "0",
"dn": "sys/intf/phys-[eth1/1]/dbgIfOut",
"errors": "0",
"modTs": "never",
"multicastPkts": "0",
"nUcastPkts": "0",
"octetRate": "0",
"octets": "0",
"packetRate": "0",
"qLen": "0",
"rateInterval": "738263040",
"status": "",
"ucastPkts": "0"
}
}
}
]
}
Note: The property information for this example was added in Release 9.3(3).
rmonIfOut Properties
The following table contains information about the rmonIfOut 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 |
---|---|---|---|
broadcastPkts | scalar:Uint64 | Broadcast Packets | RANGE: [0, 18446744073709551615] |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
clearTs | scalar:Date | Clear timestamp | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z DEFAULT: never |
discards | scalar:Uint64 | Discard Packets | RANGE: [0, 18446744073709551615] |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
errors | scalar:Uint64 | Error Packets | RANGE: [0, 18446744073709551615] |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
multicastPkts | scalar:Uint64 | Multicast Packets | RANGE: [0, 18446744073709551615] |
nUcastPkts | scalar:Uint64 | Non Unicast Packets | RANGE: [0, 18446744073709551615] |
octetRate | scalar:Uint64 | Octet Rate | RANGE: [0, 18446744073709551615] |
octets | scalar:Uint64 | Octets | RANGE: [0, 18446744073709551615] |
packetRate | scalar:Uint64 | Packet Rate | RANGE: [0, 18446744073709551615] |
qLen | scalar:Uint64 | The queue length packets. | RANGE: [0, 18446744073709551615] |
rateInterval | scalar:Uint32 | Rate Interval | RANGE: [0, 4294967295] |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
ucastPkts | scalar:Uint64 | Unicast Packets | RANGE: [0, 18446744073709551615] |
Related Documentation
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:
Querying VLAN Statistics
Querying VLAN Statistics
GET http://<IP_Address>/api/node/mo/sys/bd/bd-[vlan-1].json?query-target=subtree
{
"totalCount": "3",
"imdata": [
{
"l2EpRetPol": {
"attributes": {
"bounceAgeIntvl": "630",
"bounceTrig": "protocol",
"childAction": "",
"descr": "",
"dn": "sys/bd/bd-[vlan-1]/epret",
"holdIntvl": "300",
"lcOwn": "local",
"localEpAgeIntvl": "900",
"modTs": "2015-08-06T17:51:01.934+00:00",
"moveFreq": "256",
"name": "",
"remoteEpAgeIntvl": "300",
"status": ""
}
}
},
{
"l2VlanStats": {
"attributes": {
"childAction": "",
"clearTs": "never",
"dn": "sys/bd/bd-[vlan-1]/dbgVlanStats",
"inBcastOctets": "0",
"inBcastPkts": "0",
"inL3UcastOctets": "0",
"inL3UcastPkts": "0",
"inMcastOctets": "0",
"inMcastPkts": "0",
"inUcastOctets": "0",
"inUcastPkts": "0",
"modTs": "never",
"outUcastOctets": "0",
"outUcastPkts": "0",
"status": ""
}
}
},
{
"l2BD": {
"attributes": {
"accEncap": "unknown",
"adminSt": "active",
"bdDefDn": "",
"bridgeMode": "mac",
"childAction": "",
"createTs": "1970-01-01T00:00:00.000+00:00",
"ctrl": "",
"dn": "sys/bd/bd-[vlan-1]",
"epOperSt": "",
"fabEncap": "vlan-1",
"fwdCtrl": "mdst-flood",
"fwdMode": "bridge,route",
"hwId": "0",
"id": "1",
"lcOwn": "local",
"modTs": "2015-08-06T17:51:01.934+00:00",
"mode": "CE",
"monPolDn": "",
"name": "",
"operSt": "down",
"pcTag": "any",
"status": "",
"type": "bd-regular",
"unkMacUcastAct": "proxy",
"unkMcastAct": "flood",
"vlanmgrCfgFailedBmp": "",
"vlanmgrCfgFailedTs": "00:00:00:00.000",
"vlanmgrCfgState": "0"
}
}
}
]
}
You can also query VLAN statistics objects for a specified VLAN. The example in this section queries the VLAN statistics objects for VLAN-1.
Note: The property information for this example was added in Release 9.3(3).
l2EpRetPol Properties
The following table contains information about the l2EpRetPol 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 |
---|---|---|---|
bounceAgeIntvl | l2:BounceEpAgeIntvl scalar:Uint16 | Represents aging interval for bounce entry @@@ Used when the Ep (VM) is moving from one TOR @@@ to another TOR. Ep is marked as bouncing for the @@@ specified age interval and is deleted afterwards | RANGE:
Min: 0
Max: 0
RANGE:
Min: 150
Max: 0xffff |
bounceTrig | l2:BounceTrig scalar:Bitmask8 | Bounce trigger | SELECTION:
|
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
descr | naming:Descr string:Basic | Specifies a control instrumentation description. | RANGE: Min: "0" Max: "128" |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
holdIntvl | l2:HoldIntvl scalar:Uint16 | If the EP move frequency is exceeded | RANGE:
Min: 5
Max: 0xffff |
lcOwn | NA | NA | NA |
localEpAgeIntvl | l2:LocalEpAgeIntvl scalar:Uint16 | This represents aging interval for all local endpoints learned in this BD. Once we reach 75% of this interval is reached | RANGE:
Min: 0
Max: 0
RANGE:
Min: 120
Max: 0xffff |
modTs | mo:TStamp scalar:Date | The time when this object was last modified. | SELECTION:
|
moveFreq | l2:MoveFreq scalar:Uint16 | EP move frequency | RANGE:
Min: 0
Max: 0xffff |
name | pol:ObjName string:Basic | null | RANGE: Min: "0" Max: "64" |
remoteEpAgeIntvl | l2:RemoteEpAgeIntvl scalar:Uint16 | This represents aging interval for all remote endpoints learned in this BD. The remote endpoints are learned through conversational learning | RANGE:
Min: 0
Max: 0
RANGE:
Min: 120
Max: 0xffff |
status | mo:ModificationStatus scalar:Bitmask32 | The upgrade status. This property is for internal use only. | SELECTION:
|
l2VlanStats Properties
The following table contains information about the l2VlanStats 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 |
---|---|---|---|
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
clearTs | scalar:Date | Clear timestamp | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z DEFAULT: never |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
inBcastOctets | scalar:Uint64 | Broadcast Octets | RANGE: [0, 18446744073709551615] |
inBcastPkts | scalar:Uint64 | Broadcast packets | RANGE: [0, 18446744073709551615] |
inL3UcastOctets | scalar:Uint64 | ingress L3 SVI Unicast Octets | RANGE: [0, 18446744073709551615] |
inL3UcastPkts | scalar:Uint64 | ingress L3 SVI Unicast Packets | RANGE: [0, 18446744073709551615] |
inMcastOctets | scalar:Uint64 | Multicast Octets | RANGE: [0, 18446744073709551615] |
inMcastPkts | scalar:Uint64 | Multicast packets | RANGE: [0, 18446744073709551615] |
inUcastOctets | scalar:Uint64 | ucastOctets | RANGE: [0, 18446744073709551615] |
inUcastPkts | scalar:Uint64 | Unicast packets | RANGE: [0, 18446744073709551615] |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
outUcastOctets | scalar:Uint64 | ucastOctets | RANGE: [0, 18446744073709551615] |
outUcastPkts | scalar:Uint64 | Unicast packets | RANGE: [0, 18446744073709551615] |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
l2BD Properties
The following table contains information about the l2BD 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 |
---|---|---|---|
accEncap | base:Encap | The Layer 2 access encapsulation (VLAN or VNID). | SELECTION: unknown, vlan-%d or vxlan-%d |
adminSt | l2:DomAdminSt (scalar:Enum8) | admin state | SELECTION: 1 - suspend 2 - active DEFAULT: active |
bdDefDn | reference:BinRef | The bridge domain name. | |
bridgeMode | l2:BridgeMode (scalar:Enum8) | The Layer 2 bridge-domain parameter mode used by the node for enabling classical bridging or bridging with the IP address. | SELECTION: 1 - ip 2 - mac DEFAULT: mac |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
createTs | scalar:Date | creation time | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z |
ctrl | l2:DomCtrl (scalar:Bitmask32) | The control state. | SELECTION: 0 - none 1 - untagged 2 - policy-enforced DEFAULT: none |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
epOperSt | epm:BdOperSt scalar:Bitmask8 | SELECTION:
| |
fabEncap | base:Encap | The Layer 2 bridge-domain Fabric encapsulation (VNID). | SELECTION: unknown, vlan-%d or vxlan-%d |
fwdCtrl | l2:FwdCtrl (scalar:Bitmask32) | The Layer 2 bridge-domain forwarding controls. | SELECTION: 1 - mdst-flood 2 - arp-flood DEFAULT: mdst-flood |
fwdMode | l2:FwdMode (scalar:Bitmask8) | The Layer 2 bridge-domain parameter mode used by the node for enabling forwarding modes. | SELECTION: 1 - route 2 - bridge DEFAULT: route,bridge |
hwId | l2:DomId (scalar:Uint32) | Internal domain id | RANGE: [1 , 4096] |
id | l2:DomId (scalar:Uint32) | domain id | RANGE: [1 , 4096] |
lcOwn | NA | NA | NA |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
mode | l2:DomMode (scalar:Enum8) | Vlan mode | SELECTION: 1 - CE 2 - FabricPath DEFAULT: CE |
monPolDn | reference:BinRef | The monitoring policy for the Layer 2 bridge-domain object. | |
name | naming:Name256 (string:Basic) | The name of the object. | MAX SIZE: 128 |
operSt | l2:DomOperSt (scalar:Enum8) | oper state | SELECTION: 1 - up 2 - down 3 - unknown DEFAULT: down |
pcTag | actrl:PcTag scalar:Uint32 | The default classId for the unknown Unicast traffic terminating on the L2 bridge-domain. | SELECTION:
|
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
type | l2:DomType scalar:Enum8 | domain type | SELECTION:
|
unkMacUcastAct | l2:UnkMacUcastAct scalar:Enum8 | The classical bridge-domain parameter used by the node for forwarding data for an unknown mac Unicast destination. | SELECTION:
|
unkMcastAct | l2:UnkMcastAct scalar:Enum8 | SELECTION:
| |
vlanmgrCfgFailedBmp | scalar:Bitmask64 | null | SELECTION:
|
vlanmgrCfgFailedTs | scalar:Uint64 | ||
vlanmgrCfgState | scalar:UByte | null |
Related Documentation
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:
Querying SVI Statistics
Querying SVI Statistics
GET http://172.31.200.187/api/node/mo/sys/intf/svi-[vlan30].json
{
"sviIf": {
"attributes": {
"adminSt": "up",
"autostate": "yes",
"bw": "1000000",
"carDel": "100",
"childAction": "",
"ctrlrId": "",
"delay": "1",
"descr": "",
"dn": "sys/intf/svi-[vlan30]",
"id": "vlan30",
"inbMgmt": "no",
"iod": "3",
"loadIntvl1": "60",
"loadIntvl2": "300",
"loadIntvl3": "60",
"mac": "64:3A:EA:32:7D:79",
"medium": "bcast",
"modTs": "2021-07-13T23:23:03.020+00:00",
"mtu": "1500",
"mtuInherit": "yes",
"name": "",
"operSt": "up",
"operStQual": "unknown",
"snmpTrap": "yes",
"status": "",
"vlanId": "30",
"vlanT": "bd-regular"
},
"children": [
{
"nwRtVrfMbr": {
"attributes": {
"childAction": "",
"dn": "sys/intf/svi-[vlan30]/rtvrfMbr",
"l3vmCfgFailedBmp": "",
"l3vmCfgFailedTs": "0",
"l3vmCfgState": "0",
"modTs": "2021-07-13T23:23:02.864+00:00",
"parentSKey": "unspecified",
"status": "",
"tCl": "l3Inst",
"tDn": "sys/inst-default",
"tSKey": ""
}
}
},
{
"rmonIfIn": {
"attributes": {
"broadcastPkts": "0",
"clearTs": "never",
"discards": "0",
"dn": "sys/intf/svi-[vlan30]/dbgIfIn",
"errors": "0",
"modTs": "2021-07-16T06:21:04.727+00:00",
"multicastPkts": "0",
"nUcastPkts": "0",
"noBuffer": "0",
"octetRate": "0",
"octets": "2120",
"packetRate": "0",
"rateInterval": "0",
"ucastPkts": "20",
"unknownEtype": "0",
"unknownProtos": "0"
}
}
},
{
"rmonIfOut": {
"attributes": {
"broadcastPkts": "0",
"clearTs": "never",
"discards": "0",
"dn": "sys/intf/svi-[vlan30]/dbgIfOut",
"errors": "0",
"modTs": "2021-07-16T06:21:04.727+00:00",
"multicastPkts": "0",
"nUcastPkts": "0",
"octetRate": "0",
"octets": "0",
"packetRate": "0",
"qLen": "0",
"rateInterval": "0",
"ucastPkts": "0"
}
}
},
{
"sviOperSvi": {
"attributes": {
"adminSt": "up",
"dn": "sys/intf/svi-[vlan30]/svi",
"ifIndex": "151060510",
"iod": "3",
"modTs": "2021-07-15T19:13:49.938+00:00",
"operAutoState": "yes",
"operBw": "1000000",
"operCarrierDelayMsec": "100",
"operCarrierDelaySec": "0",
"operDelay": "1",
"operDescr": "",
"operLastChgSec": "1626376429",
"operLastChgUsec": "938381",
"operLoadIntvl1": "60",
"operLoadIntvl2": "300",
"operLoadIntvl3": "60",
"operMac": "64:3A:EA:32:7D:79",
"operMtu": "1500",
"operStQual": "unknown"
}
}
}
]
}
}
The example in this section queries SVI Statistics for interface vlan 30.
Note: The property information for this example was added in Release 10.2(1)F.
rmonIfIn Properties
The following table contains information about the rmonIfIn properties in the DME payload that are relevant for the SVI. 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 |
---|---|---|---|
clearTs | scalar:Date | Clear timestamp | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z DEFAULT: never |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
octets | scalar:Uint64 | Octets | RANGE: [0, 18446744073709551615] |
ucastPkts | scalar:Uint64 | Unicast Packets | RANGE: [0, 18446744073709551615] |
Related Documentation
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:
Querying Interface Queuing Counters
Querying Interface Queuing Counters
POST https://{{host}}/api/node/mo/sys/ipqos/queuing/policy/out/intf-[eth1/40]/queCmap-c-out-8q-q3-stats-queuing.json
{
"totalCount": "1",
"imdata": [
{
"ipqosQueuingStats": {
"attributes": {
"cmapName": "c-out-8q-q3",
"currQueueDepth": "1466400",
"dn": "sys/ipqos/queuing/policy/out/intf-[eth1/40]/queCmap-c-out-8q-q3-stats-queuing",
"dropBytes": "376179900",
"dropPackets": "125393300",
"ingQDepthBytes": "91104",
"ingQDropPackets": "783978242",
"maxQueueDepth": "0",
"modTs": "2021-07-15T09:26:41.822+00:00",
"pfcRxPpp": "919199",
"pfcTxPpp": "5196435",
"pfcwdFlushedPackets": "0",
"pfcwdRestoredCount": "0",
"pfcwdShutdownCount": "0",
"pmapName": "queuint_qLink1",
"randDropBytes": "0",
"randDropPackets": "0",
"randEcnMarkedPackets": "0",
"statType": "queuing",
"txBytes": "1127003856000",
"txPackets": "1127003856"
}
}
}
]
}
POST https://{{host}}/api/node/mo/sys/ipqos/queuing/policy/in/intf-[eth1/40]/queCmap-c-in-q3-stats-queuing.json
Response:
{
"totalCount": "1",
"imdata": [
{
"ipqosQueuingStats": {
"attributes": {
"cmapName": "c-in-q3",
"currQueueDepth": "0",
"dn": "sys/ipqos/queuing/policy/in/intf-[eth1/40]/queCmap-c-in-q3-stats-queuing",
"dropBytes": "0",
"dropPackets": "0",
"ingQDepthBytes": "91104",
"ingQDropPackets": "793466348",
"maxQueueDepth": "0",
"modTs": "2021-07-15T09:44:29.537+00:00",
"pfcRxPpp": "929876",
"pfcTxPpp": "5260067",
"pfcwdFlushedPackets": "0",
"pfcwdRestoredCount": "0",
"pfcwdShutdownCount": "0",
"pmapName": "ing_queue_qLink1",
"randDropBytes": "0",
"randDropPackets": "0",
"randEcnMarkedPackets": "0",
"statType": "queuing",
"txBytes": "0",
"txPackets": "0"
}
}
}
]
}
Request:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<get>
<filter>
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<ipqos-items>
<queuing-items>
<policy-items>
<out-items>
<intf-items>
<If-list>
<name>eth1/40</name>
<queCmap-items>
<QueuingStats-list>
<cmapName>c-out-8q-q3</cmapName>
<statType>queuing</statType>
</QueuingStats-list>
</queCmap-items>
</If-list>
</intf-items>
</out-items>
</policy-items>
</queuing-items>
</ipqos-items>
</System>
</filter>
</get>
</rpc>
Response:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<data>
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<ipqos-items>
<queuing-items>
<policy-items>
<out-items>
<intf-items>
<If-list>
<name>eth1/40</name>
<queCmap-items>
<QueuingStats-list>
<cmapName>c-out-8q-q3</cmapName>
<statType>queuing</statType>
<currQueueDepth>1466400</currQueueDepth>
<dropBytes>376179900</dropBytes>
<dropPackets>125393300</dropPackets>
<ingQDepthBytes>91104</ingQDepthBytes>
<ingQDropPackets>783978242</ingQDropPackets>
<pfcRxPpp>919199</pfcRxPpp>
<pfcTxPpp>5196435</pfcTxPpp>
<pfcwdFlushedPackets>0</pfcwdFlushedPackets>
<pfcwdRestoredCount>0</pfcwdRestoredCount>
<pfcwdShutdownCount>0</pfcwdShutdownCount>
<pmapName>queuint_qLink1</pmapName>
<randEcnMarkedPackets>0</randEcnMarkedPackets>
<txBytes>1127003856000</txBytes>
<txPackets>1127003856</txPackets>
</QueuingStats-list>
</queCmap-items>
</If-list>
</intf-items>
</out-items>
</policy-items>
</queuing-items>
</ipqos-items>
</System>
</data>
</rpc-reply>
Request:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<get>
<filter>
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<ipqos-items>
<queuing-items>
<policy-items>
<in-items>
<intf-items>
<If-list>
<name>eth1/40</name>
<queCmap-items>
<QueuingStats-list>
<cmapName>c-in-q3</cmapName>
<statType>queuing</statType>
</QueuingStats-list>
</queCmap-items>
</If-list>
</intf-items>
</in-items>
</policy-items>
</queuing-items>
</ipqos-items>
</System>
</filter>
</get>
</rpc>
Response:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<data>
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<ipqos-items>
<queuing-items>
<policy-items>
<in-items>
<intf-items>
<If-list>
<name>eth1/40</name>
<queCmap-items>
<QueuingStats-list>
<cmapName>c-in-q3</cmapName>
<statType>queuing</statType>
<currQueueDepth>0</currQueueDepth>
<dropBytes>0</dropBytes>
<dropPackets>0</dropPackets>
<ingQDepthBytes>91104</ingQDepthBytes>
<ingQDropPackets>793466348</ingQDropPackets>
<pfcRxPpp>929876</pfcRxPpp>
<pfcTxPpp>5260067</pfcTxPpp>
<pfcwdFlushedPackets>0</pfcwdFlushedPackets>
<pfcwdRestoredCount>0</pfcwdRestoredCount>
<pfcwdShutdownCount>0</pfcwdShutdownCount>
<pmapName>ing_queue_qLink1</pmapName>
<randEcnMarkedPackets>0</randEcnMarkedPackets>
<txBytes>0</txBytes>
<txPackets>0</txPackets>
</QueuingStats-list>
</queCmap-items>
</If-list>
</intf-items>
</in-items>
</policy-items>
</queuing-items>
</ipqos-items>
</System>
</data>
</rpc-reply>
The example in this section queries interface queuing counters for interface eth1/40, QoS Group 3.
Note: The property information for this example was added in Release 10.2(1)F.
ipqosQueuingStats Properties
The following table contains information about the QueuingStats 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 | Description | Data Type | Values |
---|---|---|---|
txPackets | Transmit packet count | scalar:Uint64 | RANGE: [0, 18446744073709551615] |
txBytes | Transmit byte count | scalar:Uint64 | RANGE: [0, 18446744073709551615] |
dropPackets | Drop packet count | scalar:Uint64 | RANGE: [0, 18446744073709551615] |
dropBytes | Drop byte count | scalar:Uint64 | RANGE: [0, 18446744073709551615] |
currQueueDepth | Current queue depth in bytes | scalar:Uint64 | RANGE: [0, 18446744073709551615] |
pfcTxPpp | Priority-based Flow Control Per Port Pause Transmitted Packet count | scalar:Uint64 | RANGE: [0, 18446744073709551615] |
ingQDropPackets | Ingress Queue Drop packet count | scalar:Uint64 | RANGE: [0, 18446744073709551615] |
ingQDepthBytes | Ingress Queue Depth in bytes | scalar:Uint64 | RANGE: [0, 18446744073709551615] |
pfcRxPpp | Priority-based Flow Control Per Port Packet Pause Received count | scalar:Uint64 | RANGE: [0, 18446744073709551615] |
Related Documentation
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:
Querying Hardware Debug Counters
Querying Hardware Debug Counters
Request:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<get>
<filter>
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<ipqos-items>
<module_type-items>
<Module-list>
<hwcounters-items/>
</Module-list>
</module_type-items>
</ipqos-items>
</System>
</filter>
</get>
</rpc>
Response:
<?xml version="1.0" ?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:4ed8663f-0ceb-4ddb-9708-abb14c24b59b">
<data>
<System xmlns="http://cisco.com/ns/yang/cisco-nx-os-device">
<ipqos-items>
<module_type-items>
<Module-list>
<moduleType>LC</moduleType>
<moduleId>1</moduleId>
<asicInstance>0</asicInstance>
<hwcounters-items>
<hardwareCounter1>110</hardwareCounter1>
<hardwareCounter10>100100</hardwareCounter10>
<hardwareCounter10Desc>If the memory blocks are overwhelmed, then this counter accounts for the drops due to any Backpressure.</hardwareCounter10Desc>
<hardwareCounter11>1111</hardwareCounter11>
<hardwareCounter11Desc>This counter accounts for the truncated MTU packets.</hardwareCounter11Desc>
<hardwareCounter12>1212</hardwareCounter12>
<hardwareCounter12Desc>This counter accounts for the truncated packets due to any backpressure in the BMM.</hardwareCounter12Desc>
<hardwareCounter13>2370</hardwareCounter13>
<hardwareCounter13Desc>This counter accounts for the CPU pool group occupancy drops.</hardwareCounter13Desc>
<hardwareCounter14>3230</hardwareCounter14>
<hardwareCounter14Desc>This counter accounts for the LCPU pool group occupancy drops.</hardwareCounter14Desc>
<hardwareCounter15>4542</hardwareCounter15>
<hardwareCounter15Desc>This counter accounts for the RCPU pool group occupancy drops.</hardwareCounter15Desc>
<hardwareCounter16>6843</hardwareCounter16>
<hardwareCounter16Desc>This counter accounts for the SPAN pool group occupancy drops.</hardwareCounter16Desc>
<hardwareCounter1Desc>Memory refers to the entire storage of the slice. This counter accounts for any overflow in the memory block of the slice.</hardwareCounter1Desc>
<hardwareCounter2>220</hardwareCounter2>
<hardwareCounter2Desc>This counter refers to the overflow in the descriptors for the memory block for the slice. The memory descriptors are used for multicast packets.</hardwareCounter2Desc>
<hardwareCounter3>330</hardwareCounter3>
<hardwareCounter3Desc>This counter accounts for the overflow in Drop PG descriptors (used for multicast).</hardwareCounter3Desc>
<hardwareCounter4>440</hardwareCounter4>
<hardwareCounter4Desc>This counter accounts for the overflow in the CPU PG memory.</hardwareCounter4Desc>
<hardwareCounter5>550</hardwareCounter5>
<hardwareCounter5Desc>This counter accounts for the overflow in the CPU PG descriptors for multicast traffic.</hardwareCounter5Desc>
<hardwareCounter6>660</hardwareCounter6>
<hardwareCounter6Desc>This counter accounts for the overflow in the SPAN PG memory.</hardwareCounter6Desc>
<hardwareCounter7>770</hardwareCounter7>
<hardwareCounter7Desc>This counter accounts for the overflow in the SPAN PG descriptors for multicast traffic.</hardwareCounter7Desc>
<hardwareCounter8>880</hardwareCounter8>
<hardwareCounter8Desc>The descriptors are used for only multicast traffic the OPOOL descriptor drop reasons refers to the overflow in descriptors for the Multicast Pool in Drop PG.</hardwareCounter8Desc>
<hardwareCounter9>990</hardwareCounter9>
<hardwareCounter9Desc>These descriptors account for the MC/UC queue drops.</hardwareCounter9Desc>
</hwcounters-items>
</Module-list>
</module_type-items>
</ipqos-items>
</System>
</data>
</rpc-reply>
This section illustrates hardware counter debug queries and provides information on the hardware statistics which are displayed per module ID and per ASIC.
Note: For this example, support properties 1 to 12 were added in 10.2(3)F and 13 to 16 are added in 10.3(1)F.
ipqosHardwareStats Properties
The following table contains information about the hardware counter properties:
Property Name | Hardware Counter | Description |
---|---|---|
Hardware counter1 | MEM cell drop reason | Memory refers to the entire storage of the slice. This counter accounts for any overflow in the memory block of the slice. |
Hardware counter2 | MEM descriptor drop reason | This counter refers to the overflow in the descriptors for the memory block for the slice. The memory descriptors are used for multicast packets. |
Hardware counter3 | OPG descriptor drop reason | The memory is divided into 3 main Pool Groups (PG) i.e drop PG, CPU PG and Span PG. The Drop PG consists of two buffer pools unicast and multicast. Each unicast and multicast pools are divided into 8 Pools corresponding to the 8 queues. The drop PG can be further divided into Drop PG and No Drop PG. No Drop only consists of only the configured unicast Pools (i.e: if queue 1 and 3 were configured as no drop then unicast pool 1 and unicast pool 3 will fall under No Drop PG the rest will fall under the Drop PG). This counter accounts for the overflow in Drop PG descriptors (used for multicast). |
Hardware counter4 | OPG CPU cell drop reason | This counter accounts for the overflow in the CPU PG memory. |
Hardware counter5 | OPG CPU descriptor drop reason | This counter accounts for the overflow in the CPU PG descriptors for multicast traffic. |
Hardware counter6 | OPG SPAN cell drop reason | This counter accounts for the overflow in the SPAN PG memory. |
Hardware counter7 | OPG SPAN descriptor drop reason | This counter accounts for the overflow in the SPAN PG descriptors for multicast traffic. |
Hardware counter8 | OPOOL descriptor drop reason | As described earlier the Drop PG has two Pools of buffer unicast and multicast. The descriptors are used for only multicast traffic the OPOOL descriptor drop reasons refers to the overflow in descriptors for the Multicast Pool in Drop PG. |
Hardware counter9 | OQUEUE descriptor drop reason | These descriptors account for the MC/UC queue drops. |
Hardware counter10 | BMM BP | BMM is a where the packets are stored. If the memory blocks are overwhelmed, then this counter accounts for the drops due to any Backpressure. |
Hardware counter11 | TRUNC MTU | This counter accounts for the truncated MTU packets. |
Hardware counter12 | TRUNK BMM BP | This counter accounts for the truncated packets due to any backpressure in the BMM. |
Hardware counter13 | CPU-PG | This counter accounts for the CPU pool group counters. |
Hardware counter14 | LCPU-PG | This counter accounts for the LCPU pool group counters. |
Hardware counter15 | RCPU-PG | This counter accounts for the RCPU pool group counters. |
Hardware counter16 | SPAN-PG | This counter accounts for the SPAN pool group counters. |
The following table contains information about the SPAN/CPU counters:
Property Name | Hardware Counter | Description |
---|---|---|
CPU counter1 | CPU Tx Pkts | This counter accounts for the Tx packets for the CPU queue. |
CPU counter2 | CPU Tail drops | This counter accounts for the tail drop packets for the CPU queue. |
SPAN counter1 | SPAN Tx Pkts | This counter accounts for the Tx packets for the SPAN queue. |
SPAN counter2 | SPAN tail drops | This counter accounts for the tail drop packets for the SPAN queue. |
Querying CPU Tx and Tail Drop Counters
Querying CPU Tx and Tail Drop Counters
Request:
GET : /api/mo/sys/ipqos/queuing/policy/out/intf-[eth1/13]/stats-cpu-queue.json
Response:
{
"totalCount": "1",
"imdata": [
{
"ipqosCpuSpanStats": {
"attributes": {
"dn": "sys/ipqos/queuing/policy/out/intf-[eth1/13]/stats-cpu-queue",
"dropBytes": "0",
"dropPackets": "0",
"modTs": "2022-06-29T14:59:28.291+00:00",
"statType": "cpu-queue",
"txBytes": "0",
"txPackets": "0"
}
}
}
]
}
Querying SPAN Tx and Tail Drop Counters
Querying SPAN Tx and Tail Drop Counters
Request:
GET: /api/mo/sys/ipqos/queuing/policy/out/intf-[eth1/13]/stats-span-queue.json
Response:
{
"totalCount": "1",
"imdata": [
{
"ipqosCpuSpanStats": {
"attributes": {
"dn": "sys/ipqos/queuing/policy/out/intf-[eth1/13]/stats-span-queue",
"dropBytes": "0",
"dropPackets": "0",
"modTs": "2022-06-29T14:59:28.291+00:00",
"statType": "span-queue",
"txBytes": "0",
"txPackets": "0"
}
}
}
]
}
Related Documentation
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: