b0ff208138
- monitor command role is to print on a regular base the values of variable constants (Temperature, power, Fans, ...) - new monitor_loop parameter (wait time between queries) - new monitor_info.template - get_power has been renamed to get_powerstate to avoid confusion with Power measures and moved to the Device class as well as get_description - More genericity for the Power and Thermal classes (moved into types.py) - Build process amended (0.4.3 is the next version, repo are generic and in line with pb 0.15 Change-Id: I05016b2557b2f7638e1ea22a89dcf91ebae1066f
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
Redfish API version: {{ r.get_api_version() }}
|
|
{{ r.Root.get_name() }}
|
|
|
|
Monitoring
|
|
==========
|
|
{% for chassis_index in r.Chassis.chassis_dict | sort %}
|
|
{%- set chassis = r.Chassis.chassis_dict[chassis_index] %}
|
|
Chassis #{{ chassis_index }}:
|
|
Name: {{ chassis.get_name() }}
|
|
Power: {{ chassis.get_powerstate() }}
|
|
Temperatures :
|
|
{%- if chassis.thermal.get_temperatures() == 'Not available' %}
|
|
Not available
|
|
{%- else %}
|
|
{%- for sensor, temp in chassis.thermal.get_temperatures().items() | sort %}
|
|
{{ sensor }} : {{ temp }}
|
|
{%- endfor %}
|
|
{%- endif %}
|
|
Fans :
|
|
{%- if chassis.thermal.get_fans() == 'Not available' %}
|
|
Not available
|
|
{%- else %}
|
|
{%- for fan, rpm in chassis.thermal.get_fans().items() | sort %}
|
|
{{ fan }} : {{ rpm }}
|
|
{%- endfor %}
|
|
{%- endif %}
|
|
Power control :
|
|
{%- if chassis.power.get_power() == 'Not available' %}
|
|
Not available
|
|
{%- else %}
|
|
{%- for ps, volt in chassis.power.get_power().items() | sort %}
|
|
{{ ps }} : {{ volt }}
|
|
{%- endfor %}
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
|
|
--------------------------------------------------------------------------------
|
|
{% for system_index in r.Systems.systems_dict | sort %}
|
|
{%- set system = r.Systems.systems_dict[system_index] %}
|
|
System #{{ system_index }}:
|
|
Name: {{ system.get_name() }}
|
|
CPU number: {{ system.get_cpucount() }}
|
|
CPU model: {{ system.get_cpumodel() }}
|
|
Status: State: {{ system.get_status().Health }} / Health: {{ system.get_status().Health }}
|
|
|
|
--------------------------------------------------------------------------------
|
|
{% endfor %}
|