Fibre Channel (SAN)

nsallshow_compare

by jbebay on ‎11-15-2004 10:00 PM - edited on ‎10-30-2013 01:46 PM by bcm1 (374 Views)

DETAILED DESCRIPTION 

nsallshow_compare.pl

Usage:
nsallshow_compare.pl -h -o <output file>
nsallshow_compare.pl -h -v <input file>

DESCRIPTION
This utility can be used to take a snapshot of devices found in a fabric at a specific point in time. It can then be run later point in time to compare the devices currently found in the fabric to a previous snapshot.

OPTIONS
-h switch

This is the switch that we will log into to retrieve the device information for this fabric. Switch can be either an ip address or a name that can be resolved to an ip address.
-o output file

Used to record a point in time view of devices in the fabric. This the file where output will be written to. Recommended file name would be san_name-fabA-devices.mmddyy

-v <input file>
This is used to check the current devices in the fabric versus a previous point in time. The input file should have been generated previously using the -o option.

EXAMPLES
nsallshow_compare.pl -h enu390001 -v lab-fabA-devices.092904

Writing file to lab-fabA-devices.092904
Logging into fabric...
Retrieving fabric information...
Retrieving nsallshow information...
Found 4 devices in fabric. Information written to lab-fabA-devices.092904.

nsallshow_compare.pl -h enu390001 -v lab-fabA-devices.092904

Logging into fabric...
Retrieving fabric information...
Retrieving nsallshow information...

Validating device count for fabric...
Device count in lab-fabA-devices.092904: 5
Device count in fabric: 4
Device count validation: FAIL

Validating devices found in lab-fabA-devices.092904 against fabric...
Port WWN

-



0x10400 10:00:00:00:c9:3a:ac:7f

Missing devices from current fabric: FAIL

Validating devices found in fabric against lab-fabA-devices.092904...
New devices in current fabric: PASS

 

REQUIREMENTS

Operating System Anything supporting Perl

Interface Brocade Scripting API 3.0.1

Fabric Operating System Anything supporting API 3.0.1
2.6.0j
3.0.2q
4.0.2c

 

Other Not Applicable

 

NOTES (INCLUDING LIMITATIONS)

This was used to quickly verify devices before and aftering firmware upgrades on some large fabrics (1000+ ports, 200+ devices).

 

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

Contributors