[SNMP4J] Problems with send method.

Frank Fock fock at agentpp.com
Mon Mar 19 19:02:19 CET 2007


Hi,

I guess that replacing "GET" by "GETBULK" will be
closer on what you expect, because the instance
1.3.6.1.2.1.2.1 will not exists in 99,999% of agents
;-)

Regards,
Frank

pontus zoladz wrote:
> Hi, im trying to write a program for sending and retrieving information 
> about router status via snmp.
> 
> However im a little unsure of the following method really do what i want 
> it to do.
> 
> This method would (as far as i know) get the information about 
> interfaces on the router, is that correct? What am i missing ?
> 
> else if(actionName.equals(button_2)){
>                transport.listen();
>     pdu.setType(GET);
>     pdu.addOID(new VariableBinding(new OID("1.3.6.1.2.1.2.1")));
>     ResponseEvent response=snmp.send(pdu, target);
>     PDU responsePDU=response.getResponse();
>     String resp=responsePDU.toString();
>     textArea.append(resp);
> 
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now! 
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> 
> _______________________________________________
> 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