Expect Script to find MAC Address on Cisco IOS Devices
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!

 Download Expect find MAC Script for CISCO IOS Devices
File Title:Expect find MAC Script for CISCO IOS Devices (Details)
File Type:exp
File Version:1.0
File Size:2.12 Kb
License:
File Author:Keith Short
File HomePage:http://www.linuxdynasty.org/
Downloads:332
Rating: ( Votes)
Your Vote:



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Free Joomla PHP extensions, software, information and tutorials.
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 on Wednesday, 02 September 2009 09:00