pj427
pj427

Reputation: 1

snmpv2 packing the pdu with agent information

I'm following this tutorial on how to create a simple application. https://net-snmp.sourceforge.io/wiki/index.php/TUT:Simple_Application and I'm setting up to snmpv2c and using my own ip address and oid number. But I keep getting a timeout at the function call snmp_synch_response.

However, if I pack the snmp_pdu struct with version, community and community_len I'm able to create the pdu and not get a timeout. Which is leading to the confusion, because I thought the snmp_session is the struct that holds the info of the agent we want to talk to and the pdu holds the oids? or am I missing something else?

In addition, if for some reason I need to pack the snmp_pdu with the agent information how will it affect when using snmpv3. Since snmp_pdu struct does not have the fields securityAuthProto, securityName etc. Which is what I eventually would like to implement as well.

I followed the online tutorial https://net-snmp.sourceforge.io/wiki/index.php/TUT:Simple_Application

when I pack the pdu with the version, community and community_len I do not get a timeout, but the snmp_session is the struct that should contain the agent info?

Upvotes: 0

Views: 94

Answers (0)

Related Questions