Skip to content

kanzure/python-wmi-client-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-wmi-client-wrapper

This is a wrapper around wmi-client for Linux. Apparently the python-wmi module uses Windows APIs to access WMI, which isn't something that is going to work on Linux.

installing

pip install wmi-client-wrapper

usage

import wmi_client_wrapper as wmi

wmic = wmi.WmiClientWrapper(
    username="Administrator",
    password="password",
    host="192.168.1.149",
)

output = wmic.query("SELECT * FROM Win32_Processor")

#get FibrePort Info
wmic = wmi.WmiClientWrapper(
    username="Administrator",
    password="password",
    host="192.168.1.1",
    namespace='//./root/WMI'
)
output = wmic.query('Select * FROM MSFC_FibrePortNPIVAttributes')

testing

nosetests

license

BSD

About

Linux-only wrapper around wmi-client for WMI (Windows)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages