The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IBM::StorageSystem::Enclosure::PSU - Class for operations with a IBM Storwize enclosure PSU

VERSION

Version 0.01

SYNOPSIS

IBM::StorageSystem::Enclosure::PSU is a utility class for operations with a IBM Storwize enclosure PSU.

        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 status of the second PSU in the fifth enclosure.
        print $ibm->enclosure(5)->psu(2)->status;

        # Print the status of all PSUs in all enclosures in our system
        map { print "\t- PSU ", $_->PSU_id, " status: ", $_->status, "\n" } 
        map { print "--- Enclosure ", $_->id, "\n"; $_->get_psus } $ibm->get_enclosures;

        # Should yield something similar to:
        # --- Enclosure 1
        #       - PSU 1 status: online
        #       - PSU 2 status: online
        # --- Enclosure 2
        #       - PSU 1 status: online
        #       - PSU 2 status: online
        # ...

AC_failed

Returns the alternating current failure status of the specified PSU.

DC_failed

Returns the direct current failure status of the specified PSU.

FRU_identity

Returns the Field Replacable Unit (FRU) identity of the specified PSU.

FRU_part_number

Returns the Field Replacable Unit part number of the specified PSU.

PSU_id

Returns the PSU ID.

enclosure_id

Returns the enclosure ID of the enclosure in which the PSU resides.

error_sequence_number

Returns the last error sequence number of the PSU (if present).

fan_failed

Returns the fan failure condition status.

firmware_level_1

Returns the firmware level 1 identifier.

firmware_level_2

Returns the firmware level 2 identifier.

redundant

Returns the redundancy status of the PSU.

status

Returns the operational status of the PSU