NAME
IBM::StorageSystem::Enclosure::Slot - Class for operations with a IBM Storwize enclosure slot
VERSION
Version 0.01
SYNOPSIS
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.
drive_id
Returns the drive ID of the drive in the specified slot (if present).
drive_present
Returns the drive present status of the specified slot.
enclosure_id
Returns the enclosure_id of the enclosure in which the specified slot is present.
error_sequence_number
Returns the most recent error sequence number (if present) of the specified slot.
fault_LED
Returns the fault LED state of the specified slot.
port_1_status
Returns the first SAS port status of the specified slot.
port_2_status
Returns the second SAS port status of the specified slot.
powered
Returns the powered status of the specified slot.
slot_id
Returns the numerical IDof the specified slot