[SNMP4J] Need a quick help for a better way to get the table data.

Frank Fock fock at agentpp.com
Tue Sep 27 23:55:46 CEST 2005


Hi Krishna,

TableUtils already uses GETBULK if you use SNMPv2c or SNMPv3.
Have you requested the whole table or just one column (the
latter is sufficient if you need only the index values).

Best regards,
Frank

krishna kukunuri wrote:
> hi ,
>    I am using Snmp4J API in building a manager application that queries the agents for varied information like MACADDRESS, SUBNETMASK , HARDDISK SPACE etc. The problems i am encountering are as follows:
>  
> 1)  To extract the values of the above parameters ,in the first place we need to know  the  corresponding table index value so that for MACADDRESS we frame a pdu with a varbind--- macaddress_oid.Index----.So in order to know the indices values ,i have used the TableUtils  and its corresponding methods and
> i am succesfully abl to get the indices values of the table.
>    BUT SNIFFING THE ETHEREAL ON EXCEUTING THAT CODE ,I FOUND THAT IT IS internally GENERATING 200-300 REQUEST (GET_NEXT) PDUs AND CONSUMING CONSIDERABLE TIME(500 MSEC) (STATISTICS on an  AVERAGE).  so i need to know if there is a better of doing this ?
>  
> 2) Can i use snmp.getBulk(pdu,target)  to fullfill my requirement and attain the desired results.if so plz throw some light on the max-repitions and non-repeaters fields of the GET_BULK pdu.
>      thanks in advance for the  kind response
> Radhakrishna.
> 
> 		
> ---------------------------------
>  Yahoo! India Matrimony: Find your partner now.
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j





More information about the SNMP4J mailing list