Cisco::UCS::Common::EnvironmentalStats - Class for operations with Cisco UCS environmental stati.
# Print all blades in all chassis along with a cacti-style listing of # the blades current, maximum and average CPU temperature values. map { print "Chassis: " . $_->id ."\n"; map { print "\tBlade: ". $_->id; map { print "\n\t\tCPU: ". $_->id . "\n\t\t\tCurrent:". $_->env_stats->temperature . "\n\t\t\tMax:". $_->env_stats->temperature_max . "\n\t\t\tAvg:". $_->env_stats->temperature_avg ."\n" } sort { $a->id <=> $b->id } $_->get_cpus } sort { $a->id <=> $b->id } $_->get_blades } sort { $a->id <=> $b->id } $ucs->get_chassiss; # Prints something like: # # Chassis: 1 # Blade: 1 # CPU: 1 # Current:32.500000 # Max:33.000000 # Avg:32.375000 # # CPU: 2 # Current:37.000000 # Max:37.000000 # Avg:32.500000 # Blade: 2 # CPU: 1 # Current:45.500000 # Max:46.000000 # Avg:45.666668 # ...etc.
Cisco::UCS::Common::EnvironmentalStats is a class providing operations with Cisco UCS environmental stati.
Note that you are not supposed to call the constructor yourself, rather a Cisco::UCS::Common::EnvironmentalStats object is created automatically by method calls on a Cisco::UCS::Blade object.
Returns the current input current value for the target object.
Returns the current average input current value for the target object.
Returns the current minimum input current value for the target object.
Returns the current maximum input current value for the target object.
Returns the current temperature value for the target object.
Returns the average temperature value for the target object.
Returns the maximum temperature value for the target object.
Returns the minimum temperature value for the target object.
Flag to indicate if the environmental status is in a thresholded state.
Flag to indicate if the environmental status is in a suspect state.
Returns the timestamp at which time the status information were collected.
Luke Poskitt, <ltp at cpan.org>
<ltp at cpan.org>
Please report any bugs or feature requests to bug-cisco-ucs-common-environmentalstats at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Cisco-UCS-Common-EnvironmentalStats. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cisco-ucs-common-environmentalstats at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Cisco::UCS::Common::EnvironmentalStats
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Cisco-UCS-Common-EnvironmentalStats
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Cisco-UCS-Common-EnvironmentalStats
CPAN Ratings
http://cpanratings.perl.org/d/Cisco-UCS-Common-EnvironmentalStats
Search CPAN
http://search.cpan.org/dist/Cisco-UCS-Common-EnvironmentalStats/
Copyright 2013 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.