Monday, December 10, 2018

Cisco XR NETCONF interface throughput

Hey folks,

I am pretty new to netconf, so i have been going through all the schema's available on our LAB Cisco 9k router. I can not for the life of me find a schema that actually has the throughput counters in it. All of the schemas I have found have every counter around the throughput counter but does not include the throughput. If you happen to know which schema might have this info in it, i would love to know what it is.

Below is a snippet from NETCONF return and what the interface looks like in cli.

NETCONF Return

 <interface> <name>TenGigE0/6/0/7</name> <config> <name>TenGigE0/6/0/7</name> <type xmlns:idx="urn:ietf:params:xml:ns:yang:iana-if-type">idx:ethernetCsmacd</type> <enabled>true</enabled> <description>LAB | LAB-ASR9K Te0/0/0/1 | 172.25.12.3</description> </config> <state> <name>TenGigE0/6/0/7</name> <enabled>true</enabled> <admin-status>UP</admin-status> <oper-status>UP</oper-status> <last-change>1054642</last-change> <description>LAB | LAB-ASR9K Te0/0/0/1 | 172.25.12.3</description> <counters> <in-multicast-pkts>9093703</in-multicast-pkts> <in-broadcast-pkts>8</in-broadcast-pkts> <out-multicast-pkts>8540045</out-multicast-pkts> <out-broadcast-pkts>11</out-broadcast-pkts> <out-discards>0</out-discards> <in-discards>0</in-discards> <in-unknown-protos>0</in-unknown-protos> <in-errors>400</in-errors> <out-errors>0</out-errors> <last-clear>2018-09-24T14:58:35.149-05:00</last-clear> </counters> <ifindex>59</ifindex> <mtu>9172</mtu> <type xmlns:idx="urn:ietf:params:xml:ns:yang:iana-if-type">idx:ethernetCsmacd</type> </state> <ethernet xmlns="http://openconfig.net/yang/interfaces/ethernet"> <config> <auto-negotiate>false</auto-negotiate> <aggregate-id xmlns="http://openconfig.net/yang/interfaces/aggregate">Bundle-Ether62000</aggregate-id> </config> <state> <auto-negotiate>false</auto-negotiate> <aggregate-id xmlns="http://openconfig.net/yang/interfaces/aggregate">Bundle-Ether62000</aggregate-id> <hw-mac-address>00:a7:42:42:e9:27</hw-mac-address> <counters> <in-8021q-frames>0</in-8021q-frames> <in-mac-pause-frames>0</in-mac-pause-frames> <in-oversize-frames>0</in-oversize-frames> <in-jabber-frames>0</in-jabber-frames> <in-fragment-frames>0</in-fragment-frames> <in-crc-errors>0</in-crc-errors> <out-8021q-frames>0</out-8021q-frames> <out-mac-pause-frames>0</out-mac-pause-frames> </counters> </state> </ethernet> </interface> <interface> 

Interface from CLI (<-- Notes)

TenGigE0/6/0/7 is up, line protocol is up Interface state transitions: 15 Hardware is TenGigE, address is 00a7.4242.e927 (bia 00a7.4242.e927) Layer 1 Transport Mode is LAN Description: LAB | LAB-ASR9K Te0/0/0/1 | 172.25.12.3 Internet address is Unknown MTU 9172 bytes, BW 10000000 Kbit (Max: 10000000 Kbit) reliability 255/255, txload 0/255, rxload 2/255 Encapsulation ARPA, Full-duplex, 10000Mb/s, SR, link type is force-up output flow control is off, input flow control is off Carrier delay (up) is 10 msec loopback not set, Last link flapped 1w5d Last input 00:00:00, output 00:00:00 Last clearing of "show interface" counters never 30 second input rate 82442000 bits/sec, 7569 packets/sec <---LOOKING FOR THIS 30 second output rate 3000 bits/sec, 3 packets/sec 3501360783 packets input, 4741791032375 bytes, <-- OR THIS ###0 total input drops 0 drops for unrecognized upper-level protocol Received 8 broadcast packets, 9091757 multicast packets 0 runts, 0 giants, 0 throttles, 0 parity 400 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 25578303 packets output, 5191716448 bytes, 0 total output drops Output 11 broadcast packets, 8538217 multicast packets 0 output errors, 0 underruns, 0 applique, 0 resets 0 output buffer failures, 0 output buffers swapped out 15 carrier transitions 



No comments:

Post a Comment