[SNMP4J] Send Trap: How Change the Sender port
smart bart
smartbart1701e at gmail.com
Mon Feb 11 11:53:34 CET 2008
Hi all,
I've try to send a Trap with this code:
DefaultUdpTransportMapping udpTransportMap = new DefaultUdpTransportMapping();
udpTransportMap.getAddress().setPort(9876);
Snmp snmp = new Snmp(udpTransportMap);
ResponseEvent response = snmp.send(pdu, target, udpTransportMap);
System.out.println("pdu:" + pdu);
System.out.println("response:" + response);
snmp.close();
but the sender port seems always 32770.
Is possible change the sender port?
Thanks alot
Smart
More information about the SNMP4J
mailing list