Added CPU C-state to collect output

Added 'cpupower monitor' to collect_host
Output is saved to /var/extra/host.info

Test Plan:
PASS: Install and bootstrap AIO-SX, ran 'colllect all'.
PASS: Verify /var/extra/host.info file is updated on controller nodes.
PASS: Verified 'cpupower monitor' command on zt-proteus servers.

Closes-Bug: 1996238
Signed-off-by: Andrew Tan <Andrew.Tan@windriver.com>
Change-Id: I46970ee0ed032b508ced820feb5df142bd954d60
This commit is contained in:
Andrew Tan 2022-11-09 17:39:07 +00:00
parent a7a2dee91e
commit 9757cd4e58
1 changed files with 4 additions and 0 deletions

View File

@ -237,6 +237,10 @@ function collect_extra()
topology >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
fi
# CPU C-state power info
delimiter ${LOGFILE} "cpupower monitor"
cpupower monitor >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
LOGFILE="${EXTRA_DIR}/memory.info"
echo "${hostname}: Memory Info .......: ${LOGFILE}"