[SNMP4J] Problems with send method.
pontus zoladz
z_pontus at hotmail.com
Mon Mar 19 11:06:50 CET 2007
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/
More information about the SNMP4J
mailing list