Skip to content

Commit

Permalink
Get cpu status from windows guests
Browse files Browse the repository at this point in the history
Signed-off-by: Ming Xie <[email protected]>
  • Loading branch information
mxie91 committed Nov 27, 2023
1 parent d61b099 commit 2852fef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions virttest/utils_v2v.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,16 @@ def get_driver_info(self, signed=True):
LOG.debug("Command output:\n%s", output)
return output

def get_cpu_status(self):
"""
Get windows cpu status.
"""
cmd = "wmic cpu get status"
output = self.session.cmd_output(cmd)
if not output:
LOG.error('Fail to get cpu status')
return output

def get_windows_event_info(self):
"""
Get windows event log info about WSH.
Expand Down

0 comments on commit 2852fef

Please sign in to comment.