0
爲什麼當我在遠程服務器的CPU的LoadPercentage上運行這個查詢時,它返回'None'?python:wmi:爲什麼遠程服務器上的Win32_Processor 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.