Solved

Query port info on a Cisco Catalyst 3548XL using snmp

Posted on 2004-04-29
4
1,154 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
Comment Utility
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 500 total points
Comment Utility
0
 
LVL 28

Expert Comment

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

Author Comment

by:meciab
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

What is IRC? IRC (Internet Relay Chat) is a form of communication between multiple users. It is available freely to anyone with inernet access. IRC is a great way to communicate with others e.g. There is an IRC channel for Ubuntu Linux, which is fo…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now