Hi Alexander,

The get method is not accessed when a GETBULK SNMP request
is being processed. Instead you would have to overwrite
the next(..) method. But this only works, if you have a
stable first and last row in your table which is seldom
the case.

I would recommend using the MOServerLookupEvent described
on page 17 and 18 of the instrumentation how-to instead.

Best regards,
Frank

Alexander Fooks wrote:
Hi, All,

I'm new in SNMP4J and looking for answer:

I use dynamic table defined in my MIB. In my scenario I need to catch event like GETBULK (getwalk at snmp-net)
on whole table to fill the table from data base before return the
response.
When I use recommended at  SNMP4J-Agent-Instrumentation-HowTo.pdf for
static table it doesn't catch the event.

public class NXTable extends DefaultMOTable {

      public NXTable(OID oid, MOTableIndex indexDef, MOColumn[] columns)
{

            super(oid, indexDef, columns);

      }

      //

      public void get(SubRequest request) {

            MOScope affectedOIDScope = request.getScope();

            System.out.println("Here!"");

            super.get(request);

      }

}

Could you advise how to do this.

Thank you in advance

Alex Fooks

_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com

_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to