Posted on July 19, 2018 7:45 pm
 |  Asked by Gerta Axhiu
Print Friendly, PDF & Email


Im using Arista DCS-7050QX-32S-F Software image version: 4.16.7M. I want to poll the total number of routes (show ip route summary ) I see that Arista has its own mib files to pull that information and more specifically the oid for this is: . But It doenst provide any info, it seems thats not supported at all on this arista.

arista7050QX#show snmp mib walk
ARISTA-SMI-MIB::aristaMibs. = No Such Object available on this agent at this OID

Any idea why arista doesnt support its own mib files? is there any other way to pull the total number of routes?

Thank you,

Posted by Alexandru
Answered on July 23, 2018 4:39 pm

Hi Gerta,
Support for ARISTA-FIB-STATS-MIB was added in 4.20 train and it refers to the routes pushed to hardware.
You can use the IP-FORWARD-MIB to retrieve the number of routes on a system as shown by “show ip route”:

mt550...16:38:08(config-if-Vl1)#show ip route
VRF name: default
C is directly connected, Vlan1
C is directly connected, Management1
S [1/0] via, Management1
S [1/0] via, Management1
mt550...16:38:12(config-if-Vl1)#show snmp mib walk IP-FORWARD-MIB::ipCidrRouteNumber
IP-FORWARD-MIB::ipCidrRouteNumber.0 = Gauge32: 4

Hope this helps answer your question.

Hi, thank you for your reply. I tried the standard oid as well the “IP-FORWARD-MIB::ipCidrRouteNumber” but the output doesnt match with the show ip route summary, like below:
arista7050QX#show ip route summary

Total Routes 221658
arista7050QX#show snmp mib walk IP-FORWARD-MIB::ipCidrRouteNumber

IP-FORWARD-MIB::ipCidrRouteNumber.0 = Gauge32: 221494

Thank you,


(Gerta Axhiu at July 24, 2018 2:14 pm)
Posted by Alexandru
Answered on July 24, 2018 4:40 pm

Hi Gerta,

show ip route summary includes a number of routes, including internal ones which are not exposed via the show ip route command.

For example a vlan interface creates the following 3 internal routes:
interface Vlan100
ip address

show ip route host
R – receive, B – broadcast, F – FIB, A – attached, D – directed broadcast

B to cpu
R to cpu
B to cpu

Subtracting the internal routes from the total value should give you the correct number.

Post your Answer

You must be logged in to post an answer.