cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7799
Views
2
Helpful
3
Replies

How can i get serial number using SNMPWalk/SNMPGet for Cisco 4948s and IOS-XR

Haider A.Hani
Level 1
Level 1

Hey Guys,

I am new to SNMPwalk, Can someone help me with the context to get this information?

 

Thanks for the help in advance

3 Replies 3

Ernesto Q
Cisco Employee
Cisco Employee

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

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

 

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