For more details, please see ourCookie Policy.

Fibre Channel (SAN) Technical Documents

Upload config for all switches

by Anonymous ‎08-18-2005 05:00 PM - edited ‎10-30-2013 01:38 PM (1,206 Views)



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/>


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/>


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


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


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

Net::Telnet <a class="jive-link-external" href=""></a><br/>

Time::Format <a class="jive-link-external" href="">



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!

Darren Chambers 



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 :o) 


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