IBM::StorageSystem::Enclosure::Battery - Class for operations with a IBM Storwize enclosure battery
Version 0.01
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" }
Returns the FRU (Field Replacable Unit) identity number of the battery.
Returns the FRU (Field Replacable Unit) part number of the battery.
Returns the numerical identifier of this battery within the conext of the enclosure.
Returns the charging status of the specified battery.
Returns the enclosure ID of the specified battery.
Returns the end of life warning of the specified battery.
Returns the error sequence number for the specified battery.
Returns the firmware level of the specified battery.
Returns the percent charged of the specified battery.
Returns the recondition needed status of the specified battery.
Returns the operational status of the specified battery.
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.