I'm in trouble with the configuration of the snmpv3 trap.
I used create_trap_session  to add the session list in order to create the trap 
list. I can use SNMP_VERSION_1 and SNMP_VERSION_2C. But when i use 
SNMP_VERSION_3 as the param of the create_trap_session, it returns 0.
The source code is listed as follows:

    INT pdutype = SNMP_MSG_TRAP2;
    ...
    ...    
    if (SNMP_TRAP_V1 == liVersion)
    {
        pdutype = SNMP_MSG_TRAP;
    }
   else if (SNMP_VERSION_V2C != liVersion)
   {
       liVersion = SNMP_VERSION_3;
   }
    ...
    /* create a trap session and add to Session & Sinks. */
    ret = create_trap_session((CHAR *)acRemoteIp, usPort, 
                              (CHAR *)acCommunity, liVersion, pdutype); 
   ...

When the liVersion is set to  SNMP_VERSION_1 or SNMP_VERSION_2C, ret is 1. 
However, ret is 0 as the liVersion is set to SNMP_VERSION_3.

I'm already read the source code of net-snmp for many times. But i can't find 
the reason of this phenomena.

The error msg is listed as follows:

trace: snmp_synch_input(): snmp_client.c, 175:
snmp_synch: Response (ReqID: 711633531 - Cmd 160)
trace: snmpv3_engineID_probe(): snmp_api.c, 1396:
snmp_sess_open: unable to connect with remote engine: Timeout (-24)
trace: snmpv3_engineID_probe(): snmp_api.c, 1402:
snmp_api: unable to determine remote engine ID
snmp_sess_add: engine ID probe failed
snmpd: create_trap_session: Timeout

Help!





2012-05-15 



Rainforest.Peng  |  Software Engineer 
SHENZHEN TENDA TECHNOLOGY CO.,LTD
 
 

 

<<tl.gif>>

<<spacer.gif>>

<<ml.gif>>

<<dr.gif>>

<<m_tl.gif>>

<<m_bg.gif>>

<<m_tr.gif>>

<<m_bgl.gif>>

<<bg.gif>>

<<m_bgr.gif>>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to