Class SNMPTrap


  • public class SNMPTrap
    extends Object
    Send SNMP traps.
    • Constructor Detail

      • SNMPTrap

        public SNMPTrap()
    • Method Detail

      • sendTrap

        public static void sendTrap​(com.redwood.scheduler.api.model.SchedulerSession session,
                                    String host,
                                    BigDecimal port,
                                    String community,
                                    BigDecimal id,
                                    String data)
                             throws com.redwood.scheduler.api.exception.UnlicensedFeatureException
        Send an SNMP trap using the parameters passed. If a null value is passed for a parameter then the default value will be loaded from the registry if it exists.
        Parameters:
        session - the scheduler session
        host - the host name
        port - the port number
        community -
        id - the SNMP id
        data - the SNMP data
        Throws:
        com.redwood.scheduler.api.exception.UnlicensedFeatureException
      • sendTrap

        public static void sendTrap​(String host,
                                    BigDecimal port,
                                    String community,
                                    BigDecimal id,
                                    String data)
                             throws com.redwood.scheduler.api.exception.UnlicensedFeatureException,
                                    UnknownHostException,
                                    IOException
        Send an SNMP trap using the parameters passed. All parameters are required
        Parameters:
        host - the host name
        port - the port number
        community -
        id - the SNMP id
        data - the SNMP data
        Throws:
        com.redwood.scheduler.api.exception.UnlicensedFeatureException
        UnknownHostException
        IOException