07-27-2015 06:38 AM
Hey Guys,
I am new to SNMPwalk, Can someone help me with the context to get this information?
Thanks for the help in advance
07-27-2015 09:04 PM
Hello Haider,
First of all, you need to enable snmp on the device itself as follows:
config t
snmp-server community public RO
wr
Then from any NMS tool you can get such information using the OID:
1.3.6.1.4.1.9.5.1.2.19
Or from a linux machine you can run the following with the same results:
snmpwalk -v 2c -c public <IP-ADDRESS> 1.3.6.1.4.1.9.5.1.2.19
Let me know if it works.
Regards,
Ernesto Q
07-28-2015 06:37 AM
Hi Ernesto,
I am using Linux box to execute this, Also its ASR9922 and my XR version is 4.3.4 if that's help
Output
snmpwalk -v 2c -c COMMUNITY HOST 1.3.6.1.4.1.9.5.1.2.19
Timeout: No Response from HOST
Also is there a way I can find the OID for the IOS-XR so I know what to use, For example next thing would be grabbing the serial numbers for the line cards,
Thank you for help
07-29-2015 06:13 PM
Hi Haider,
1-Make sure there is full ICMP connectivity between the linux host and the ASR device.
2-Add the following configuration to the device:
config t
snmp-server view VIEW iso included
then add such view to the current community as follows:
snmp-server community public view VIEW RO
Try again the snmpwalk
3-Not sure if the OID that I provided you before will show you such serial numbers, but let's first try to run the snmpwalk and then we can see what the output shows.
if you want to know for some reason all the possible OIDs available on a cisco device you can issue the command:
show snmp mib
It will display a enormous amount of entries, so I recommend you to create a logging session and redirect all the output to a text file, putty and secure crt can do it for you.
Regards,
Ernesto Q
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide