NAME
IBM::StorageSystem::Enclosure::Battery - Class for operations with a IBM Storwize enclosure battery
VERSION
Version 0.01
SYNOPSIS
IBM::StorageSystem::Enclosure::Battery is a utility class for operations with a IBM Storwize enclosure battery.
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 a list of the batteries in enclosure two
my @batteries = $ibm->enclosure(2)->get_batterys;
# Print the percent charged status of each battery
for my $battery ( @batteries ) {
print "Battery " $battery->battery_id . " percent charged: "
. $_->percent_charged . "%\n"
}
METHODS
FRU_identity
Returns the FRU (Field Replacable Unit) identity number of the battery.
FRU_part_number
Returns the FRU (Field Replacable Unit) part number of the battery.
battery_id
Returns the numerical identifier of this battery within the conext of the enclosure.
charging_status
Returns the charging status of the specified battery.
enclosure_id
Returns the enclosure ID of the specified battery.
end_of_life_warning
Returns the end of life warning of the specified battery.
error_sequence_number
Returns the error sequence number for the specified battery.
firmware_level
Returns the firmware level of the specified battery.
percent_charged
Returns the percent charged of the specified battery.
recondition_needed
Returns the recondition needed status of the specified battery.
status
Returns the operational status of the specified battery.