[SNMP4J] Retrieving OIDs & their values via synchronous SNMP

Frank Fock fock at agentpp.com
Sun Sep 27 22:40:19 CEST 2009


Call getColumns() on the tableEvent instance.

Hansi Lao wrote:
> Hello All,
> 
> Is it possible to extract the OIDs & their associated value using synchronous SNMP when retreiving an table?
> 
> Using the code snippet below as an example:
> 
> 
> List list = tableUtils.getTable(target, columns,
> lowerBoundIndex, upperBoundIndex);
> // To retrieve each tableEvent instance, we do:
> for( int i=0; i<list.size(); i++ ) {
>     System.out.println( list.get(i));
> }
> 
> Since the code above retrives a list of tableEvent instances, how can I retrieve/extract the OIDs & their associated values? 
> 
> Thank you for your help,
> H
> 
> 
>       
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

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




More information about the SNMP4J mailing list