Luke Poskitt > IBM-StorageSystem > IBM::StorageSystem::Fabric

Download:
IBM-StorageSystem-0.045.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

IBM::StorageSystem::Fabric - Class for operations with a IBM StorageSystem fabric entity

VERSION ^

Version 0.01

SYNOPSIS ^

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 

METHODS ^

cluster_name

Returns the cluster name of the fabric (if present).

id

Returns the fabric ID.

local_nportid

Returns the local NPort ID.

local_port

Returns the local port ID.

local_wwpn

Returns the local port World Wide Port Number (WWPN).

name

Returns the fabric name (if present).

node_name

Returns the the fabric node name.

remote_nportid

Returns the fabric remote NPort ID.

remote_wwpn

Returns the fabric remote WWPN.

state

Returns the fabric operational state.

type

Returns the fabric type.

AUTHOR ^

Luke Poskitt, <ltp at cpan.org>

BUGS ^

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.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc IBM::StorageSystem::Fabric

You can also look for information at:

ACKNOWLEDGEMENTS ^

LICENSE AND COPYRIGHT ^

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.

syntax highlighting: