C应用程序-NetSnmp和SNMPv3 [英] C application - NetSnmp and SNMPv3
问题描述
早上好,
我正在使用C语言并使用SNMPv3协议进行项目.
要恢复项目,需要有一个服务器和一个客户端.服务器通过SNMPv3发送命令,运行我的应用程序的客户端根据每个命令执行特定的代码.客户端必须向服务器发送INFORM消息以确认该过程之后.
实际上,我在这部分有问题.我正在寻找一种通过语言C通过我的应用程序执行和发送INFORM请求的方法,类似于"execlp"
,但是我不知道该怎么做或是否可以这样做.顺便说一下,我使用库NetSnmp
,并且该应用程序在嵌入式Windows XP上运行.
预先感谢您的帮助.
Good morning,
I am working on project in C language and using the SNMPv3 protocol.
To resume the project, there is a server and a client. The server send commands via SNMPv3 and the client, where my application is running, execute a specific code according to each command. After the client have to send an INFORM message to the server to acknowledge the process.
Actually, I have a problem in this part. I searching a way to execute and send an INFORM request via my application in language C, something like "execlp"
but I don''t know how to do or if it is possible to do. By the way I use the library NetSnmp
and the application runs on windows XP embedded.
Thanks in advance for any help.
推荐答案
如您在 ^ ],它与陷阱类似,但已被确认-即,如果没有响应,则重新发送
Google it [ ^ ],您将有几个选择.
问候
Espen Harlinn
As you can see from TUT:snmptrap[^], it''s similar to traps, but acknowledged - i.e. resend if no response
Google it[^] and you''ll have several options.
Regards
Espen Harlinn
这篇关于C应用程序-NetSnmp和SNMPv3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!