On our Cisco 2948G, we do a
show cam dynamic
and this shows all entries, but you have to keep
entering 'y' and a return.
To capture this massive list to a file...
1. login to a Unix box.
2. pop open a shell window.
3. run the 'script' command with the filename..
4. Telnet to the switch
5. run the 'show cam dynamic' command
6. exit the telnet, then exit out of the script
7. perform some cleanup on the file using text editir.
You can then search the file using the FIND pattern function.
You can also use Perl to write a script that will PING all the IP addresses in your subnet. Immediately after doing the PING, check the ARP table with an ARP -A, and you will find the MAC address ... as long as your local PC is on same segment as the system you're pinging.
Another idea is to have your local LAN administrator add a
line something like this to the LAN login scripts....
IPCONFIG /ALL >> Q:\TEMP\WKSTNMAC.txt
The next time the user logs in, the startup process would add the IP information, which would include the MAC address to the file. And you pick it up in a few days.
After getting all the IPCONFIG or PING script results in one text file, and all the CAM table dumps in a 2nd file, you can then write a Perl script to cross-reference the results and generate a table showing SWITCH PORT, MACADDRESS and IPADDRESS.
good luck..
Alan