[AGENT++] A few questions on the master & subagent examples

Jochen Katz katz at agentpp.com
Thu Mar 29 22:08:19 CEST 2007


Hi Michael,

> Jochen, a couple of questions; what is the complete command line that
> you are using and that's working?  Do you also have the debug output
> from the command and also that from the master?

some possible hints: Do you start the master as root? Do you get the
registration log lines for the master when you start the subagent? Does
the ping between subagent and master work?

snmpBulk:
snmp++/consoleExamples> ./snmpBulk 127.0.0.1 1.3.6.1.4.1.4976.6.1.1 -v3
-snunsecureUser -sl1 -cnsubagent -P4700 -m1
20070329.21:46:09: 12257: (3)DEBUG  : getBootCounter: found entry (file)
(engine id) (boot counter): (snmpv3_boot_counter), (snmpBulk), (4)
20070329.21:46:09: 12257: (5)INFO   : saveBootCounter: Saved counter
(file) (engine id) (boot): (snmpv3_boot_counter), (snmpBulk), (5)
20070329.21:46:09: 12257: (6)INFO   : AuthPriv: Added auth protocol
(id): (3)
20070329.21:46:09: 12257: (6)INFO   : AuthPriv: Added auth protocol
(id): (2)
20070329.21:46:09: 12257: (6)INFO   : AuthPriv: Added priv protocol
(id): (2)
20070329.21:46:09: 12257: (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=
20070329.21:46:09: 12257: (4)INFO   : v3MP::EngineIdTable: Dont know
engine id for (host) (port): (127.0.0.1), (4700)
20070329.21:46:09: 12257: (5)DEBUG  : v3MP: Building message with
(SecurityEngineID) (securityName) (securityLevel) (contextEngineID)
(contextName): (), (unsecureUser), (1), (), (subagent)
20070329.21:46:09: 12257: (3)INFO   : v3MP: Message built OK
20070329.21:46:09: 12257: (4)DEBUG  : SNMPMessage: return value for
build message: (-1401)
20070329.21:46:09: 12257: (5)DEBUG  : v3MP: Building message with
(SecurityEngineID) (securityName) (securityLevel) (contextEngineID)
(contextName): (  80 00 13 70 05 65 6E 74 65 72 70 72 69 73 65 12
...p.enterprise.
  5C                                                 \
), (unsecureUser), (1), (  80 00 13 70 05 65 6E 74 65 72 70 72 69 73 65
12    ...p.enterprise.
  5C                                                 \
), (subagent)
20070329.21:46:09: 12257: (3)INFO   : v3MP: Message built OK
20070329.21:46:09: 12257: (4)DEBUG  : SNMPMessage: return value for
build message: (-1401)
20070329.21:46:09: 12257: (2)INFO   : v3MP::EngineIdTable: replace entry
(old id) (old host) (old port) (id) (host) (port): (  80 00 13 70 05 65
6E 74 65 72 70 72 69 73 65 12    ...p.enterprise.
  5C                                                 \
), (127.0.0.1), (4700), (  80 00 13 70 05 65 6E 74 65 72 70 72 69 73 65
12    ...p.enterprise.
  5C                                                 \
), (127.0.0.1), (4700)
Oid = 1.3.6.1.4.1.4976.6.1.1.2.71
Value = 2







===========================================================
Master:

20070329.21:46:09: 11988: (5)DEBUG  : v3MP: Building message with
(SecurityEngineID) (securityName) (securityLevel) (contextEngineID)
(contextName): (  80 00 13 70 05 65 6E 74 65
72 70 72 69 73 65 12    ...p.enterprise.
  5C                                                 \
), (), (1), (), (subagent)
20070329.21:46:09: 11988: (5)WARNING: USMUserNameTable: No entry for
(security  name) in table: ()
20070329.21:46:09: 11988: (5)WARNING: USMUserTable: No entry for
(security  name) in table: ()
20070329.21:46:09: 11988: (3)INFO   : v3MP: Message built OK
20070329.21:46:09: 11988: (2)EVENT  : RequestList: request received
(id)(siz)(fro)(ver)(com)(type): (13351), (1), (127.0.0.1/36566),
(SNMPv3), (unsecureUser), (165)
20070329.21:46:09: 11988: (2)EVENT  : RequestList: request received:
(secmod)(seclev)(cid)(cname): : (3), (1), (  80 00 13 70 05 65 6E 74 65
72 70 72 69 73 65 12    ...p.enterpris
e.
  5C                                                 \
), (subagent)
20070329.21:46:09: 11988: (1)DEBUG  : TaskManager: task manager found
20070329.21:46:09: 11988: (2)DEBUG  : TaskManager: after notify
20070329.21:46:09: 11988: (2)EVENT  : Agent: starting thread execution
(pduType)(subrequests): (165), (1)
20070329.21:46:09: 11988: (2)EVENT  : Mib: process request: getbulk
request, oid: (1), (1.3.6.1.4.1.4976.6.1.1)
20070329.21:46:09: 11988: (3)DEBUG  : MasterAgentXMib: GETBULK/NEXT
region upper bound optimized (old)(optimized): (1.3.6.1.4.1.4976.6.1.2),
(1.3.6.1.4.1.4976.6.1.2)
20070329.21:46:09: 11988: (3)DEBUG  : MasterAgentXMib: adding get
subrequest
(sid)(tid)(lower)(upper)(incl)(timeout)(type)(context)(repeater)(repetitions):
(1), (1), (1.3.6.1.4.1.
4976.6.1.1), (1.3.6.1.4.1.4976.6.1.2), (0), (5), (7), (subagent), (1), (1)
20070329.21:46:09: 11988: (4)EVENT  : MasterAgentXMib: queued AgentX
subrequest (sid)(tid)(type)(timeout): (1), (1), (7), (5)
20070329.21:46:09: 11988: (3)EVENT  : MasterAgentXMib: sending AgentX
subrequests (tid): (1)
20070329.21:46:09: 11988: (3)EVENT  : AgentX: sending agentx pdu
(sd)(type)(sid)(tid)(pid)(err)(errind): (6), (7), (1), (1), (1), (0), (1)
20070329.21:46:09: 11988: (3)EVENT  : MasterAgentXMib: sent AgentX
subrequests (tid)(count): (1), (1)
20070329.21:46:09: 11988: (2)EVENT  : Agent: finished thread execution
20070329.21:46:09: 11988: (5)DEBUG  : MasterAgentXMib: reading AgentX packet
20070329.21:46:09: 11988: (4)DEBUG  : MasterAgentXMib: processing AgentX
packet from (sd)(type): (6), (18)
20070329.21:46:09: 11988: (1)DEBUG  : TaskManager: task manager found
20070329.21:46:09: 11988: (4)EVENT  : MasterAgentXMib: processing
response (sd)(sid)(tid)(pid)(status)(vbs): (6), (1), (1), (1), (0), (1)
20070329.21:46:09: 11988: (3)EVENT  : RequestList: finished subrequest
(ind)(oid)(val)(syn): (0), (1.3.6.1.4.1.4976.6.1.1.2.71), (2), (2)
20070329.21:46:09: 11988: (5)DEBUG  : v3MP: Building message with
(SecurityEngineID) (securityName) (securityLevel) (contextEngineID)
(contextName): (  80 00 13 70 05 65 6E 74 65
72 70 72 69 73 65 12    ...p.enterprise.
  5C                                                 \
), (unsecureUser), (1), (  80 00 13 70 05 65 6E 74 65 72 70 72 69 73 65
12    ...p.enterprise.
  5C                                                 \
), (subagent)
20070329.21:46:09: 11988: (3)INFO   : v3MP: Message built OK
20070329.21:46:09: 11988: (4)DEBUG  : SNMPMessage: return value for
build message: (-1401)
20070329.21:46:09: 11988: (2)EVENT  : RequestList: request answered
(rid)(tid)(to)(err)(send)(sz): (13351), (1), (127.0.0.1/36566), (0),
(0), (1)
20070329.21:46:09: 11988: (2)DEBUG  : TaskManager: after notify





==========================================================
Subagent:

20070329.21:46:09: 12006: (4)DEBUG  : AgentXSlave: received something on
ports
20070329.21:46:09: 12006: (2)EVENT  : AgentXRequestList: request
received (context)(tid)(pid)(siz)(type)(err)(status): (subagent), (1),
(1), (0), (7), (0), (0)
20070329.21:46:09: 12006: (1)DEBUG  : TaskManager: task manager found
20070329.21:46:09: 12006: (2)DEBUG  : TaskManager: after notify
20070329.21:46:09: 12006: (2)EVENT  : SubAgent: starting thread execution
20070329.21:46:09: 12006: (2)EVENT  : SubAgentXMib: GETNEXT (tid)(pid):
(1), (1)
20070329.21:46:09: 12006: (2)EVENT  : Mib: process request: getbulk
request, oid: (1), (1.3.6.1.4.1.4976.6.1.1)
20070329.21:46:09: 12006: (6)DEBUG  : Mib: getbulk: processing (non
repeaters)(max rep): (0), (1)
20070329.21:46:09: 12006: (6)DEBUG  : Mib: getbulk: processing
repeaters: (0)
20070329.21:46:09: 12006: (6)DEBUG  : Mib: getbulk: processing
(id)(until)(oid): (0), (1), (1.3.6.1.4.1.4976.6.1.1), (1)
20070329.21:46:09: 12006: (3)DEBUG  : SubAgentXMib: find next
(lower)(upper)(incl)(succ): (1.3.6.1.4.1.4976.6.1.1),
(1.3.6.1.4.1.4976.6.1.2), (FALSE), (1.3.6.1.4.1.4976.6.1.1.2.71)
20070329.21:46:09: 12006: (3)EVENT  : RequestList: finished subrequest
(ind)(oid)(val)(syn): (0), (1.3.6.1.4.1.4976.6.1.1.2.71), (2), (2)
20070329.21:46:09: 12006: (3)EVENT  : AgentX: sending agentx pdu
(sd)(type)(sid)(tid)(pid)(err)(errind): (3), (18), (1), (1), (1), (0), (0)
20070329.21:46:09: 12006: (4)EVENT  : RequestListAgentX: request
answered (id)(status)(tid)(err)(removed)(sz): (1), (0), (1), (0), (1), (1)
20070329.21:46:09: 12006: (2)EVENT  : Agent: finished thread execution
==========================

Hope this helps...

Regards,
  Jochen



More information about the AGENTPP mailing list