[SNMP4J] GETBULK and TableUtils Using V2c

Rodger Lucas rlucas at tazznetworks.com
Tue May 29 13:19:03 CEST 2007


Hi All:
 
I am attempting to use the GETBULK using the synchronous
TableUtils.getTable() to do some simple quries against a Sun Solaris
box. The result is no errors but no VBs. 
 
On the Solaris UNIX command line the /usr/sfw/bin/snmpbulkget for the
same OID works fine when querying the same Sun Solaris box.
 
Here is the part of the code in question ... Does anyone see anything
amiss?
 
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, new
OID( "0" ), 
                                                new OID( String.valueOf(
bulkSize )) );

   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