[SNMP4J] Does GETBULK for TableUtils.getTable() actually work?
Frank Fock
fock at agentpp.com
Wed Jun 6 17:18:15 CEST 2007
Hi Rodger,
TableUtils.getTable cannot be used to do a walk on a subtree.
As the name suggests, the getTable() method returns a table.
The OID list must contain column object identifiers.
Otherwise results are undefined (most likely empty).
Best regards,
Frank
Rodger Lucas wrote:
> Hi All:
>
> I am attempting to use the GETBULK using the synchronous
> TableUtils.getTable() to do some simple queries against a Sun Solaris
> box. The result is no errors but the list returned is sized at zero. I
> am using version 1.8.1.
>
> On the Solaris UNIX command line the "/usr/sfw/bin/snmpbulkget" command
> for the same OID works fine when querying the same Sun Solaris box and
> does return data.
>
> Here is the part of the code in question ...
> CommunityTarget target = generateTarget( deviceAddress, devicePort,
> communityString,
> SnmpConstants.version2c,
> Constants.DEFAULT_TIMEOUT );
>
> OID[] oidList = { new OID( initialOID ) };
>
> try
>
> {
>
> TableUtils tableUtils = new TableUtils( _snmp,
> new DefaultPDUFactory( PDU.GETBULK
> ));
>
> List tableEventList = tableUtils.getTable( target, oidList,
> null, null );
>
> if ( _log.isDebugEnabled() ) {
>
> _log.debug( "getBulkRequest - size returned = " +
> tableEventList.size() );
>
> }
>
> <<< code deleted >>>
>
> Regards,
>
> Rodger Lucas
>
> TAZZ Networks
>
> Suite 323 / Pentagon Centre
>
> 36 Washington Street
>
> Glasgow, Scotland, United Kingdom
>
> G3 8HZ
>
> ( Voice: +44 (0)141 222 2126
> + Email: rlucas at tazznetworks.com <mailto:rlucas at tazznetworks.com>
>
>
> _______________________________________________
> 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
More information about the SNMP4J
mailing list