I'm currenty using C# and ManagementScope to connect to and run WMI queries on Windows machines on my network, and got this to work.
What I was wondering, and had some trouble finding information about, was if ManagementScope could be used to run WBEM queries on machines running Linux / MacOS? If not, what would I 开发者_运维百科need to do to connect to Linux / MacOS clients from a Windows machine?
Mainly I want the query to return the machine's operating system and running processes. On Windows, this can be found in the WMI classes Win32_OperatingSystem and Win32_Process. What would be the equivalents in Linux/MacOS?
Thanks.
Wouldn't you need to have a server first on the Linux machine? e.g. one of those listed here: http://en.wikipedia.org/wiki/Web-Based_Enterprise_Management#Implementations
Please have a look at this solution. I have even tried this and it worked.
Also do you have admin rights on the remote server i.e Linux server?
精彩评论