Luke Poskitt > IBM-StorageSystem-0.02 > IBM::StorageSystem::IOGroup

Download:
IBM-StorageSystem-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: IBM-StorageSystem-0.045

NAME ^

IBM::StorageSystem::IOGroup - Class for operations with IBM StorageSystem I/O Groups

VERSION ^

Version 0.01

SYNOPSIS ^

IBM::StorageSystem::IOGroup is a utility class for operations with IBM StorageSystem I/O Groups.

        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";

        # Get I/O group 0
        my $io_group = $ibm->get_iogroup(0);

        # Print the I/O group maintenance state
        print $io_group->maintenance_state;

        # Alternately:
        print $ibm->iogroup(0)->maintenance_state;

        # Print a formatted listing of all I/O groups by ID and name, along with
        # their VDisk count, host count, node count and maintenance state.
        map { printf("%-8s%-20s%-20s%-20s%-20s%-20s\n", 
                $_->id,
                $_->name,
                $_->vdisk_count,
                $_->host_count,
                $_->node_count,
                $_->maintenance )
        } $ibm->get_iogroups;

        # Prints something like:
        #
        # ID      Name                VDisk Count         Host Count          Node Count          Maintenance         
        # 0       io_grp0             2                   3                   2                   no                  
        # 1       io_grp1             0                   3                   0                   no                  
        # 2       io_grp2             0                   3                   0                   no                  
        # 3       io_grp3             0                   3                   0                   no
        # ... etc.

METHODS ^

accessible_vdisk_count

Returns the number of accessible volumes in this I/O group.

compression_active

Returns the I/O group volume compression support state.

compression_supported

Indicates if the I/O group supports compressed volumes.

flash_copy_free_memory

Returns the I/O groups free flash copy memory in bytes.

flash_copy_total_memory

Returns the I/O groups total flash copy memory in bytes.

host_count

Returns the number of hosts attached to the I/O group.

id

Returns the I/O groups numerical identifier.

maintenance

Returns the maintenance state of the I/O group.

mirroring_free_memory

Returns the I/O groups mirroring free memory in bytes.

mirroring_total_memory

Returns the I/O groups total mirroring memory in bytes.

name

Returns the name of the I/O group.

node_count

Returns the attached node count of the I/O group.

raid_free_memory

Returns the I/O groups RAID free memory in bytes.

raid_total_memory

Returns the I/O groups RAID total memory in bytes.

remote_copy_free_memory

Returns the I/O groups remote copy free memory in bytes.

remote_copy_total_memory

Returns the I/O groups total remote copy memory in bytes.

vdisk_count

Returns the I/O groups VDisk count.

AUTHOR ^

Luke Poskitt, <ltp at cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-ibm-v7000-iogroup at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IBM-StorageSystem-IOGroup. 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::IOGroup

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: