Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get cpu status from windows guest #3805

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading