Fibre Channel (SAN)

Expect/Perl-based switch backup

by wjhallam on ‎01-30-2005 11:22 PM - edited on ‎10-30-2013 01:45 PM by bcm1 (757 Views)

DETAILED DESCRIPTION 

A script written in Perl using the Expect module to run configuploads on a crypt-ed list of switches and admin passwords.

 

REQUIREMENTS

Operating System Tested on SunOS 5.8 with Perl 5.8.5 from sunfreeware.com, but should work with any Perl 5.8.5 with Expect and IO-Stty, IO-Tty modules.

Interface Perl 5.8.5 with the following modules:
Expect
IO-Stty
IO-Tty

Fabric Operating System Various 2.6.X, 3.0.X tested, should work with most/all with minor tweaks if any.

Other Not Given

 

NOTES (INCLUDING LIMITATIONS)

Plenty of room for enhancements, this was a quick write. The main thing it adds above others is support for a list of switches that have different passwords. I added /usr/bin/crypt for encryption of the list to provide at least a semblance of security on the plaintext passwords. Since the script prompts for some userid and password information it needs to run interactively, but could be updated easily to run in a batch mode if you're cool with embedding passwords or reading them from a file.

 

 

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

Contributors