Cisco::UCS::Blade::CPU - Class for operations with a Cisco UCS Blade CPUs.
# Print all blades in all chassis along with a cacti-style listing of # the blades current, minimum and maximum power consumption values. map { print "Chassis: " . $_->id ."\n"; map { print "\tCommon::PowerStats: " . $_->id ." - Power consumed -" . " Current:". $_->power_stats->consumed_power . " Max:". $_->power_stats->consumed_power_max . " Min:". $_->power_stats->consumed_power_min ."\n" } sort { $a->id <=> $b->id } $_->get_blades } sort { $a->id <=> $b->id } $ucs->get_chassiss; # Prints something like: # # Chassis: 1 # Blade: 1 - Power consumed - Current:115.656647 Max:120.913757 Min:110.399513 # Blade: 2 - Power consumed - Current:131.427994 Max:139.313675 Min:126.170883 # Blade: 3 - Power consumed - Current:131.427994 Max:157.713593 Min:126.170883 # Blade: 4 - Power consumed - Current:0.000000 Max:0.000000 Min:0.000000 # Blade: 5 - Power consumed - Current:0.000000 Max:0.000000 Min:0.000000 # Blade: 6 - Power consumed - Current:0.000000 Max:0.000000 Min:0.000000 # Blade: 7 - Power consumed - Current:0.000000 Max:0.000000 Min:0.000000 # Blade: 8 - Power consumed - Current:0.000000 Max:0.000000 Min:0.000000 # Chassis: 2 # Blade: 1 - Power consumed - Current:131.427994 Max:136.685120 Min:128.799438 # Blade: 2 - Power consumed - Current:126.170883 Max:131.427994 Min:123.542320 # Blade: 3 - Power consumed - Current:134.056564 Max:155.085037 Min:131.427994 # ...etc.
Cisco::UCS::Blade::CPU is a class providing operations with a Cisco UCS Blade CPU.
Note that you are not supposed to call the constructor yourself, rather a Cisco::UCS::Blade::CPU object is created automatically by method calls on a Cisco::UCS::Blade object.
Returns the CPU architecture.
Returns the number of CPU cores.
Returns the number of CPU cores enabled.
Returns the environmental status and statistics of the CPU as a Cisco::UCS::Common::EnvironmentalStats object.
Returns the distinguished name of the CPU in the UCS information management heirarchy.
Returns the integer ID of the CPU.
Returns the CPU model.
Returns the CPU operability state.
Returns the CPU operational reason.
Returns the CPU operational state.
Returns the CPU performance state.
Returns the CPU power state.
Returns the CPU presence state.
Returns the CPU revision level.
Returns the CPU serial number.
Returns the CPU socket.
Returns the CPU speed.
Returns the CPU stepping.
Returns the CPU thermal state.
Returns number of the CPU threads.
Returns the CPU vendor string.
Returns the CPUs visibility.
Returns the CPUs voltage.
Luke Poskitt, <ltp at cpan.org>
<ltp at cpan.org>
Please report any bugs or feature requests to bug-cisco-ucs-blade-cpu at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Cisco-UCS-Blade-CPU. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cisco-ucs-blade-cpu at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Cisco::UCS::Blade::CPU
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Cisco-UCS-Blade-CPU
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Cisco-UCS-Blade-CPU
CPAN Ratings
http://cpanratings.perl.org/d/Cisco-UCS-Blade-CPU
Search CPAN
http://search.cpan.org/dist/Cisco-UCS-Blade-CPU/
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.