No subject


Thu May 4 07:32:04 CEST 2017


code , I have the doubt which IP address is it......


public class RTrapV2 implements CommandResponder{

 TransportMapping transport;

 Snmp snmp;

 public RTrapV2(){

  try{

  transport = new DefaultUdpTransportMapping(new UdpAddress(*"10.110.350.3
/162*"));// my machineIP or deviceIP

  snmp = new Snmp(transport);

  snmp.addCommandResponder(this);

  System.*out*.println("transportBinding..");

  transport.listen();

  }catch(Exception e){e.printStackTrace();}

 }

 public synchronized void processPdu(CommandResponderEvent cmdREvent) {

         System.*out*.println("----Received Response -----");

     PDU pdu=cmdREvent.getPDU();



 }

  public static void main(String[] args)

 {

  RTrapV2 trp=new RTrapV2();



  System.*out*.println("----Received Response -----");



 }

}



More information about the SNMP4J mailing list