Hi,
I am recieving the trap from cisco switch. I want to get the IP address of default router of this switch using SNMP from my application. Can you please let me know the OID to get this information?
Thanks in advance.
-Bhupendra
Hi,
I am recieving the trap from cisco switch. I want to get the IP address of default router of this switch using SNMP from my application. Can you please let me know the OID to get this information?
Thanks in advance.
-Bhupendra
What you want is the routing table -
The defaults are the ones that 'points to' 0.0.0.0. There may be only one.
For some table mibs you can appent an address to the mib to get the one you want. I have no idea if that is the case here
e.g.
1.3.6.1.2.1.4.21.1.0.0.0.0 roughly.Have something to add? Share your thoughts — no account required.
Ask the community — no account required