cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1727
Views
5
Helpful
3
Replies

snmpwalk question

ivanov.arseniy
Level 1
Level 1

hello, community.

today i was doing some nm tasks using snmp and suddenly i have a question.

I'm trying to query the 3G WAN module, for example c3gModemState which has the OID of 1.3.6.1.4.1.9.9.661.1.1.1.3

so i did

root@linux:/# snmpget -v 2c -c public 192.168.1.58 1.3.6.1.4.1.9.9.661.1.1.1.3

iso.3.6.1.4.1.9.9.661.1.1.1.3 = No Such Instance currently exists at this OID

hmmm, no value. At this point I realized that probably i need something like an index (similar to ifIndex) to distinguish several 3G modules within the same device. So i did:

root@linux:/# snmpwalk -v 2c -c public 192.168.1.58 1.3.6.1.4.1.9.9.661.1.1.1.3

iso.3.6.1.4.1.9.9.661.1.1.1.3.23 = INTEGER: 2

voila, i got the value. Here comes the question: what is this index 23 and what is the way to find it out without doing the walk?

I tried to pull all the values 23, hoping to get some interface description or name, and one of my findings revealed that 23 is probably the module index, but I'm not sure if i've found the right thing:

root@linux:~# snmpwalk -v 2c -c public 192.168.1.58 1.3.6.1.2.1.47.1.1.1.1.7

iso.3.6.1.2.1.47.1.1.1.1.7.1 = STRING: "CISCO2901/K9 chassis"

...

iso.3.6.1.2.1.47.1.1.1.1.7.20 = STRING: "Container of powerSupply Containers"

iso.3.6.1.2.1.47.1.1.1.1.7.21 = STRING: "Container of Power Supply"

iso.3.6.1.2.1.47.1.1.1.1.7.22 = STRING: "C1941/C2901 AC Power Supply"

iso.3.6.1.2.1.47.1.1.1.1.7.23 = STRING: "Modem 0 on Cellular0/3/0"

Best regards,
Arseniy S. Ivanov       

Best regards, Arseniy S. Ivanov
1 Accepted Solution

Accepted Solutions

Rolf Fischer
Level 9
Level 9

Hello Arseniy,

if you search in the MIB-file for C3gWanCommonEntry, you'll find:

INDEX           { entPhysicalIndex }

entPhysicalIndex is a not-accessible object of the  ENTITY-MIB: 1.3.6.1.2.1.47.1.1.1.1.1, but you've already found .7 which is entPhysicalName - perfect for the identification.

So you've already found the answer yourself ;-)

Best regards

Rolf

View solution in original post

3 Replies 3

Rolf Fischer
Level 9
Level 9

Hello Arseniy,

if you search in the MIB-file for C3gWanCommonEntry, you'll find:

INDEX           { entPhysicalIndex }

entPhysicalIndex is a not-accessible object of the  ENTITY-MIB: 1.3.6.1.2.1.47.1.1.1.1.1, but you've already found .7 which is entPhysicalName - perfect for the identification.

So you've already found the answer yourself ;-)

Best regards

Rolf

Thanks, Rolf,

i'm glad I got it right, thanks for confirmation.

Best regards,
Arseniy S. Ivanov

Best regards, Arseniy S. Ivanov

You're welcome. Thanks for rating and marking as solved.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: