Configure event collection for SNMP traps

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 3 minutes de lecture
  • The SNMP listener runs on the MID Server, which acts as a collection endpoint for SNMP traps. The MID Server sends the traps to the ServiceNow instance for further processing as an event by Event Management.

    Avant de commencer

    Role required: agent_admin
    Remarque :
    • To view the MID SNMP Trap Listener in the UI: agent_admin
    • To perform other operations, any one of the following roles is required: agent_admin, evt_mgmt_integration, or evt_team_operator

    Ensure that the MID Server is assigned with either EventManagement or ALL applications.

    Pourquoi et quand exécuter cette tâche

    Use the MID SNMP Trap Listener to listen for SNMP traps. In this configuration, the specified MID Server acts as a collection endpoint for SNMP traps.

    Procédure

    1. Navigate to All > Event Management > Integrations > MID SNMP Trap Listener.
    2. Click New.
    3. Complete the SNMP Trap Collector Context form.
      OptionDescription
      Name Unique name for the SNMP Trap Collector.
      Short description Short description of the MID Server extension execution context.
      SNMP version Specify the SNMP version:
      • v1 and v2c
      • v3
      Minimum Security Level The valid security level values are:
      • None - No security level value set.
      • noAuthnoPriv - Communication without authentication and privacy
      • authNoPriv - Communication with authentication and without privacy.
      • authPriv - Communication with authentication and privacy.
      Remarque :
      This field appears only when v3 is selected in the SNMP version field.
      UDP Port UDP port for SNMP Trap Collector to receive SNMP Traps. The default value is 1,162. However, if the port is already in use, you can use any other free port instead.
      Status

      The status of the trap listener. This field is blank until the listener is run. After the listener has run, the value is automatically populated to one of these statuses:

      • Started: The listener is running.
      • Stopped: The listener is not running.
      • Offline: The MID Server is down.
      • Error: The listener failed with an error.
      Execute on The MID Server location for running this listener. Select from specific MID Server. The recommended setting is Specific MID Server. Network hardware typically has to be configured to send to a specific IP address.
      MID Server Specify the name of the designated MID Server when you select Specific MID Server in the Execute on field.
      EngineID

      Displays only when SNMP version=v3.

      • When sending an SNMP Inform message, include the default value of this field in the message.
      • When sending an SNMP Trap message, include a value other than the default value of this field in the message.
      Executing on

      The name of the MID Server on which the extension is running. This field shows the name of the MID Server even if the MID Server is down. If you stop the extension, this field is empty.

      This field is automatically populated.
    4. Right-click the form header and select Save.
    5. In the Credentials for SNMPs section, specify the required SNMP v3 credentials that the SNMP listener uses for authentication.
      Remarque :
      The Credentials for SNMPs section appears only when v3 is selected in the SNMP version field.
    6. In the Related Links section, click Test parameters.
    7. Click Update.
    8. Facultatif : If the MID Server fails to start, review the MID Server log errors.

      When working with object identifiers (OIDs), the OID trap counter may cause problems activating event rules. To remove the trap counter from the OID, navigate to MID Server > Properties and set the mid.em.snmp_old_key_counter_cut.enabled property to true.

    Que faire ensuite

    In Related Links, these actions may be run against the SNMP traps listener:
    Tableau 1. Commands available in the SNMP trap listener form
    Related Link Description
    Start If it is currently not running, starts the listener. The listener is started on the configured MID Server and port number.
    Stop Stops the running listener on the configured MID Server. If the listener is not running, no action is taken.
    Restart Stops, then starts the listener on the configured MID Server and port number.
    Test parameters Tests that the port is a valid number.
    Update parameters If you make changes to the listener configuration, use this option to update the parameters of the currently running listener. First, the parameters are tested for validity. If the parameters are valid, the listener disconnects and reconnects with the new parameters.
    Remarque :
    Updates to the SNMP trap listener take effect only after clicking Restart or Update parameters.