[SNMP4J] Problems with send method.

Daniel Gyorfi gd425 at hszk.bme.hu
Mon Mar 19 18:55:11 CET 2007


Hi!

You have to be more specific:
- why do you think you are missing something - Is it not doing what
you want it to do?
- what about address, target, transportmapping and etc.?

please check the description part of the java doc:
http://www.snmp4j.org/doc/org/snmp4j/package-summary.html#package_description

regards,
Daniel


On 3/19/07, pontus zoladz <z_pontus at hotmail.com> 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
>


-- 
Daniel Gyorfi
xn--gyrfidniel-x4a35k



More information about the SNMP4J mailing list