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 NameData TypeDescriptionValues
clearTsscalar:Date
Clear timestampDATE 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.
inBcastOctetsscalar:Uint64
Broadcast OctetsRANGE: [0, 18446744073709551615]
inBcastPktsscalar:Uint64
Broadcast packetsRANGE: [0, 18446744073709551615]
inL3UcastOctetsscalar:Uint64
ingress L3 SVI Unicast OctetsRANGE: [0, 18446744073709551615]
inL3UcastPktsscalar:Uint64
ingress L3 SVI Unicast PacketsRANGE: [0, 18446744073709551615]
inMcastOctetsscalar:Uint64
Multicast OctetsRANGE: [0, 18446744073709551615]
inMcastPktsscalar:Uint64
Multicast packetsRANGE: [0, 18446744073709551615]
inUcastOctetsscalar:Uint64
ucastOctetsRANGE: [0, 18446744073709551615]
inUcastPktsscalar:Uint64
Unicast packetsRANGE: [0, 18446744073709551615]
outUcastOctetsscalar:Uint64
ucastOctetsRANGE: [0, 18446744073709551615]
outUcastPktsscalar:Uint64
Unicast packetsRANGE: [0, 18446744073709551615]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

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:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html