[SNMP4J] Does GETBULK for TableUtils.getTable() actually work?

Rodger Lucas rlucas at tazznetworks.com
Wed Jun 6 12:35:30 CEST 2007


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> 

 



More information about the SNMP4J mailing list