Find a machine by MAC address
easy to find the MAC address by pinging the ip and issue an ‘arp -a’ command to get the mac address of that ip.
the script currently supports Catalyst 2900 3500 and 4500 series switches.
you have the example ini file 2950.iniĀ which show you the format the script will except, basically it’s: |ip:name or description|
the script will ask for the password for the switches (console password) and not the enable which not needed.
it will ask for the mac address to look for.
you’ll have to reformat the mac address you feed the script from XX-XX-XX-XX-XX-XX to XXXX.XXXX.XXXX
and then it will produce a formated result giving you the switch and the port its connected.
this script is very useful to find new or non documented pc.
i came up with that after i have found an ip address of a dirty pc that had a virus on it and it kept infecting new pc’s in one of the networks i came accross to.
hope it will help you as much as it did for me, any comments will be appreciated you can use the forum freely.
Thanks,




