use of org.opennms.protocols.snmp.SnmpPeer in project opennms by OpenNMS.
the class JoeSnmpStrategy method send.
public static void send(String destAddr, int destPort, String community, SnmpPduTrap trap) throws Exception {
SnmpTrapSession trapSession = getTrapSession();
SnmpPeer peer = new SnmpPeer(InetAddress.getByName(destAddr), destPort);
SnmpParameters parms = new SnmpParameters(community);
parms.setVersion(SnmpSMI.SNMPV1);
peer.setParameters(parms);
trapSession.send(peer, trap);
}
Aggregations