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

michael.carr at bt.com michael.carr at bt.com
Tue Mar 27 11:35:59 CEST 2007


Hi Frank,

Thanks for the reply.  Yes, I am using the subagent.cpp example,
completely unmodified. I've added the context to the snmpBulk query as
below:

./snmpBulk 127.0.0.1 1.3.6.1.4.1.4976.6.1.1 -P4700 -cnsubagent

But get the same reply as before.  Any further thoughts?

Thanks,
Mike


-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com] 
Sent: Monday, March 26, 2007 11:06 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,

Are running the subagent.cpp example? Then you will have to use the
"subagent" context to get that static table. It is not available in the
default context.

Best regards,
Frank

michael.carr at bt.com wrote:
> Hi All,
> 
> I've compiled everything and both the master and subagent appear to be

> talking to each other going on the output but what command (snmpBulk 
> or some such) could be used to actually get information from the
subagent?
> Going on the code in the subagent example it contains a static table 
> at oid 1.3.6.1.4.1.4976.6.1.1 but using the command as below gives the

> result that follows it:
> 
> []$ ./snmpBulk 127.0.0.1 1.3.6.1.4.1.4976.6.1.1 -P4700
> 20070326.18:47:55: 7514: (6)INFO   : AuthPriv: Added auth protocol
(id):
> (3)
> 20070326.18:47:55: 7514: (6)INFO   : AuthPriv: Added auth protocol
(id):
> (2)
> 20070326.18:47:55: 7514: (6)INFO   : AuthPriv: Added priv protocol
(id):
> (2)
> 20070326.18:47:55: 7514: (3)INFO   : AuthPriv: Added default Auth and
> Priv protocols.
> SNMP++ GetBulk to 127.0.0.1 SNMPV1 Retries=1 Timeout=1000ms Non 
> SNMP++ Reptrs=0
> Max Reps=1
>  Community=public
> 20070326.18:47:55: 7514: (4)DEBUG  : SNMPMessage: return value for 
> build
> message: (0)
> Oid = 1.3.6.1.6.3.1.1.6.1.0
> Value = 0
>  
> Which doesn't look like the information I request with the snmpBulk.
> So, what command can I use that will actually return something from 
> the subagent or is the example subagent code incomplete and so won't 
> return anything from the subagent?  (I can query the master agent ok 
> and get the sysDescr from it.)
> 
> Cheers,
> Mike
> 
> 
> _______________________________________________
> 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