[SNMP4J] adding a row to a table

Jeff Ramin ramin at berbee.com
Thu Dec 4 15:32:51 CET 2008


Resending in case it wasn't distributed the first time...


-------- Original Message --------
Subject: Re: [SNMP4J] adding a row to a table
Date: Tue, 02 Dec 2008 13:38:33 -0600
From: Jeff Ramin <ramin at berbee.com>
To: Frank Fock <fock at agentpp.com>
CC: snmp4j at agentpp.org
References: <489077F9.1040509 at berbee.com> <48921EA5.2060000 at agentpp.com> 
<49345717.1000004 at berbee.com> <49346E55.3010907 at agentpp.com>


I think I'm specifying the index properly... could you
confirm that for me? The index is specified in the properties
file like this:

snmp4j.agent.cfg.index.1.3.6.1.6.3.18.1.1.1.0={o}'public'

and then the code that gets run is:

MOTableRow row = communityMIB.getSnmpCommunityEntry().createRow(new
OctetString("public").toSubIndex(true), com2sec);
communityMIB.getSnmpCommunityEntry().addRow(row);

I'm I specifying the index properly?

Thanks.


Frank Fock wrote:
> Hi Jeff,
> 
> There is no commit necessary. Maybe the index
> you have used is invalid for the table?
> 
> Best regards,
> Frank
> 
> Jeff Ramin wrote:
>>
>> When adding a row to a table, should it be available immediately 
>> afterward?
>> Or is some sore of commit() call necessary?
>>
>> I've got code similar to:
>>
>>         MOTableRow row = 
>> communityMIB.getSnmpCommunityEntry().createRow(...);
>>         communityMIB.getSnmpCommunityEntry().addRow(row);
>>
>> The second line of code returns true, indicating the row was added, but
>> when I retrieve the contents of that table, the newly added row is not
>> returned.
>>
>> Can anybody explain what I'm doing wrong? Thanks.
>>
>>
> 

-- 
Jeffrey Ramin
Berbee
ramin at berbee.com
608.298.1024


-- 
Jeffrey Ramin
Berbee
ramin at berbee.com
608.298.1024



More information about the SNMP4J mailing list