OC Interface Counters

Querying Interface Counter Errors

Querying Interface Counter Errors
<rpc xmlns:if="http://www.cisco.com/nxos:1.0:if_manager" xmlns:nfcli="http://www.cisco.com/nxos:1.0:nfcli" xmlns:nxos="http://www.cisco.com/nxos:1.0" xmlns:vlan_mgr_cli="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:a1b5ee1c-c21b-4f75-8c3d-294b8da52f6e">
  <get>
    <filter>
      <interfaces xmlns="http://openconfig.net/yang/interfaces">
        <interface>
          <name>eth1/53</name>
          <state>
            <counters>
              <in-octets/>
              <in-unicast-pkts/>
              <in-broadcast-pkts/>
              <in-fcs-errors/>
            </counters>
          </state>
        </interface>
      </interfaces>
    </filter>
  </get>
</rpc>



Received:
<rpc-reply xmlns:if="http://www.cisco.com/nxos:1.0:if_manager" xmlns:nfcli="http://www.cisco.com/nxos:1.0:nfcli" xmlns:nxos="http://www.cisco.com/nxos:1.0" xmlns:vlan_mgr_cli="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:a1b5ee1c-c21b-4f75-8c3d-294b8da52f6e">
    <data>
        <interfaces xmlns="http://openconfig.net/yang/interfaces">
            <interface>
                <name>eth1/53</name>
                <state>
                    <counters>
                        <in-octets>3085180851040</in-octets>
                        <in-unicast-pkts>663013031</in-unicast-pkts>
                        <in-broadcast-pkts>0</in-broadcast-pkts>
                        <in-fcs-errors>1912824</in-fcs-errors>
                    </counters>
                </state>
            </interface>
        </interfaces>
    </data>
</rpc-reply>

Note: This example was added in Release 9.3(5).


CLI Command

show interface e1/53,e1/54 counters errors


Guidelines and Limitations

Following are the guidelines and limiations for OpenConfig interface counters.

  • Beginning with Cisco NX-OS Release 10.4(1)F, OpenConfig interface clients gNMI and Telemetry can fetch the physical interface counters every 1 second. In the earlier releases, the interval is 30 seconds.
  • OpenConfig interface counters will be supported for 1 second to 9 seconds interval only for physical interfaces.
  • In Cisco NX-OS Release 10.4(1)F, maximum of 2 subscriptions per device will be supported.
  • 1 sec counter is not supported if native paths port_counters or ssx is configured in telemetry/gNMI.
  • Last clear (clear counters) and carrier transition (interface shut and no shut) are not supported with 1 second interval.
  • This feature is supported on the following PIDs: N9K-C93108TC-FX, N9K-C93180YC-FX, N9K-C9348GC-FXP, N9K-C9348GC-FX3, N9K-C9348GC-FX3PH, N9K-C9358GY-FXP, N9K-C93216TC-FX2, 9K-C93240YC-FX2, N9K-C93360YC-FX2, N9K-C9336C-FX2, N9K-C9336C-FX2-E, N9K-C93240YC-FX2-Z, N9K-C93108TC-FX3, N9K-C93108TC-FX3P, N9K-C93180YC-FX3, N9K-C93180YC-FX3S, N9K-X9732C-FX, N9K-X9736C-FX, N9K-X9736Q-FX, and N9K-X9788TC-FX.