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

Hello,

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: .1.3.6.1.4.1.30065.3.23.1.1.1.2. But It doenst provide any info, it seems thats not supported at all on this arista.

arista7050QX#show snmp mib walk 1.3.6.1.4.1.30065.3.23.1.1.1.2
ARISTA-SMI-MIB::aristaMibs.23.1.1.1.2 = 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,
Gerta

0
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 4.5.5.0/24 is directly connected, Vlan1
C 10.81.116.0/22 is directly connected, Management1
S 10.80.0.0/12 [1/0] via 10.81.116.1, Management1
S 172.16.0.0/12 [1/0] via 10.81.116.1, 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

(Gerta Axhiu at July 24, 2018 2:14 pm)
0
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 1.1.168.1/24

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

B 1.1.168.0 to cpu
R 1.1.168.1 to cpu
B 1.1.168.255 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.