IBM::StorageSystem::Enclosure::Slot - Class for operations with a IBM Storwize enclosure slot
Version 0.01
IBM::StorageSystem::Enclosure::Slot is a utility class for operations with a IBM Storwize enclosure slot.
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 the corresponding slot and drive IDs for all populated slots # in all enclosures in this system. foreach my $enclosure ( $ibm->get_enclosures ) { foreach my $slot ( $ibm->enclosure($enclosure)->get_slots ) { print "Slot ", $slot->slot_id, " -> Drive ", $slot->drive_id, "\n" if ( $slot->drive_present eq 'yes' ) } } # Will print something similar to: # Slot 1 -> Drive 3 # Slot 2 -> Drive 1 # Slot 3 -> Drive 8 # ... etc.
Returns the drive ID of the drive in the specified slot (if present).
Returns the drive present status of the specified slot.
Returns the enclosure_id of the enclosure in which the specified slot is present.
Returns the most recent error sequence number (if present) of the specified slot.
Returns the fault LED state of the specified slot.
Returns the first SAS port status of the specified slot.
Returns the second SAS port status of the specified slot.
Returns the powered status of the specified slot.
Returns the numerical IDof the specified slot
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.