|
Linux HowTo's -
Advance Linux HowTo's
|
|
Written by Keith Short
|
|
Tuesday, 19 August 2008 12:40 |
|
This script will find a MAC address on a Cisco IOS based switch.
Here's what you'll see when the switch is successful and unsuccessful finding the MAC address.
Notice it prompts you for your username and password. This script is integrated with the Expect Telnet script on this site.
kshort@LinuxStudent:~$ ./findMACaddress_final 10.10.12.1
Enter the MAC Address? 0013.72fb.3050
Username? kshort
Password?
-------------------Here Are the The Results of Your Search------------------
vlan mac address type learn age ports
------+----------------+--------+-----+----------+--------------------------
Supervisor:
* 95 0013.72fb.3050 dynamic Yes 65 Gi1/3
kshort@LinuxStudent:~$ ./findMACaddress_final 10.255.12.1
Enter the MAC Address? 0013.72fb.3051
Username? kshort
Password?
-------------------Here Are the The Results of Your Search------------------
vlan mac address type learn age ports
------+----------------+--------+-----+----------+--------------------------
No entries present.
kshort@LinuxStudent:~$
----------------------------------------------------------------------------------------------------------------------------
Download the script here. To download you must be a member!

|
|
Last Updated ( Wednesday, 08 October 2008 10:17 )
|