[SNMP4J] getting whole table from the agent

Frank Fock fock at agentpp.com
Thu May 11 01:02:09 CEST 2006


Hello Balt,

SNMP does not provide an approach to get a table's row count
a priori. Even if you have that number, you should not use it
as max repetitions value, because the rows of a table seldom
fit into a single PDU.

For an easy table retrieval, you can use the TableUtils class.

Best regards,
Frank

Dawid wrote:
> Hello,
> I've just tried to get the whole table from the agent using snmp4j with 
> no success.
> My aim is to read ipAddrTable, so I use getBulk with the starting 
> position ipAddrTable.ipAddrEntry.ipAdEntAddr.
> But how should I know how big is this table? If I don't know the rows 
> amount, how can I set the maxRepetitions value?
> 
> How should I project this thing?
> Regards, Balt
> 
> _______________________________________________
> 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