meciab
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
At least if you figure out the correct OIDs you can make your application use them.
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!
Many thanks!
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