Mono .NET 框架和 WMI [英] The Mono .NET framework and WMI

查看:18
本文介绍了Mono .NET 框架和 WMI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个使用 WMI 的 .NET 项目,并且有兴趣将其移植到 Mono 框架.

We have a .NET project that uses WMI and are interested in porting it to the Mono framework.

看来 Mono 不支持 WMI.

It appears Mono does not support WMI.

有没有可以添加 WMI 支持的库?

Are there any libraries that can add WMI support?

基本上,我们希望使用 WMI 从 Linux/OS X 机器访问 Windows 服务器.

Basically we would want to access a Windows server using WMI from a Linux/OS X box.

推荐答案

Windows Management Instrumentation 是 Microsoft 的 WBEM (基于 Web 的企业管理).

Windows Management Instrumentation is a Microsoft implementation of WBEM (Web-Based Enterprise Management).

有一些开源实现(例如 openPegasus),您可能可以使用客户端,但是没有人知道 MS 对他们的版本做了什么.如果您可以将 CIM 查询发送到服务器,那么您可能会得到很好的结果.

There are open-source implementations (eg openPegasus) that you might be able to use a client, but there's no telling what MS did with their version. If you can send CIM queries to the server, then you may get good results.

请注意,Windows 不会通过 http 执行 WMI,只有 DCOM/DCE-RPC,因此某些客户端将无法正常工作.快速 google.. 和 OpenPegasus 将允许您使用 WMI Mapper 访问 Windows.如果没有,您始终可以在 Windows 上运行服务器组件.

Note that Windows doesn't do WMI over http, only DCOM/DCE-RPC, so some clients will just not work. A quick google.. and OpenPegasus will allow you to access Windows using a WMI Mapper. If not, you could always run the server component on Windows.

这篇关于Mono .NET 框架和 WMI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆