To get the summary of the routing table through SNMP, following OID can be used.
root> show route summary Router ID: 10.9.221.221 inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden) Direct: 1 routes, 1 active Local: 1 routes, 1 active Static: 9 routes, 9 active PIM: 2 routes, 2 active inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) PIM: 2 routes, 2 active
root> show snmp mib walk ipCidrRouteNumber ipCidrRouteNumber.0 = 13 root> show snmp mib walk 1.3.6.1.2.1.4.24.3 ipCidrRouteNumber.0 = 13
Where 13 is the number of active routes installed in the routing table.