[AGENT++] snmp++ get v3 problem

Don Radick dradick at comcast.net
Tue Jul 28 15:31:53 CEST 2009


of Course this was user error.

Correct command line works fine:

 ./snmpGet 10.10.1.8 -v3  -sl2 -sncking -uadaytona19y -authMD5

The error message from the library was somewhat misleading, though:
SNMP++ Get Error, SNMPv3: USM: Unsupported SecurityLevel (1403)

The problem was not the Security Level, but an incorrect authProtocol
error.

regards,
-don


On Mon, 2009-07-27 at 17:55 -0400, Don Radick wrote:

> Apologies in advance for what is surely a user error.
> Environment:  Ubuntu 9.04, snmp++ v3.2.23
> 
> Finally testing Snmp V3 for my application.
> Using the example router configurations and command line (net-snmp) from
> Cisco Cookbook Ian Brown, Kevin Dooley "O-Reilly" 
> pages 656 - 660
> using consoleExamples snmpGet to test
> 
> First example for V3 and noAuthNoPriv works correctly with snmp++
> 
> Second example with authNoPriv works fine with net-snmp command line:
> snmpget -v3 -u cking -l authNoPriv -a MD5 -A daytona19y 10.10.1.8
> sysName.0
> 
> snmp++ command line:
> ./snmpGet 10.10.1.8 -v3  -sl2 -sncking -uadaytona19y -authPROTMD5
> 
> fails with this (partial) error:
> SNMP++ Get to 10.10.1.8 SNMPV3 Retries=1 Timeout=1000ms
> securityName= cking, securityLevel= 2, securityModel= 3
> 
> 20090727.17:44:11: 11354: (1)WARNING: v3MP: Returning error for building
> message: (1403)
> 20090727.17:44:11: 11354: (4)DEBUG  : SNMPMessage: return value for
> build message: (1403)
> SNMP++ Get Error, SNMPv3: USM: Unsupported SecurityLevel (1403)
> 
> Sorry for bother - do I have an error with the parameters?
> 
> -Don
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp



More information about the AGENTPP mailing list