Link to home
Start Free TrialLog in
Avatar of meciab
meciabFlag for Belgium

asked on

Query port info on a Cisco Catalyst 3548XL using snmp

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?

Avatar of pseudocyber
pseudocyber

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
ASKER CERTIFIED SOLUTION
Avatar of mikebernhardt
mikebernhardt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
At least if you figure out the correct OIDs you can make your application use them.
Avatar of meciab

ASKER

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!