ManagementScope 能否用于从 Windows 向 Linux / MacOS 客户端发送 wbem 查询? C#
我目前正在使用 C# 和 ManagementScope 连接到网络上的 Windows 计算机并在其上运行 WMI 查询,并使其正常工作。
我想知道并且在查找相关信息时遇到了一些麻烦,即 ManagementScope 是否可用于在运行 Linux / MacOS 的计算机上运行 WBEM 查询?如果没有,我需要做什么才能从 Windows 计算机连接到 Linux / MacOS 客户端?
主要是我希望查询返回机器的操作系统和正在运行的进程。在 Windows 上,可以在 WMI 类 Win32_OperatingSystem 和 Win32_Process 中找到它。 Linux/MacOS 中的等效项是什么?
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Linux 机器上不需要先有一个服务器吗?例如,此处列出的其中之一: http://en.wikipedia.org/wiki/Web- Based_Enterprise_Management#Implementations
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
请查看这个解决方案。我什至尝试过 这个 并且成功了。
另外,您是否拥有远程服务器(即 Linux 服务器)的管理员权限?
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?