[SNMP4J] Please Help

Frank Fock fock at agentpp.com
Tue Dec 18 22:19:14 CET 2007


I just want to add that all Variables (org.snmp4j.smi)
have a method toSubIndex which can be used to convert
an variable into an OID value. The OID value can then
be concatenated to construct the index OID.

Best regards,
Frank

Eugene R. Snider wrote:
> Simply concatenate the index OID values to construct the instance OID. 
> In the case of OctetString indices each character represents an OID 
> element.
> 
> OID oidIndex = new OID("27.3259.87");
> someTable.addRow( oidIndex, rowValues );
> 
> Gene
> 
> Rathish P.S wrote:
>> Hi,
>> I am new to SNMP4j.
>> I have wrote an snmp agent usning snmp4j.
>> But i dont know how to add a row to a table having multiple indexes.
>> Please help me if some one know/Send me a piece of code how to do it ?
>>
>>   




More information about the SNMP4J mailing list