Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identifying mac to which port it's attached! 2

Status
Not open for further replies.

youcandoit

Technical User
Feb 14, 2005
159
US
I am working on a 6509 and would like to identify which port a mac is attached to without tracing cables..

Can you guys help a brother out?
 
if you are running IOS the command is:

show mac-address-table address <h.h.h> 48 bit address

if you are funning catos the command is:

show cam <mac address> in this notation 00-00-00-00-00-00

This should show you the path to determine the port that has the mac.
 
show mac
show mac-address-table

Is this what your looking for?

from there if you know the MAC address your looking for you can further trace it down to a hub or a different switch.
 
I got a loaner of Fluke Optiview two weeks ago. I selected a server and asked the Optiview to do a "tracehost". The Optiview could trace all the way to which blade and port the server was attached. I was surprise. I have a 5500 distribution switch.
 
we're running cisco IOS not sure which version. we were trying in the cam table. I am at home now so I will test it on monday and let you guys know.

we don have a fluke tool and I think we are already asking for too much equipment.

Thanks for all the post.
 
But why pay if YouCanDoIt for free as well!!
Do you know MRTG? Do you know the developer? Do you know his most brilliant script named cammer?
Check out and get cammer.
This is a perl script which will search through your Switch for IP adresses and relate them, via your Router, to MAC addresses on your Switchports !! BRILLIANT !!

Get Perl and MRTG. Install both and copy the .pm files from \mrtg\lib\mrtg2\ to \perl\lib\ because cammer needs a few of those which are not distributed with perl (in my case). Now you are ready to go hunt those MAC addresses.

I run the following every 15 minutes:
perl \cammer\cammer.pl public@10.1.1.10 public@10.1.1.1 >macout.txt
assuming that public is your SNMPReadCommunityString and 10.1.1.10 is your switch and 10.1.1.1 is your Router.
After each run I process the .txt into a database. Big brother is watching the MAC adresses :)
 
Rook this. I finally found sometime to test this and it worked beautifully. Thank you very much sorry it took me so long to respond. A star for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top