IBM::StorageSystem::Fabric - Class for operations with a IBM StorageSystem fabric entity
Version 0.01
IBM::StorageSystem::Fabric is a utility class for operations with a IBM StorageSystem fabric entity.
use IBM::StorageSystem; my $ibm = IBM::StorageSystem->new( user => 'admin', host => 'my-v7000', key_path => '/path/to/my/.ssh/private_key' ) or die "Couldn't create object! $!\n"; # Print a list of our fabrics (sorted by fabric ID) including the fabric ID, node ID, port ID, # local WWPN, remote WWPN and fabric status. printf( "%-5s%-8s%-8s%-20s%-20s%-10s\n", 'ID', 'Node', 'Port', 'Local WWPN', 'Remote WWPN', 'Status'); print '-'x80,"\n"; for my $fabric ( map { $_->[0] } sort { $a->[1] cmp $b->[1] } map { [$_, $_->id] } $ibm->get_fabrics ) { printf( "%-5s%-8s%-8s%-20s%-20s%-10s\n", $fabric->id, $fabric->node_name, $fabric->local_port, $fabric->local_wwpn, $fabric->remote_wwpn, $fabric->state ) } # Prints something like: # # ID Node Port Local WWPN Remote WWPN Status # -------------------------------------------------------------------------------- # 1 node1 1 5005076802159D73 21000024FF43DE7B active # 1 node1 2 5005076802259D73 21000024FF35B8FC active # 2 node2 1 5005076802159D74 21000024FF43DE7A active # 2 node2 2 5005076802259D74 21000024FF35B8FD active
Returns the cluster name of the fabric (if present).
Returns the fabric ID.
Returns the local NPort ID.
Returns the local port ID.
Returns the local port World Wide Port Number (WWPN).
Returns the fabric name (if present).
Returns the the fabric node name.
Returns the fabric remote NPort ID.
Returns the fabric remote WWPN.
Returns the fabric operational state.
Returns the fabric type.
Luke Poskitt, <ltp at cpan.org>
<ltp at cpan.org>
Please report any bugs or feature requests to bug-ibm-v7000-fabric at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IBM-StorageSystem-Fabric. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-ibm-v7000-fabric at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc IBM::StorageSystem::Fabric
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=IBM-StorageSystem-Fabric
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/IBM-StorageSystem-Fabric
CPAN Ratings
http://cpanratings.perl.org/d/IBM-StorageSystem-Fabric
Search CPAN
http://search.cpan.org/dist/IBM-StorageSystem-Fabric/
Copyright 2013 Luke Poskitt.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install IBM::StorageSystem, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IBM::StorageSystem
CPAN shell
perl -MCPAN -e shell install IBM::StorageSystem
For more information on module installation, please visit the detailed CPAN module installation guide.