Skip to content

Commit 2852fef

Browse files
committed
Get cpu status from windows guests
Signed-off-by: Ming Xie <[email protected]>
1 parent d61b099 commit 2852fef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

virttest/utils_v2v.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,16 @@ def get_driver_info(self, signed=True):
12001200
LOG.debug("Command output:\n%s", output)
12011201
return output
12021202

1203+
def get_cpu_status(self):
1204+
"""
1205+
Get windows cpu status.
1206+
"""
1207+
cmd = "wmic cpu get status"
1208+
output = self.session.cmd_output(cmd)
1209+
if not output:
1210+
LOG.error('Fail to get cpu status')
1211+
return output
1212+
12031213
def get_windows_event_info(self):
12041214
"""
12051215
Get windows event log info about WSH.

0 commit comments

Comments
 (0)