The Mono .NET framework and WMI(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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Mono .NET 框架和 WMI


基础教程推荐
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01