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 NameData TypeDescriptionValues
alignmentErrorsscalar:Uint64
The alignment errors.RANGE: [0, 18446744073709551615]
babblescalar:Uint64
babble countRANGE: [0, 18446744073709551615]
carrierSenseErrorsscalar:Uint64
The carrier sense errors.RANGE: [0, 18446744073709551615]
childAction
mo:ModificationChildAction
scalar:Bitmask32
Delete or ignore. For internal use only.SELECTION:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • clearTsscalar:Date
    Clear timestampDATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z
    DEFAULT: never
    controlInUnknownOpcodesscalar:Uint64
    The control input unknown opcodes.RANGE: [0, 18446744073709551615]
    deferredTransmissionsscalar: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.
    excessiveCollisionsscalar:Uint64
    The excessive collisions.RANGE: [0, 18446744073709551615]
    fCSErrorsscalar:Uint64
    The frame check sequence errors.RANGE: [0, 18446744073709551615]
    frameTooLongsscalar:Uint64
    The frame too longs.RANGE: [0, 18446744073709551615]
    inPauseFramesscalar:Uint64
    The input pause frames.RANGE: [0, 18446744073709551615]
    inputdribblescalar:Uint64
    Input DribbleRANGE: [0, 18446744073709551615]
    internalMacReceiveErrorsscalar:Uint64
    The internal MAC receive errors.RANGE: [0, 18446744073709551615]
    internalMacTransmitErrorsscalar:Uint64
    The internal MAC transmit errors.RANGE: [0, 18446744073709551615]
    lateCollisionsscalar:Uint64
    The late collisions.RANGE: [0, 18446744073709551615]
    lostCarrierErrorsscalar:Uint64
    Lost Carrier ErrorsRANGE: [0, 18446744073709551615]
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    multipleCollisionFramesscalar:Uint64
    The multiple collision frames.RANGE: [0, 18446744073709551615]
    noCarrierErrorsscalar:Uint64
    No Carrier ErrorsRANGE: [0, 18446744073709551615]
    outPauseFramesscalar:Uint64
    The output pause frames.RANGE: [0, 18446744073709551615]
    runtsscalar:Uint64
    runts countRANGE: [0, 18446744073709551615]
    sQETTestErrorsscalar:Uint64
    The SQET test errors.RANGE: [0, 18446744073709551615]
    singleCollisionFramesscalar:Uint64
    The single collision frames.RANGE: [0, 18446744073709551615]
    statusmo:ModificationStatus
    (scalar:Bitmask32)
    The upgrade status. This property is for internal use only.SELECTION:
    2 - created
    4 - modified
    8 - deleted
    16 - replaced
    symbolErrorsscalar: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:

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

    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 NameData TypeDescriptionValues
    broadcastPktsscalar:Uint64
    Broadcast PacketsRANGE: [0, 18446744073709551615]
    cRCAlignErrorsscalar:Uint64
    The cyclic redundancy check align errors.RANGE: [0, 18446744073709551615]
    childAction
    mo:ModificationChildAction
    scalar:Bitmask32
    Delete or ignore. For internal use only.SELECTION:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • clearTsscalar:Date
    Clear timestampDATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z
    DEFAULT: never
    collisionsscalar: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.
    dropEventsscalar:Uint64
    The drop event packets.RANGE: [0, 18446744073709551615]
    fragmentsscalar:Uint64
    The fragmented packets.RANGE: [0, 18446744073709551615]
    ifdowndropscalar:Uint64
    If Down DropRANGE: [0, 18446744073709551615]
    ignoredscalar:Uint64
    Ignored PacketsRANGE: [0, 18446744073709551615]
    jabbersscalar:Uint64
    The jabber frames.RANGE: [0, 18446744073709551615]
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    multicastPktsscalar:Uint64
    Multicast PacketsRANGE: [0, 18446744073709551615]
    octetsscalar:Uint64
    OctetsRANGE: [0, 18446744073709551615]
    overrunscalar:Uint64
    Overrun PacketsRANGE: [0, 18446744073709551615]
    oversizePktsscalar:Uint64
    The oversize packets.RANGE: [0, 18446744073709551615]
    pktsscalar:Uint64
    The packets.RANGE: [0, 18446744073709551615]
    pkts1024to1518Octetsscalar:Uint64
    The packets with 1024 to 1518 octets.RANGE: [0, 18446744073709551615]
    pkts128to255Octetsscalar:Uint64
    The packets with 128 to 255 octets.RANGE: [0, 18446744073709551615]
    pkts256to511Octetsscalar:Uint64
    The packets with 256 to 511 octets.RANGE: [0, 18446744073709551615]
    pkts512to1023Octetsscalar:Uint64
    The packets with 2512 to 1023 octets.RANGE: [0, 18446744073709551615]
    pkts64Octetsscalar:Uint64
    The packets with 64 octets.RANGE: [0, 18446744073709551615]
    pkts65to127Octetsscalar:Uint64
    The packets with 65 to 127 octets.RANGE: [0, 18446744073709551615]
    rXNoErrorsscalar:Uint64
    The received packets with no errors.RANGE: [0, 18446744073709551615]
    rxOversizePktsscalar:Uint64
    The oversized received packets.RANGE: [0, 18446744073709551615]
    statusmo:ModificationStatus
    (scalar:Bitmask32)
    The upgrade status. This property is for internal use only.SELECTION:
    2 - created
    4 - modified
    8 - deleted
    16 - replaced
    tXNoErrorsscalar:Uint64
    The transmitted packets with no errors.RANGE: [0, 18446744073709551615]
    txOversizePktsscalar:Uint64
    The oversized transmitted packets.RANGE: [0, 18446744073709551615]
    underrunscalar:Uint64
    Underrun PacketsRANGE: [0, 18446744073709551615]
    undersizePktsscalar:Uint64
    The undersize packets.RANGE: [0, 18446744073709551615]
    watchdogscalar:Uint64
    WatchdogRANGE: [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:

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

    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 NameData TypeDescriptionValues
    broadcastPktsscalar:Uint64
    Broadcast PacketsRANGE: [0, 18446744073709551615]
    childAction
    mo:ModificationChildAction
    scalar:Bitmask32
    Delete or ignore. For internal use only.SELECTION:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • 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.
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    multicastPktsscalar:Uint64
    Multicast PacketsRANGE: [0, 18446744073709551615]
    octetsscalar:Uint64
    OctetsRANGE: [0, 18446744073709551615]
    statusmo:ModificationStatus
    (scalar:Bitmask32)
    The upgrade status. This property is for internal use only.SELECTION:
    2 - created
    4 - modified
    8 - deleted
    16 - replaced
    ucastPktsscalar:Uint64
    Unicast PacketsRANGE: [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:

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

    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 NameData TypeDescriptionValues
    broadcastPcktsscalar:Uint64
    The broadcast packets.RANGE: [0, 18446744073709551615]
    broadcastPktsscalar:Uint64
    Broadcast PacketsRANGE: [0, 18446744073709551615]
    childAction
    mo:ModificationChildAction
    scalar:Bitmask32
    Delete or ignore. For internal use only.SELECTION:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • 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.
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    multicastPktsscalar:Uint64
    Multicast PacketsRANGE: [0, 18446744073709551615]
    octetsscalar:Uint64
    OctetsRANGE: [0, 18446744073709551615]
    statusmo:ModificationStatus
    (scalar:Bitmask32)
    The upgrade status. This property is for internal use only.SELECTION:
    2 - created
    4 - modified
    8 - deleted
    16 - replaced
    ucastPktsscalar:Uint64
    Unicast PacketsRANGE: [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:

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

    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 NameData TypeDescriptionValues
    broadcastPktsscalar:Uint64
    Broadcast PacketsRANGE: [0, 18446744073709551615]
    childAction
    mo:ModificationChildAction
    scalar:Bitmask32
    Delete or ignore. For internal use only.SELECTION:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • clearTsscalar:Date
    Clear timestampDATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z
    DEFAULT: never
    discardsscalar:Uint64
    Discard PacketsRANGE: [0, 18446744073709551615]
    dn
    reference:BinRef
    A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module.
    errorsscalar:Uint64
    Error PacketsRANGE: [0, 18446744073709551615]
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    multicastPktsscalar:Uint64
    Multicast PacketsRANGE: [0, 18446744073709551615]
    nUcastPktsscalar:Uint64
    Non Unicast PacketsRANGE: [0, 18446744073709551615]
    noBufferscalar:Uint64
    No BufferRANGE: [0, 18446744073709551615]
    octetRatescalar:Uint64
    Octet RateRANGE: [0, 18446744073709551615]
    octetsscalar:Uint64
    OctetsRANGE: [0, 18446744073709551615]
    packetRatescalar:Uint64
    Packet RateRANGE: [0, 18446744073709551615]
    rateIntervalscalar:Uint32
    Rate IntervalRANGE: [0, 4294967295]
    statusmo:ModificationStatus
    (scalar:Bitmask32)
    The upgrade status. This property is for internal use only.SELECTION:
    2 - created
    4 - modified
    8 - deleted
    16 - replaced
    ucastPktsscalar:Uint64
    Unicast PacketsRANGE: [0, 18446744073709551615]
    unknownEtypescalar:Uint64
    Unknown Ether Type PacketsRANGE: [0, 18446744073709551615]
    unknownProtosscalar: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:

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

    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 NameData TypeDescriptionValues
    broadcastPktsscalar:Uint64
    Broadcast PacketsRANGE: [0, 18446744073709551615]
    childAction
    mo:ModificationChildAction
    scalar:Bitmask32
    Delete or ignore. For internal use only.SELECTION:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • clearTsscalar:Date
    Clear timestampDATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z
    DEFAULT: never
    discardsscalar:Uint64
    Discard PacketsRANGE: [0, 18446744073709551615]
    dn
    reference:BinRef
    A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module.
    errorsscalar:Uint64
    Error PacketsRANGE: [0, 18446744073709551615]
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    multicastPktsscalar:Uint64
    Multicast PacketsRANGE: [0, 18446744073709551615]
    nUcastPktsscalar:Uint64
    Non Unicast PacketsRANGE: [0, 18446744073709551615]
    octetRatescalar:Uint64
    Octet RateRANGE: [0, 18446744073709551615]
    octetsscalar:Uint64
    OctetsRANGE: [0, 18446744073709551615]
    packetRatescalar:Uint64
    Packet RateRANGE: [0, 18446744073709551615]
    qLenscalar:Uint64
    The queue length packets.RANGE: [0, 18446744073709551615]
    rateIntervalscalar:Uint32
    Rate IntervalRANGE: [0, 4294967295]
    statusmo:ModificationStatus
    (scalar:Bitmask32)
    The upgrade status. This property is for internal use only.SELECTION:
    2 - created
    4 - modified
    8 - deleted
    16 - replaced
    ucastPktsscalar:Uint64
    Unicast PacketsRANGE: [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:

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

    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 NameData TypeDescriptionValues
    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
  • DEFAULT: 630
  • bounceTrig
    l2:BounceTrig
    scalar:Bitmask8
    Bounce triggerSELECTION:
  • 1 - rarp-flood
  • 2 - protocol
  • DEFAULT: protocol(2)
  • childAction
    mo:ModificationChildAction
    scalar:Bitmask32
    Delete or ignore. For internal use only.SELECTION:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • 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
  • DEFAULT: 300
  • lcOwnNANANA
    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
  • DEFAULT: 900
  • modTs
    mo:TStamp
    scalar:Date
    The time when this object was last modified.SELECTION:
  • 0ull - never
  • DEFAULT: never(0ull)
  • moveFreq
    l2:MoveFreq
    scalar:Uint16
    EP move frequency RANGE: Min: 0 Max: 0xffff
  • DEFAULT: 256
  • 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
  • DEFAULT: 300
  • status
    mo:ModificationStatus
    scalar:Bitmask32
    The upgrade status. This property is for internal use only.SELECTION:
  • 16u - replaced
  • 2u - created
  • 4u - modified
  • 8u - deleted
  • DEFAULT: 0

  • 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
    childAction
    mo:ModificationChildAction
    scalar:Bitmask32
    Delete or ignore. For internal use only.SELECTION:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • 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]
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    outUcastOctetsscalar:Uint64
    ucastOctetsRANGE: [0, 18446744073709551615]
    outUcastPktsscalar:Uint64
    Unicast packetsRANGE: [0, 18446744073709551615]
    statusmo: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 NameData TypeDescriptionValues
    accEncapbase:Encap
    The Layer 2 access encapsulation (VLAN or VNID).SELECTION: unknown, vlan-%d or vxlan-%d
    adminStl2:DomAdminSt
    (scalar:Enum8)
    admin stateSELECTION:
    1 - suspend
    2 - active
    DEFAULT: active
    bdDefDnreference:BinRef
    The bridge domain name.
    bridgeModel2: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:
  • 16384u - deleteAll
  • 4096u - ignore
  • 8192u - deleteNonPresent
  • DEFAULT: 0
  • createTsscalar:Date
    creation timeDATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z
    ctrll2: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:
  • 0 - unspecified
  • 1 - learn-disabled
  • DEFAULT: 0
  • fabEncapbase:Encap
    The Layer 2 bridge-domain Fabric encapsulation (VNID).SELECTION: unknown, vlan-%d or vxlan-%d
    fwdCtrll2:FwdCtrl
    (scalar:Bitmask32)
    The Layer 2 bridge-domain forwarding controls.SELECTION:
    1 - mdst-flood
    2 - arp-flood
    DEFAULT: mdst-flood
    fwdModel2: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
    hwIdl2:DomId
    (scalar:Uint32)
    Internal domain id
    RANGE: [1 , 4096]
    idl2:DomId
    (scalar:Uint32)
    domain id
    RANGE: [1 , 4096]
    lcOwnNANANA
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    model2:DomMode
    (scalar:Enum8)
    Vlan modeSELECTION:
    1 - CE
    2 - FabricPath
    DEFAULT: CE
    monPolDn
    reference:BinRef
    The monitoring policy for the Layer 2 bridge-domain object.
    namenaming:Name256
    (string:Basic)
    The name of the object.
    MAX SIZE: 128
    operStl2:DomOperSt
    (scalar:Enum8)
    oper stateSELECTION:
    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:
  • 0u - any
  • DEFAULT: 0
  • statusmo: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 typeSELECTION:
  • 1 - bd-regular
  • 2 - bd-reserved
  • 3 - bd-control
  • 4 - bd-external
  • 5 - ckt-vlan
  • 6 - ckt-vxlan
  • DEFAULT: bd-regular(1)
  • unkMacUcastAct
    l2:UnkMacUcastAct
    scalar:Enum8
    The classical bridge-domain parameter used by the node for forwarding data for an unknown mac Unicast destination.SELECTION:
  • 0 - flood
  • 1 - proxy
  • DEFAULT: proxy(1)
  • unkMcastAct
    l2:UnkMcastAct
    scalar:Enum8
    SELECTION:
  • 0 - flood
  • 1 - opt-flood
  • DEFAULT: flood(0)
  • vlanmgrCfgFailedBmp
    scalar:Bitmask64
    null SELECTION:
  • -9223372036854775808ull - l2:BDmodTs_failed_flag
  • 1024ull - l2:BDfabEncap_failed_flag
  • 1048576ull - l2:BDxConnect_failed_flag
  • 128ull - l2:BDbdDefDn_failed_flag
  • 131072ull - l2:BDpcTag_failed_flag
  • 16384ull - l2:BDmacPacketClassify_failed_flag
  • 16ull - l2:BDmode_failed_flag
  • 1ull - l2:BDBdState_failed_flag
  • 2048ull - l2:BDfwdCtrl_failed_flag
  • 2305843009213693952ull - l2:BDuid_failed_flag
  • 256ull - l2:BDbridgeMode_failed_flag
  • 262144ull - l2:BDunkMacUcastAct_failed_flag
  • 2ull - l2:BDadminSt_failed_flag
  • 32768ull - l2:BDmonPolDn_failed_flag
  • 32ull - l2:BDtype_failed_flag
  • 4096ull - l2:BDfwdMode_failed_flag
  • 4611686018427387904ull - l2:BDpersistentOnReload_failed_flag
  • 4ull - l2:BDctrl_failed_flag
  • 512ull - l2:BDcontrollerId_failed_flag
  • 524288ull - l2:BDunkMcastAct_failed_flag
  • 64ull - l2:BDaccEncap_failed_flag
  • 65536ull - l2:BDname_failed_flag
  • 8192ull - l2:BDlongName_failed_flag
  • 8ull - l2:BDid_failed_flag
  • DEFAULT: 0
  • 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:

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

    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 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.
    modTsmo:TStamp
    (scalar:Date)
    The time when this object was last modified.SELECTION:
    0 - never
    DEFAULT: never
    octetsscalar:Uint64
    OctetsRANGE: [0, 18446744073709551615]
    ucastPktsscalar:Uint64
    Unicast PacketsRANGE: [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:

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

    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 NameDescriptionData TypeValues
    txPacketsTransmit packet countscalar:Uint64RANGE: [0, 18446744073709551615]
    txBytesTransmit byte countscalar:Uint64RANGE: [0, 18446744073709551615]
    dropPacketsDrop packet countscalar:Uint64RANGE: [0, 18446744073709551615]
    dropBytesDrop byte countscalar:Uint64RANGE: [0, 18446744073709551615]
    currQueueDepthCurrent queue depth in bytesscalar:Uint64RANGE: [0, 18446744073709551615]
    pfcTxPppPriority-based Flow Control Per Port Pause Transmitted Packet countscalar:Uint64RANGE: [0, 18446744073709551615]
    ingQDropPacketsIngress Queue Drop packet countscalar:Uint64RANGE: [0, 18446744073709551615]
    ingQDepthBytesIngress Queue Depth in bytesscalar:Uint64RANGE: [0, 18446744073709551615]
    pfcRxPppPriority-based Flow Control Per Port Packet Pause Received countscalar:Uint64RANGE: [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:

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

    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 NameHardware CounterDescription
    Hardware counter1MEM cell drop reasonMemory refers to the entire storage of the slice. This counter accounts for any overflow in the memory block of the slice.
    Hardware counter2MEM descriptor drop reasonThis counter refers to the overflow in the descriptors for the memory block for the slice. The memory descriptors are used for multicast packets.
    Hardware counter3OPG descriptor drop reasonThe 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 counter4OPG CPU cell drop reasonThis counter accounts for the overflow in the CPU PG memory.
    Hardware counter5OPG CPU descriptor drop reasonThis counter accounts for the overflow in the CPU PG descriptors for multicast traffic.
    Hardware counter6OPG SPAN cell drop reasonThis counter accounts for the overflow in the SPAN PG memory.
    Hardware counter7OPG SPAN descriptor drop reasonThis counter accounts for the overflow in the SPAN PG descriptors for multicast traffic.
    Hardware counter8OPOOL descriptor drop reasonAs 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 counter9OQUEUE descriptor drop reasonThese descriptors account for the MC/UC queue drops.
    Hardware counter10BMM BPBMM 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 counter11TRUNC MTUThis counter accounts for the truncated MTU packets.
    Hardware counter12TRUNK BMM BPThis counter accounts for the truncated packets due to any backpressure in the BMM.
    Hardware counter13CPU-PGThis counter accounts for the CPU pool group counters.
    Hardware counter14LCPU-PGThis counter accounts for the LCPU pool group counters.
    Hardware counter15RCPU-PGThis counter accounts for the RCPU pool group counters.
    Hardware counter16SPAN-PGThis counter accounts for the SPAN pool group counters.

    The following table contains information about the SPAN/CPU counters:

    Property NameHardware CounterDescription
    CPU counter1CPU Tx PktsThis counter accounts for the Tx packets for the CPU queue.
    CPU counter2CPU Tail dropsThis counter accounts for the tail drop packets for the CPU queue.
    SPAN counter1SPAN Tx PktsThis counter accounts for the Tx packets for the SPAN queue.
    SPAN counter2SPAN tail dropsThis 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:

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