I'm using Cisco routers (C7206, C7609S). Their version is 12.2 SRD(4).
I'm trying to gather routing information through snmp from my network equipment.
But under the version, it is difficult to collect route information.
For instance, there are snmp oid "ipRouteNextHop(1.3.6.1.2.1.4.21.1.7)". and "ipCidrRouteNextHop(1.3.6.1.2.1.4.24.4.1.4)"
to see the next hop of a route prefix.
As you know, in the case of "ipRouteNextHop", we just use "ipRouteNextHop.TARGET_IP",
but When we use "ipCidrRouteNextHop", we should write "ipCidrRouteNextHop.TARGET_IP.SUBNETMASK".
And I know "ipCidrRouteNextHop" is deprecated. But under 12.2 SRD (4) version, we can't use ipRouteNextHop.
Below is the result when I issued it on my unix (search for the NextHop of 1.1.1.1/32)
unix#snmpwalk -c 6619qhdks -v2c x.x.x.x ip.24.4.1.4.1.1.1.1.255.255.255.255 <-- ipCidrRouteNextHop
IP-MIB::ip.24.4.1.4.1.1.1.1.255.255.255.255.0.192.0.2.1 = IpAddress: 192.0.2.1
unix#snmpwalk -c 6619qhdks -v2c pe01.asn.ia ipRouteNextHop.1.1.1.1
RFC1213-MIB::ipRouteNextHop.1.1.1.1 = No Such Object available on this agent at this OID
unix#1 snmpwalk -c 6619qhdks -v2c pe01.asn.ia ipRouteNextHop
RFC1213-MIB::ipRouteNextHop = No Such Object available on this agent at this OID
above the result, there is no oid for ipRouteNextHop.
Hence, I'd like to know how to use ipRouteNextHop or an easier thing than ipCidrRouteNextHop on 12.2 SRD(4)
Thanks in advance.