?
Solved

Query port info on a Cisco Catalyst 3548XL using snmp

Posted on 2004-04-29
4
Medium Priority
?
1,169 Views
Last Modified: 2013-11-13
I'd like to know which machine is plugged on which port (having the IP and mac Address of the machines).
I'm using SNMP on my Cisco switches to monitor them with MRTG, so everything is already enabled and working on the switch.
I just can't find the info, and have a limited knowledge of SNMP (and the use of SNMP with vbs) , I have some difficulties to find the info in the MIB tree.

Has anyone a solution to use vb/vbs/asp and SNMP to query the Cisco Catalyst with a mac address or an ip and get the port number of the switch on wich it is plugged?

0
Comment
Question by:meciab
  • 2
4 Comments
 
LVL 27

Expert Comment

by:pseudocyber
ID: 10952102
If you have multiple vlan's first figure out which vlan the device you want to view is in.

Then, in enable mode, type:

show mac-add vlan x where x is the vlan number you want to see.

Then, knowing the IP and the MAC, it will tell you which port they're in.

Or, for the whole list, just type:  show mac-add
0
 
LVL 28

Accepted Solution

by:
mikebernhardt earned 1500 total points
ID: 10954343
0
 
LVL 28

Expert Comment

by:mikebernhardt
ID: 10954347
At least if you figure out the correct OIDs you can make your application use them.
0
 

Author Comment

by:meciab
ID: 10960383
found info on http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a00801c9199.shtml thanks to mikebernhardt, so he'll have the points.

Many thanks!
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
This program is used to assist in finding and resolving common problems with wireless connections.
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

864 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