No Account Yet?

You are not logged in.

Add to: JBookmarks Add to: Facebook Add to: Windows Live Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Technorati Add to: Newsvine Add to: Google Information
Expect Script to find MAC Address on Cisco IOS Devices E-mail
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!

Comments
Search RSS
Only registered users can write comments!

3.22 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

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