问题描述
我开发一个C#(针对完整的框架4)Windows应用程序。我需要一个应用程序来写一些简单的柜台,更重要的是提高(或者应该说是火)几个SNMP陷阱时显著的应用程序事件发生。
I am developing a C# (targeting full framework 4) windows app. I need that app to write to a few simple counters and more importantly raise (or should that be fire) a few SNMP traps when significant app events occur.
现在大多数.NET SNMP库avalable能做到这一点,到目前为止,一切顺利。不过,我有一个显著进一步的要求;我的MIB必须添加到PC上的自己的MIB,它不能代替一切美好的SNMP的东西来出包与Windows PC。
Now most .NET SNMP libraries avalable can do this, so far so good. However I have one significant further requirement; my MIB must add to the PC's own MIB, it must not replace all the good SNMP things that come "out of the bag" with your Windows PC.
这最后一个似乎是大问题。我所有的调查至今显示任何.NET SNMP解决方案在那里似乎取代Windows MIB和SNMP服务(S);他们取代Windows MIB揭露你的。我需要的添加雷到Windows。
This last one seems to be the big deal. All my investigations to date indicate any .NET SNMP solutions out there seem to replace the Windows MIB and the SNMP service(s); they replace the Windows MIB to expose yours. I need to add mine to Windows.
解决方案必须的添加自己的MIB到Windows部署PC,从我可以告诉,意味着它必须(至少部分)提供了一个非托管SNMP扩展DLL来扩展标准窗口SNMP服务。
The solution must add its own MIB to the Windows deployment PC, which from what I can tell, means it must (at least in part) provide an unmanaged SNMP extension DLL to extend the standard windows SNMP service.
- 谁能推荐一个方法,它为你自己的MIB扩展与推广机构的标准Winsows SNMP服务,是一个不错的选择管理code ?
- 如果我不得不做一些本地的Win32 C / C ++ / Delphi的为扩展代理工作,任何人都可以推荐,最大限度地减少了unmanged code所需量的形式给出?
推荐答案
如果你想扩展微软的Windows SNMP代理,您必须使用非托管语言。
If you want to extend Microsoft's Windows SNMP agent, you have to use unmanaged languages.
很少有可能使用托管语言,如Microsoft prefers WMI和SNMP,也不会做任何改变目前的SNMP代理。
There is little possibility to use managed languages, as Microsoft prefers WMI to SNMP and would not make any change to current SNMP agent.
您可以咨询商业.NET SNMP代理供应商,看看他们是否已经实现了你需要的所有必要的对象。据我所知,开源/免费的.NET SNMP厂商所不具备那么多的资源来实现这些。
You may consult a commercial .NET SNMP agent vendor to see if they already implement all necessary objects you need. As far as I know, open source/free .NET SNMP vendors do not have that much resource to implement those.
这篇关于寻找一个.NET SNMP扩展代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!