[AGENT++] A few questions on the master & subagent examples
Frank Fock
fock at agentpp.com
Wed Mar 28 23:32:09 CEST 2007
Hi Michael,
I am afraid that the "unsecureUser" does not have
access to the MIB objects you want to browse.
Try the MD5DES user which should have the full
view.
Best regards,
Frank
michael.carr at bt.com wrote:
> Thanks Frank.
>
> I've added that to the command line plus a few other settings that I've
> gleamed from the master.cpp code:
>
> ./snmpBulk 127.0.0.1 1.3.6.1.4.1.4976.6.1.1 -v3 -P4700 -snunsecureUser
> -sl1 -cnsubagent
>
> Which gives something more encouraging but still not quite what I'm
> expecting:
>
> 20070328.11:40:56: 19829: (3)DEBUG : getBootCounter: found entry (file)
> (engine id) (boot counter): (snmpv3_boot_counter), (snmpBulk), (28)
> 20070328.11:40:56: 19829: (5)INFO : saveBootCounter: Saved counter
> (file) (engine id) (boot):
> (snmpv3_boot_counter), (snmpBulk), (29)
> 20070328.11:40:56: 19829: (6)INFO : AuthPriv: Added auth protocol
> (id): (3)
> 20070328.11:40:56: 19829: (6)INFO : AuthPriv: Added auth protocol
> (id): (2)
> 20070328.11:40:56: 19829: (6)INFO : AuthPriv: Added priv protocol
> (id): (2)
> 20070328.11:40:56: 19829: (3)INFO : AuthPriv: Added default Auth and
> Priv protocols.
> SNMP++ GetBulk to 127.0.0.1 SNMPV3 Retries=1 Timeout=1000ms Non Reptrs=0
> Max Reps=1
>
> securityName= unsecureUser, securityLevel= 1, securityModel= 3
> contextName= subagent, contextEngineID=
> 20070328.11:40:56: 19829: (4)INFO : v3MP::EngineIdTable: Dont know
> engine id for (host) (port): (127.0.0.1), (4700)
> 20070328.11:40:56: 19829: (5)DEBUG : v3MP: Building message with
> (SecurityEngineID) (securityName) (securityLevel) (contextEngineID)
> (contextName): (), (unsecureUser), (1), (), (subagent)
> 20070328.11:40:56: 19829: (3)INFO : v3MP: Message built OK
> 20070328.11:40:56: 19829: (4)DEBUG : SNMPMessage: return value for
> build message: (-1401)
> 20070328.11:40:56: 19829: (5)DEBUG : v3MP: Building message with
> (SecurityEngineID) (securityName) (securityLevel) (contextEngineID)
> (contextName): ( 80 00 13 70 05 49 73 69 73 12 5C
> ...p.Isis.\
> ), (unsecureUser), (1), ( 80 00 13 70 05 49 73 69 73 12 5C
> ...p.Isis.\
> ), (subagent)
> 20070328.11:40:56: 19829: (3)INFO : v3MP: Message built OK
> 20070328.11:40:56: 19829: (4)DEBUG : SNMPMessage: return value for
> build message: (-1401)
> Oid = 1.3.6.1.4.1.4976.6.1.1
> End of MIB view.
>
>
> I'm still expecting to see the entries in the table as per the code in
> subagent.cpp, i.e. "a text" and "another text" plus the two numbers, is
> anything else needed on the command line for snmpBulk or do I have it
> all wrong?
>
> I also wonder what the engine id is that the snmpBulk doesn't know
> about?
>
>
> The debug output from the master is:
>
> 20070328.11:40:56: 24369: (5)DEBUG : v3MP: Building message with
> (SecurityEngineID) (securityName) (securityLevel) (contextEngineID)
> (contextName): ( 80 00 13 70 05 49 73 69 73 12 5C
> ...p.Isis.\
> ), (), (1), (), (subagent)
> 20070328.11:40:56: 24369: (5)WARNING: USMUserNameTable: No entry for
> (security name) in table:
> ()
> 20070328.11:40:56: 24369: (5)WARNING: USMUserTable: No entry for
> (security name) in table: ()
> 20070328.11:40:56: 24369: (3)INFO : v3MP: Message built OK
> 20070328.11:40:56: 24369: (2)EVENT : RequestList: request received
> (id)(siz)(fro)(ver)(com)(type): (13351), (1), (127.0.0.1/44952),
> (SNMPv3), (unsecureUser), (165)
> 20070328.11:40:56: 24369: (2)EVENT : RequestList: request received:
> (secmod)(seclev)(cid)(cname): : (3), (1), ( 80 00 13 70 05 49 73 69 73
> 12 5C ...p.Isis.\
> ), (subagent)
> 20070328.11:40:56: 24369: (1)DEBUG : TaskManager: task manager found
> 20070328.11:40:56: 24369: (2)DEBUG : TaskManager: after notify
> 20070328.11:40:56: 24369: (2)EVENT : Agent: starting thread execution
> (pduType)(subrequests): (165), (1)
> 20070328.11:40:56: 24369: (2)EVENT : Mib: process request: getbulk
> request, oid: (22), (1.3.6.1.4.1.4976.6.1.1)
> 20070328.11:40:56: 24369: (3)EVENT : RequestList: finished subrequest
> (ind)(oid)(val)(syn): (0), (1.3.6.1.4.1.4976.6.1.1), (), (130)
> 20070328.11:40:56: 24369: (5)DEBUG : v3MP: Building message with
> (SecurityEngineID) (securityName) (securityLevel) (contextEngineID)
> (contextName): ( 80 00 13 70 05 49 73 69 73 12 5C
> ...p.Isis.\
> ), (unsecureUser), (1), ( 80 00 13 70 05 49 73 69 73 12 5C
> ...p.Isis.\
> ), (subagent)
> 20070328.11:40:56: 24369: (3)INFO : v3MP: Message built OK
> 20070328.11:40:56: 24369: (4)DEBUG : SNMPMessage: return value for
> build message: (-1401)
> 20070328.11:40:56: 24369: (2)EVENT : RequestList: request answered
> (rid)(tid)(to)(err)(send)(sz): (13351), (22), (127.0.0.1/44952), (0),
> (0), (1)
> 20070328.11:40:56: 24369: (2)EVENT : Agent: finished thread execution
>
>
> So it does look as though the request is getting through but I'm
> concerned with this "-1401" mentioned in both debug traces.
>
>
>
> -----Original Message-----
> From: Frank Fock [mailto:fock at agentpp.com]
> Sent: Tuesday, March 27, 2007 5:26 PM
> To: Carr,M,Michael,JGFTY C
> Cc: agentpp at agentpp.org
> Subject: Re: [AGENT++] A few questions on the master & subagent examples
>
> Hi Michael,
>
> the context is ignored because you are not using
> SNMPv3 for the request.
>
> Best regards,
> Frank
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the AGENTPP
mailing list