Fibre Channel (SAN)

Upload config for all switches

by dazza on ‎08-19-2005 01:00 AM (217 Views)

DETAILED DESCRIPTION <br/>

<br/>

Perl script to upload switch configuration to specified remote host. Pass the script the name / ip of any switch in the fabric to collect a full list of switches. Once obtained, the script will telnet to each switch uploading the configuration to the remote host. Pass multiple addresses if you have more than one san or fabric. If you want to exclude switches, add them to the @omit array. <br/>

<br/>

Verbosity can be turned off, set $verbose to 0 Logging can be turned down or off, set $logging. !! If logging is set to "2" usernames &#38; passwords show in the log !! <br/>

<br/>

Feel free to contact me if you can't get this script working ) <br/>

<br/>

Tested on Fedora box against 12000, 3900 &#38; 2800 switches <br/>

<br/>

Perl modules required ( Both install very easy ):<br/>

Net::Telnet <a class="jive-link-external" href="http://search.cpan.org/jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm">http://search.cpan.org/jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm</a><br/>

Time::Format <a class="jive-link-external" href="http://search.cpan.org/roode/Time-Format-1.00/Format.pm">http://search.cpan.org/roode/Time-Format-1.00/Format.pm