Querying VLAN ID Counters
Querying VLAN ID Counters
GET http://<IP_Address>/api/node/mo/sys/bd/bd-[vlan-20]/dbgVlanStats.json
{
"totalCount": "1",
"imdata": [
{
"l2VlanStats": {
"attributes": {
"clearTs": "never",
"dn": "sys/bd/bd-[vlan-20]/dbgVlanStats",
"inBcastOctets": "1860",
"inBcastPkts": "26",
"inL3UcastOctets": "0",
"inL3UcastPkts": "0",
"inMcastOctets": "0",
"inMcastPkts": "0",
"inUcastOctets": "156177714840",
"inUcastPkts": "1301480957",
"outUcastOctets": "307335648824",
"outUcastPkts": "2604539928"
}
}
}
]
}
Note: This example was added in Cisco NX-OS Release 9.2(1).
CLI Output Switch# show vlan id 20 counters
Vlan Id :20
Unicast Octets In :156177714840
Unicast Packets In :1301480957
Multicast Octets In :0
Multicast Packets In :0
Broadcast Octets In :1860
Broadcast Packets In :26
Unicast Octets Out :307335648824
Unicast Packets Out :2604539928
L3 Unicast Octets In :0
L3 Unicast Packets In :0
Note: The property information for this example was added in Release 9.3(3).
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 clearTs scalar:Date Clear timestamp DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z dn
reference:BinRefA 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] outUcastOctets scalar:Uint64 ucastOctets RANGE: [0, 18446744073709551615] outUcastPkts scalar:Uint64 Unicast packets RANGE: [0, 18446744073709551615]
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: