I have to develop SNMP trap agent that will collect information from manager objects on the server and send this information to the managers using SNMP-Trap messages. I looked through your project and found it very interesting. But I didn't find the needed functionality. So, do you have any examples of Agent realization or do you know any open source project that do that stuff? Any help will be appreciated.
Example how to send SNMP traps can be found here: http://snmpsharpnet.com/trapsendexample.html
I am working on examples of how to send SNMPv3 traps and informs. When done, it will be posted on the http://www.snmpsharpnet.com/ web site.
Let me know if this doesn't apply to your particular situation.
Thanks for help, but I have already found this example. I thought you had some special class for this, in order not to create a socket, just call some function. For example
If you implement this in future it will be great.
Also I've found a project on CodePlex, I think you will be interested in it
I am having difficulty in generating SNMPv3 traps and informs. So can you please help me?
I have a query on SNMP v3 details are below:
I am working on SNMP Sharp Net library latest version. While using this lib for SNMP v3 sending and receiving traps, I am referring to URL http://www.snmpsharpnet.com/node/20, here in the below code
UdpTarget target = new UdpTarget((IPAddress)SomeHostIP);
SecureAgentParameters param = new SecureAgentParameters();
OctetString ostr = new OctetString();
Console.WriteLine("Discovery failed. Unable to continue…");
target.Discovery function is giving me an error "Request has reached maximum retries.", so can you please help me. Is there anything I am missing here?
Can you please point me to a documentation/implementation link for SNMP v3 traps.
You don't need to set any of the values in the SecureAgentParam class before calling the Discovery() method. Once discovery process is completed, you will need to set the SecurityName, Authentication and Privacy protocols and secrets.
If you are still not getting a response, it is possible that agent (host you are sending traps to) is not correctly configured or not capable of handling SNMPv3.