English 中文(简体)
当 snmpcapstrap.exe 运行时捕捉 SNMP 陷阱
原标题:Capturing SNMP traps when snmptrap.exe is running

我刚刚实施了一个小型的窗口服务,利用图书馆“http://www.snmpsharrpnet.com/” rel=“nofollow”>http://www.snmpsharpnet.com/ ,捕捉SNMP陷阱。 (在C#中实施)

然而,令我沮丧的是,我刚刚发现,我们所有的服务器在Windows (2008 R2) 运行中,

现在我的问题是:我如何处理这个问题?

您能否通过某种 API 与 snmptaper.exe 进行互动? 还是我必须停止 snmptapre.exe? (我宁愿不这样做,因为我不确定它没有被使用)

任何人都有一个很好的方法 与此有关?

最佳回答

最终发现有关于鼻孔的API:http://msdn.microsoft.com/en-us/library/windows/desktop/aa377986(v=vs.85)。aspx

However I ve found no way to P/Invoke it, so I d have to make a C++ library with a CLI wrapper around it. This would clearly solve my problem, however the company decided on not spending the ressources on it, so I won t be looking further into the matter at the moment.

我仍然相信这是解决问题的方法, 所以我回答了我自己的问题。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签