Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Learning SNMP

Status
Not open for further replies.

Lubinski

IS-IT--Management
Nov 4, 2010
2
I have a Linksys 48 port switch that I am starting to monitor with SNMP. I know that 1.3.6.1.2.1.2.2.1.8 is the oid for IfOperStatus.

When i SNMP walk the device I get up to IfOperStatus.60. I kind of figured it would have at least IfOperStatus.48, 1 for each port. There is even a IfOperStatus.100000.

Now for my question. What are the other indices for? And rather than just give me the answer can someone provide me with a resource to help me figure this out for future questions. I need a resource that helps me out with the different indices for the various OID's.

Thanks alot.
 
Does the last .# specify the port? Or am I misled on this?
 
The 100000 is the index. Why it is so high I don't know. Linksys probably just screwed it up.

It would be interesting to see the whole mib2 walk.

ifIndex OBJECT-TYPE
SYNTAX InterfaceIndex
MAX-ACCESS read-only
STATUS current
DESCRIPTION "A unique value, greater than zero, for each interface. It is recommended that values are assigned contiguously starting from 1. The value for each interface sub-layer must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.
"
::= { ifEntry 1 }

A cisco switch(2924XL) would look something like:
ifOperStatus.1 = up(1)
ifOperStatus.2 = up(1)
ifOperStatus.3 = up(1)
ifOperStatus.4 = up(1)
ifOperStatus.5 = up(1)
ifOperStatus.6 = up(1)
ifOperStatus.7 = up(1)
ifOperStatus.8 = up(1)
ifOperStatus.9 = up(1)
and so on...

The indices are for distinguishing different rows in a table.

There is not a good reference for this stuff other than rfcs or maybe the Perkins or the Stallings book.

Doing a google on IfOperStatus will bring hits which show the rfcs ifOpeStatus is a part of.

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top