Fibre Channel (SAN)

alidocu.pl

by storagemanager on ‎03-12-2012 05:00 PM - edited on ‎10-30-2013 01:01 PM by bcm1 (155 Views)

DETAILED DESCRIPTION  
This script extracts the port aliases from a Brocade switch configupload-file and creates a semicolon-separated port-table or html-file to STDOUT. The result is a convenient port-overview of all the switches within this fabric.

The table-format can either be a semicolon-separated table (default) that can easily be imported into tools like MS Excel or it can be a html-table output (-w Option) that might be uploaded to a webserver. 

The table-format tries to represent the physical port positions, including empty ports. You can specify the switch-type whose port-layout will be used via the -s option. 

USAGE general usage example:
/usr/bin/perl alidocu.pl configupload-file.txt > outputfile.txt 

example with options: alidocu.pl -s 4100 -w configupload-file.txt > outputfile.html 
(This produces a html-page with port-layout for Brocade 4100 switches.) 

OPTIONS: -s 3800|3900|4100|12000|24000|48000 Switch-type for port-layout
-w Web-format: html-output (default-format is text)
-e empty rows: insert one empty row (newline) after each alias-row
-f 'field-separator' field-separator: define field-separator for text-output (ignored with -w) 

 

REQUIREMENTS 

Operating System Unix or Linux with Perl 5 (Tested on Solaris 8 with Perl 5.00503) 

Interface Command line 

Fabric Operating System Any (tested with 3.0.5 and upwards) 

Other None 

 

NOTES (INCLUDING LIMITATIONS) 

Limitations: The script only works with port-based alias-names,.

See source-code comments for further description. 

 

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

Contributors