Solved

snmp interface oid to switchport conversion

Posted on 2013-01-09
3
798 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
reserve ip address for mac address in ubuntu dhcp server 2 74
Networking/NAT rules 4 35
Prevent DDOS attack 16 76
New firewall implementation guidance 12 68
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…
Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

823 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