Commit e87952d1 by 黄辉荣

Update hwcheck_dell.py

parent b4e4d1ae
......@@ -68,7 +68,7 @@ def check_cpu():
cmd = 'omreport chassis processors -fmt ssv'
#code, stdout = execute(cmd)
code, stdout = execute(cmd)
cpus = [cpu for cpu in stdout.splitlines() if 'CPU' in cpu]
cpus = [cpu for cpu in stdout.splitlines() if 'CPU' in cpu and 'Unknown' not in cpu]
value = 2
for line in cpus:
i = line.split(';')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment