Cisco::UCS::Common::FanModule - Class for operations with a Cisco UCS Fan Module
print "Fan module " . $ucs->chassis(1)->fan_module(1)->id . " thermal: " . $ucs->chassis(1)->fan_module(1)->thermal . "\n"; my @fans = $ucs->chassis(1)->fan_module(1)->get_fans;
Cisco::UCS::Common::FanModule is a class providing operations with a Cisco UCS Fan Module.
Note that you are not supposed to call the constructor yourself, rather a Cisco::UCS::Common::FanModule is created automatically via method calls to a Cisco::UCS::Chassis object like fan_module.
my $fan = $ucs->chassis(1)->fan_module(1)->fan(2);
Returns a Cisco::UCS::Common::Fan object for the specified fan module identified by the provided fan ID.
Note that the default behaviour for this method is to return a cached object retrieved by a previous lookup if one is available. Please see the Caching Methods section in NOTES for further information.
my $fan = $ucs->chassis(2)->fan_module(1)->get_fan(1);
Returns a Cisco::UCS::Common::Fan object identified by the given fan ID.
This method always queries the UCSM for information on the specified fan - contrast this with the behaviour of the analogous caching method fan().
my @fans = $ucs->get_chassis(2)->fan_module(1)->get_fans;
Returns an array of Cisco::UCS::Common::Fan objects. This is a non-caching method.
Returns the distinguished name of the Cisco::UCS::Common::FanModule in the Cisco UCS management hierarchy.
Returns the numerical ID of the fan module.
Returns the model number of the fan module.
Returns the operability status of the fan module.
Returns the operational state of the fan module.
Returns the performance status of the fan module.
Returns the power status of the fan module.
Returns the presence status of the fan module.
Returns the revision number of the fan module object.
Returns the serial number of the fan module.
Returns the thermal status of the fan module.
Returns the tray identifier in which the fan module is installed.
Returns the vendor information for the fan module.
Returns the voltage status of the fan module.
Luke Poskitt, <ltp at cpan.org>
<ltp at cpan.org>
Please report any bugs or feature requests to bug-cisco-ucs-common-fanmodule at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Cisco-UCS-Chassis-FanModule. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cisco-ucs-common-fanmodule at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Cisco::UCS::Chassis::FanModule
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Cisco-UCS-Chassis-FanModule
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Cisco-UCS-Chassis-FanModule
CPAN Ratings
http://cpanratings.perl.org/d/Cisco-UCS-Chassis-FanModule
Search CPAN
http://search.cpan.org/dist/Cisco-UCS-Chassis-FanModule/
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.