[SNMP4J] help in getTable

Giovane Moreira gcmmoura at gmail.com
Wed Jan 10 13:20:26 CET 2007


Hi Frank,

I'm having a problem like this when I try to retrive a table of more then 64
"lines" with command line tool. And my agent works fine with net-snmp.

I use the following command:

java -jar SNMP4J.jar  -d DEBUG -c public -p GETNEXT -Ot     -v 1
udp:localhost/12345 1.3.6.1.2.1.4.24.2

then if my table has more than 64 lines, I've got:
Table walk completed with status -4. Received 584 rows (it should be 960). I
also tried to change all debug levels but I've got no clue .

I don't now what's going on.

Thanks once again

Giovane


On 1/9/07, Frank Fock <fock at agentpp.com> wrote:
>
> Status -4, as documented in
> http://www.snmp4j.org/doc/org/snmp4j/util/RetrievalEvent.html
> reports that an exception occurred during retrieval.
>
> The exception occurs most likely because you used an illegal
> OID. ".1.3.6.1.2.1.2.2" is illegal because of the leading dot,
> which is a special notation of the NET-SNMP library but not
> standard conform and not supported by SNMP4J!
>
> Best regards,
> Frank
>
> Lauryca Puyulik wrote:
> > Hi, I`m new in snmp4j and I have some questions regarding to table()
> method from SnmpRequest. When I used this method, my response was :
> > 14:49:57,296 INFO  [STDOUT] Table received in 1500 milliseconds.
> > 14:49:57,906 INFO  [STDOUT] Table walk completed with status -4.
> Received 0 rows.
> >
> > 1. Why 0?
> > 2. What`s means status 4?
> > 3. The pduType = PDU.GETBULK (is my default pduType) is correct?
> > 4. To use .1.3.6.1.2.1.2.2 as the base is correct?
> >
> > Thanks!
> >
> >
> >  __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.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
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>



More information about the SNMP4J mailing list