Added new script for IPMI POH Counter Support
POH (Power-On Hours) counter has the incremental count of power ON hours of the system.
Request and Response data defined under data/ipmi_raw_cmd_table.py
Testcases added -
- Get POH Counter Command Via IPMI
- Verify Get POH Counter With Invalid Data Request Via IPMI
- Verify POH Counter Reading With Wait Time
- Verify POH Counter Reading With Host Power Off
- Verify POH Counter Reading With Host Power On
Script compares Minutes per count and Counter reading for the above scenarios.
Minutes per count usually 60 minutes.
Wait Time given - 1 hour in host powered on state, 1 hour 30 minutes when Host power OFF, 1 hour after Host Power ON
Comparison between Initial POH Counter reading and reading after wait time / Power operation.
Tested: Run robot ipmi/test_ipmi_poh_counter.robot
Signed-off-by: chithrag <chithrag@ami.com>
Change-Id: I0137f42cc4af215abfdeef6ad0d9004e9dd2d2dc
diff --git a/data/ipmi_raw_cmd_table.py b/data/ipmi_raw_cmd_table.py
index 5ed4b9b..7e7f84a 100644
--- a/data/ipmi_raw_cmd_table.py
+++ b/data/ipmi_raw_cmd_table.py
@@ -408,5 +408,14 @@
'Invalid value',
'Valid values are serial, 9.6 19.2, 38.4, 57.6 and 115.2',
],
+ },
+ 'Get':
+ {
+ 'POH_Counter':
+ [
+ # raw command, error response
+ '0x00 0x0f',
+ 'Error: Unable to establish IPMI v2 / RMCP+ session'
+ ]
}
}