Solved

snmp interface oid to switchport conversion

Posted on 2013-01-09
3
804 Views
Last Modified: 2013-01-10
I am looking at the values from the following mib:
OID       1.3.6.1.2.1.2.2.1.19

the specific OID is 1.3.6.1.2.1.2.2.1.19.101445

this is on a cisco switch with many ports.  How do i know what cisco switchport this corresponds to?

thanks!
0
Comment
Question by:bryanord
3 Comments
 
LVL 20

Expert Comment

by:rauenpc
ID: 38761313
Many times the end number indicates port. For you I would guess port 4/45. The leading 101 might indicate switch number.
0
 
LVL 17

Accepted Solution

by:
TimotiSt earned 500 total points
ID: 38762386
You could query the IF-MIB for the ifDescr or ifName.
Example from a 3Com:
IF-MIB::ifIndex.15520 = INTEGER: 15520
IF-MIB::ifIndex.15521 = INTEGER: 15521
IF-MIB::ifIndex.15522 = INTEGER: 15522
IF-MIB::ifIndex.15523 = INTEGER: 15523
IF-MIB::ifIndex.15524 = INTEGER: 15524
IF-MIB::ifDescr.15520 = STRING: Stack Aggregated Link 09
IF-MIB::ifDescr.15521 = STRING: Stack Aggregated Link 10
IF-MIB::ifDescr.15522 = STRING: Stack Aggregated Link 11
IF-MIB::ifDescr.15523 = STRING: Stack Aggregated Link 12
IF-MIB::ifDescr.15524 = STRING: Stack Aggregated Link 13
IF-MIB::ifName.15520 = STRING: 
IF-MIB::ifName.15521 = STRING: 
IF-MIB::ifName.15522 = STRING: 
IF-MIB::ifName.15523 = STRING: 
IF-MIB::ifName.15524 = STRING: 
IF-MIB::ifAlias.15520 = STRING: Stack Aggregated Link 09
IF-MIB::ifAlias.15521 = STRING: Stack Aggregated Link 10
IF-MIB::ifAlias.15522 = STRING: Stack Aggregated Link 11
IF-MIB::ifAlias.15523 = STRING: Stack Aggregated Link 12
IF-MIB::ifAlias.15524 = STRING: Stack Aggregated Link 13

Open in new window


I think Cisco usually uses the ifName properly, as opposed to the above example.

Tamas
0
 

Author Closing Comment

by:bryanord
ID: 38765400
thanks
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Wildcard Certificate means all of your sub-domains will resolve to the same location, regardless of the non-SSL Document-Root specification. A user will need to purchase a wildcard SSL from a vendor or a reseller that supplies them. Similar to ha…
As dyndns has reduced the capabilities of the free service, I looked around for other free providers of Dynamic DNS service. After testing several I decided to move my DNS hosting to Hurricane Electric as then domains that require dynamic hostnam…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question