[SNMP4J] Implementing application specific SNMP tables using SNMP4J-Agent

Vinayak Pawar vinayak_pawar at hotmail.com
Fri Mar 17 17:12:11 CET 2006


Thanks, Frank.

I'm taking option 1. I'm extending the MOColumn class and overriding its 
getValue method and this serves my purpose. I'm wondering how do we specify 
dynamically the number of rows and their indices? Do we need to call the 
addRow method of DefaultMOTabeModel class?

Regards,
Vinayak

>From: Frank Fock <fock at agentpp.com>
>To: Vinayak Pawar <vinayak_pawar at hotmail.com>
>CC: snmp4j at agentpp.org
>Subject: Re: [SNMP4J] Implementing application specific SNMP tables using 
>SNMP4J-Agent
>Date: Thu, 16 Mar 2006 21:57:26 +0100
>
>Hi,
>
>You have several options:
>
>1. You can implement your own MOColumn or MOMutableColum subclass
>and overwrite the get(..), prepare(..), commit(..) etc. methods.
>
>2. You can implement your own MOTableModel.
>
>3. You can implement your own MOTable implementation or simply
>extending the DefaultMOTable class by overwriting the ManagedObject
>methods.
>
>Best regards,
>Frank
>
>Vinayak Pawar wrote:
>>I'm looking out for a way to implement SNMP table using SNMP4J. The table 
>>contents change very fast and want to provide up-to-date values in 
>>response to GET/GETNEXT request on table columns. In nutshell, I'm looking 
>>a solution similar implementing application specific SNMP scalar objects 
>>where we extend MOScalar class and override getValue method.
>>
>>Any pointers to achieve the above stuff is appreciated.
>>
>>FYI: I looked at the TestAgent example but the table rows and column 
>>values are fixed. I could use the approach of TestAgent example but then I 
>>need to reload the table contents at periodic intervals which I don't want 
>>to do as the table contents are time sensitive.
>>
>>Thanks
>>
>>_________________________________________________________________
>>STILL SINGLE? Get married through MSN Matrimony. Join now for FREE! 
>>http://www.shaadi.com/msn/matrimonials.php
>>
>>_______________________________________________
>>SNMP4J mailing list
>>SNMP4J at agentpp.org
>>http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>--
>AGENT++
>http://www.agentpp.com
>http://www.mibexplorer.com
>http://www.mibdesigner.com
>

_________________________________________________________________
One and only Ash. Find out all about her. Only on MSN Search 
http://server1.msn.co.in/profile/aishwarya.asp




More information about the SNMP4J mailing list