Cisco::UCS::Common::PSU - Class for operations with a Cisco UCS PSU.
foreach my $psu (sort $ucs->chassis(1)->get_psus) { print 'PSU ' . $psu->id . ' voltage: ' . $psu->voltage . "\n" } # PSU 1 voltage: ok # PSU 2 voltage: ok # PSU 3 voltage: ok # PSU 4 voltage: ok
Cisco::UCS::Common::PSU is a class providing common operations with a Cisco UCS PSU.
Note that you are not supposed to call the constructor yourself, rather a Cisco::UCS::Common::PSU object is created for you automatically by query methods in other classes like Cisco::UCS::Chassis.
Returns the ID of the PSU.
Returns the distinguished name of the PSU.
Returns the serial number of the PSU.
Returns the model number of the PSU.
Returns the hardware revision number of the PSU.
Returns the vendor name of the PSU.
Returns the presence status of the PSU.
Returns the operability status of the PSU.
Returns the voltage status of the PSU.
Returns the power status of the PSU.
Returns the thermal status of the PSU.
Returns the operational status of the PSU.
Returns the performance status of the PSU.
Luke Poskitt, <ltp at cpan.org>
<ltp at cpan.org>
Some methods may return undefined, empty or not yet implemented values. This is dependent on the software and firmware revision level of UCSM and components of the UCS cluster. This is not a bug but is a limitation of UCSM.
Please report any bugs or feature requests to bug-cisco-ucs-common-psu at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Cisco-UCS-Common-PSU. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cisco-ucs-common-psu at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Cisco::UCS::Common::PSU
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Cisco-UCS-Common-PSU
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Cisco-UCS-Common-PSU
CPAN Ratings
http://cpanratings.perl.org/d/Cisco-UCS-Common-PSU
Search CPAN
http://search.cpan.org/dist/Cisco-UCS-Common-PSU/
Copyright 2012 Luke Poskitt.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Cisco::UCS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cisco::UCS
CPAN shell
perl -MCPAN -e shell install Cisco::UCS
For more information on module installation, please visit the detailed CPAN module installation guide.