如何使用C#发送SNMP陷阱? [英] How to send SNMP traps with C#?

查看:65
本文介绍了如何使用C#发送SNMP陷阱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我被要求通过SNMP陷阱发送错误代码.由于版本1和2的安全性问题,我认为这需要使用版本3来完成..net框架中是否可以执行此操作?或者我是否打算购买第三方库.

In my application I have been asked to send error codes via SNMP traps. I believe that this will need to be done using version 3 because of the security issues with versions 1 and 2. Is there anything in the .net framework to do this or should I be looking to buy a third party library.

推荐答案

有一个出色的开源C#库,名为 SharpSnmpLib .您可以阅读 RFC 作为介绍.

There's an excellent open source C# library called SharpSnmpLib. You could read the RFC as an introduction.

我认为没有人会对v3安全性感到困扰;要使其仅与社区安全一起使用就很难了:)

I don't think anybody bothers with v3 security; it's hard enough to get it working with just community security :)

这篇关于如何使用C#发送SNMP陷阱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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