Examples of SnmpParameters


Examples of com.sun.jmx.snmp.SnmpParameters

         int generic,
         int specific,
         SnmpVarBindList varBindList,
         SnmpTimeticks time)
  throws IOException, SnmpStatusException {
  SnmpParameters p = (SnmpParameters) peer.getParams();
  snmpV1Trap(peer.getDestAddr(),
       peer.getDestPort(),
       agentAddr,
       p.getRdCommunity(),
       enterpOid,
       generic,
       specific,
       varBindList,
       time);
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpParameters

    public void snmpV2Trap(SnmpPeer peer,
         SnmpOid trapOid,
         SnmpVarBindList varBindList,
         SnmpTimeticks time)
  throws IOException, SnmpStatusException {
  SnmpParameters p = (SnmpParameters) peer.getParams();
  snmpV2Trap(peer.getDestAddr(),
       peer.getDestPort(),
       p.getRdCommunity(),
       trapOid,
       varBindList,
       time);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpParameters

    public SnmpInformRequest snmpInformRequest(SnmpPeer peer,
                 SnmpInformHandler cb,
                 SnmpOid trapOid,
                 SnmpVarBindList varBindList)
  throws IllegalStateException, IOException, SnmpStatusException {
  SnmpParameters p = (SnmpParameters) peer.getParams();
  return snmpInformRequest(peer.getDestAddr(),
         peer.getDestPort(),
         p.getInformCommunity(),
         cb,
         trapOid,
         varBindList);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpParameters

                           int specific,
                           SnmpVarBindList varBindList,
                           SnmpTimeticks time)
        throws IOException, SnmpStatusException {

        SnmpParameters p = (SnmpParameters) peer.getParams();
        snmpV1Trap(peer.getDestAddr(),
                   peer.getDestPort(),
                   agentAddr,
                   p.getRdCommunity(),
                   enterpOid,
                   generic,
                   specific,
                   varBindList,
                   time);
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpParameters

                           SnmpOid trapOid,
                           SnmpVarBindList varBindList,
                           SnmpTimeticks time)
        throws IOException, SnmpStatusException {

        SnmpParameters p = (SnmpParameters) peer.getParams();
        snmpV2Trap(peer.getDestAddr(),
                   peer.getDestPort(),
                   p.getRdCommunity(),
                   trapOid,
                   varBindList,
                   time);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpParameters

                                               SnmpInformHandler cb,
                                               SnmpOid trapOid,
                                               SnmpVarBindList varBindList)
        throws IllegalStateException, IOException, SnmpStatusException {

        SnmpParameters p = (SnmpParameters) peer.getParams();
        return snmpInformRequest(peer.getDestAddr(),
                                 peer.getDestPort(),
                                 p.getInformCommunity(),
                                 cb,
                                 trapOid,
                                 varBindList);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpParameters

                           int generic,
                           int specific,
                           SnmpVarBindList varBindList,
                           SnmpTimeticks time)
        throws IOException, SnmpStatusException {
        SnmpParameters p = (SnmpParameters) peer.getParams();
        snmpV1Trap(peer.getDestAddr(),
                   peer.getDestPort(),
                   agentAddr,
                   p.getRdCommunity(),
                   enterpOid,
                   generic,
                   specific,
                   varBindList,
                   time);
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpParameters

    public void snmpV2Trap(SnmpPeer peer,
                           SnmpOid trapOid,
                           SnmpVarBindList varBindList,
                           SnmpTimeticks time)
        throws IOException, SnmpStatusException {
        SnmpParameters p = (SnmpParameters) peer.getParams();
        snmpV2Trap(peer.getDestAddr(),
                   peer.getDestPort(),
                   p.getRdCommunity(),
                   trapOid,
                   varBindList,
                   time);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpParameters

    public SnmpInformRequest snmpInformRequest(SnmpPeer peer,
                                               SnmpInformHandler cb,
                                               SnmpOid trapOid,
                                               SnmpVarBindList varBindList)
        throws IllegalStateException, IOException, SnmpStatusException {
        SnmpParameters p = (SnmpParameters) peer.getParams();
        return snmpInformRequest(peer.getDestAddr(),
                                 peer.getDestPort(),
                                 p.getInformCommunity(),
                                 cb,
                                 trapOid,
                                 varBindList);
    }
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpParameters

            NotificationTarget target = null;
            try {
                target = (NotificationTarget) iterator.next();
                SnmpPeer peer =
                    new SnmpPeer(target.getAddress(), target.getPort());
                SnmpParameters p = new SnmpParameters();
                p.setRdCommunity(target.getCommunity());
                peer.setParams(p);
                log.debug("handleNotification", "Sending trap to " +
                          target.getAddress() + ":" + target.getPort());
                adaptor.snmpV2Trap(peer, trap, list, null);
            }catch(Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.