[AGENT++] SNMP v3 Issue ( Unknown Security Name )

Shanmugam, Mani mshanmug at trendium.com
Wed Oct 5 01:52:30 CEST 2005


Hi ,

	Using SNMP++  3.2.9c ,
	
	SNMP Version : v3
	OS : RedHat Linux 

	I am trying a simple Get request using the snmpGet sample provided.
Pls see the attached file.
I am getting "Unknown SecurityName" error. I am sure that user exists in the
router. Another odd thing is, i am able to see through tcpdump that the
SNMPEngine discovery is going fine, but after engine discovery, SNMP++ is
not sending GET Request again with correct contextEngineId.

	I searched the list, but i am unable to find any answers. See below
for command output,

	$./snmpGet x.x.x.x -v3 -snuser2 -sl2 -md5 -uaroot
	SNMP++ Get to x.x.x.x SNMPV3 Retries=1 Timeout=100ms
	securityName= user2, securityLevel= 2, securityModel= 3
	contextName= , contextEngineID= 
	SNMP++ Get Error, SNMPv3: USM: Unknown SecurityName (1404)
	
	tcpdump output,
	
	$tcpdump -v -s 0 -x host x.x.x.x

	19:36:18.962742 host1.37115 > host2.snmp: [bad udp cksum d424!]  {
SNMPv3 { F=r } { USM 
B=0 T=0 U= } { ScopedPDU E=  C= { GetRequest(12) R=13350 } } }  (DF) (ttl
64, id 0, len 96)
                         4500 0060 0000 4000 4011 cd88 ac10 094e
                         ac10 0b96 90fb 00a1 004c 6d62 3082 0040
                         0201 0330 8200 0f02 030f 0000 0202 1000
                         0401 0402 0103 0412 3082 000e 0400 0201
                         0002 0100 0400 0400 0400 3082 0012 0400
                         0400 a00c 0202 3426 0201 0002 0100 3000
	19:36:18.967109 host2.snmp > host1.37115: [udp sum ok]  { SNMPv3 {
F= } { USM B=1 
T=94392 U= } { ScopedPDU E= 0x800x000x000x090x030x000x000x140xA90xE90x090x48
C= { Report(29) R=13350  
S:snmpUsmMIB.usmMIBObjects.usmStats.usmStatsUnknownEngineIDs.0=94} } }  (ttl
255, id 314, len 131)
                         4500 0083 013a 0000 ff11 4d2b ac10 0b96
                         ac10 094e 00a1 90fb 006f 3176 3065 0201
                         0330 0f02 030f 0000 0202 05dc 0401 0002
                         0103 041e 301c 040c 8000 0009 0300 0014
                         a9e9 0948 0201 0102 0301 70b8 0400 0400
                         0400 302f 040c 8000 0009 0300 0014 a9e9
                         0948 0400 a81d 0202 3426 0201 0002 0100
                         3011 300f 060a 2b06 0106 030f 0101 0400
                         4101 5e


	What is the reason for this error? Did i miss something in the v3
setup or is it a known SNMP++ issue? How to overcome this issue?

TIA,
Mani.

 <<snmpGet.cpp>> 



More information about the AGENTPP mailing list