为什么当我在远程服务器的CPU的LoadPercentage上运行此查询时,它返回'None'?
import wmi
c = wmi.WMI('192.168.1.11',user='user',password='password')
x = [cpu.LoadPercentage for cpu in c.Win32_Processor()]
print str(x)
返回:'无'
远程服务器是Win7机器。需要在该特定目标中启用哪些内容? 甚至没有在本地机器上获取值:c = wmi.WMI()。但是其他属性如状态,可用性等正在出现。 我甚至试过c.Win32_PerfFormattedData_PerfOS_Processor class but it didn't acquire any attributes.
答案 0 :(得分:0)