[AGENT++] <ErrorCode is -1406> <ErrorCode is -1403> <USMUserNameTable: No entry for (security name) in table> problems?

Jochen Katz katz at agentpp.com
Thu Apr 29 20:44:47 CEST 2010


Hi,

this is the normal behaviour of SNMPv3 when a manager first contacts an
agent.
- The first error is used to get the engine id of the agent, this
triggers the "Invalid EngineID" // -1406 on agent side
- The second message is used to get the engine time, this triggers the
"Message not in Time Window" // -1403 on the agent side
- The third message succeeds

The first message is send with empty username and this triggers the
warnings "no entry...". I will change this to info logs for empty
usernames in the next release.

Regards,
  Jochen

Am 29.04.2010 11:34, schrieb Yasemin YILMAZ:
> Hi all,
> 
> I have been testing atm_mib sample with SNMP JManager. When manager sends
> SNMP GET request using "MD5DES" user (with MD5DESUserAuthPassword,
> MD5DESUserPrivPassword), atm_agent records to log the following errors. Why
> does agent++ detect there are problems although manager gets a response
> succesfully for <1.3.6.1.4.1.4976.6.2.1.1.0> OID? And although the users are
> added to corresponding table, how is that warning reported: 'WARNING:
> USMUserNameTable: No entry for (security  name) in table' ?
> 
> Thanks in advance for your clarifications,
> 
> : (1)DEBUG  : USM: EngineID unknown
> : (1)DEBUG  : mp: error while executing USM::process_msg
> : (1)DEBUG  : ErrorCode is -1406
> : (1)DEBUG  : v3MP::send_report: Sending report message.
> : (1)DEBUG  : Parsed scoped_pdu: context_engine_id length(0x0), context_name
> length(0x0)
> : (1)DEBUG  : pdu->reqid = 0
> : (1)DEBUG  : Looking up cache
> : (5)DEBUG  : v3MP: Building message with (SecurityEngineID) (securityName)
> (securityLevel) (contextEngineID) (contextName): (  80 00 13 70 05 6D 79 61
> 67 65 6E 74                ...p.myagent
> 
> ), (), (1), (), ()
> : (1)DEBUG  : Coding msgID(1573484127), maxMessageSize(0x1000),
> msgFlags(0x0), securityModel(0x3)
> : (1)DEBUG  : Coding sequence (headerdata), length = 0x10
> : (5)WARNING: USMUserNameTable: No entry for (security  name) in table: ()
> : (5)WARNING: USMUserTable: No entry for (security  name) in table: ()
> : (1)DEBUG  : usmGetUsmUserName: User unknown
> _________________________________________________________________.......
> : (1)DEBUG  : MD5 authentication OK.
> : 2180: (1)DEBUG  : ***Message not in TimeWindow!
> : (1)DEBUG  : ErrorCode is -1403
> : (1)DEBUG  : v3MP::send_report: Sending report message.
> : (1)DEBUG  : Parse error: Wrong header type in scoped_pdu.
> : (1)DEBUG  : mp: Error while trying to parse  scopedPDU!
> : (1)DEBUG  : pdu->reqid = 0
> : (1)DEBUG  : Looking up cache
> : (5)DEBUG  : v3MP: Building message with (SecurityEngineID) (securityName)
> (securityLevel) (contextEngineID) (contextName): (  80 00 13 70 05 6D 79 61
> 67 65 6E 74                ...p.myagent
> 
> ), (MD5DES), (2), (), ()
> _________________________________________________________________........
> 
> Best regars,
> Yasemin
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
> 



More information about the AGENTPP mailing list