[AGENT++] Need help with certain design

Reetesh Ranjan reeteshr at gmail.com
Tue Aug 17 22:17:07 CEST 2010


-   I need to register for a subtree OID e.g. x.y.1 such that I can
receive and process SET and GETNEXT request for OIDs like x.y.1.100,
x.y.1.135 etc.
-   I need to modify the OID in the GETNEXT response e.g. if GETNEXT
REQ had a VB for x.y.1.135, I want to change the VB in the GETNEXT REP
to x.y.1.136.

I am not able to achieve above with MibLeaf and MibTable. I used
examples/search on forum emails; but can't seem to get the direct
answer. I don't want to go AgentX or any solution that involves
multiple processes. Could you please help me with this?

I have done a working example earlier for SET and GET with a scalar
OID x.y.1 earlier, so that SET/GET with the OID x.y.1.0 work fine.
This was using a derivation of MibLeaf and standard loop in a thread
to listen and process SNMP requests following the agent++ examples to
do the same.

Thanks,
Reetesh



More information about the AGENTPP mailing list