Fibre Channel (SAN)

Upload config for all switches

by dazza on ‎08-18-2005 05:00 PM - edited on ‎10-30-2013 01:38 PM by bcm1 (690 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

 

REQUIREMENTS 

Operating System Linux with Perl 

Interface Command line 

Fabric Operating System # 2.6.0d

  1. 3.0.2g
  2. 4.0.2b

Others should work fine 

Other Please feel free to doctor this script, if you make it better please mail me a copy. There's tons of room for improvement!

Regards
Darren Chambers 

 

NOTES (INCLUDING LIMITATIONS) 

Sometimes the Net::Telnet module times out waiting for a prompt. For this reason, the script defaults to retrying failed switches five times before bailing out. If you suss this out, let me know Smiley Surprised

 

NOTE: This contribution was migrated by Brocade from the former Brocade Connect community on March 13, 2008, on behalf of the author.

Contributors