开发者

Can ManagementScope be used to send wbem queries to Linux / MacOS clients from Windows? C#

开发者 https://www.devze.com 2023-03-05 07:28 出处:网络
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.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号