Is there anything Like as WMI for Windows same for Linux
We would like to develop an test tool to work on Linux os 开发者_如何学Gosystems Is there anything like WMI for linux to establish remotely connectons and execute commands ,get system infos.
Regards, M.Channabasappa
The standard is called WBEM. WMI is just Microsoft's proprietary pseudo-WBEM implementation.
http://en.wikipedia.org/wiki/Web-Based_Enterprise_Management
For Linux, google turns up this WBEM option: http://openwbem.sourceforge.net/
The CIM support on Linux speaks the standard CIM-XML protocol defined by DMTF (standards DSP0200, DSP0201).
The WMI server support on Windows does not support the standard CIM-XML protocol, and I don't think that the WMI client you integrated into your test environment speaks both the WMI protocol (basically CIM over COM) and the standard CIM-XML protocol.
So what you need is a CIM/WBEM client that speaks the standard CIM-XML protocol and that you can integrate into your test environment.
If the preferred integration method is command line, you could start with the cimcli client from the OpenPegasus project, but then you have to parse its output.
If you need more sophistication, then depending on what programming environments you can deal with in that test environment, you could use the PyWBEM client for Python, or the SFCC client for C language.
Andy
精彩评论