Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Creating Auto Submit Filters

    This topic provides the details for creating basic and advanced filters and importing auto submit filters to Junos Space Service Now.

    Creating a Basic Auto Submit Filter

    A basic auto submit filter uses the the and and or predefined computational logic on the incident attributes to filter an incident for submitting to JSS or Service Now partner (in case of End Customer mode). You can use the following incident attributes to define a basic auto submit filter:

    • Event Synopsis
    • Description
    • Device IP Address
    • Event Occurred Date
    • Platform
    • Event Type
    • Entity
    • Device Name
    • Device ID

    For example, you can have a basic auto submit filter to filter incidents with event type as Daemon Crash and event synopsis does not include the term mgd.

    To create a basic auto submit filter:

    1. In the Service Now navigation tree, click Administration > Auto Submit Filters > Create Auto Submit Filter.

      The Create Basic Filter page appears as shown in Figure 1.

      Figure 1: Create Basic Filter for Creating a Basic Auto Submit Filter

      Create Basic Filter
for Creating a Basic Auto Submit Filter
    2. In the Name text box, enter a name for the filter.

      The name can have alphanumeric characters.

      The name of an auto submit filter can have a maximum of 255 alphanumeric characters. Special characters are not allowed.

    3. In the Action drop-down menu, select an action for the filter:
      • Submit Case
      • Do Not Submit Case
      • Associate to an Existing Case.
    4. For Term Criteria, click one of the following:
      • All—The action defined in step 3 is performed only when the incident matches all the terms defined in the filter.
      • Any—The action defined in step 3 is performed only when the incident matches any of the terms defined in the filter.
    5. Select an incident attribute from the drop-down menu stating Select an attribute type.

    6. Select a condition from the drop-down menu stating Select attribute condition.

      An attribute condition defines the conditions such as words that can be present or not present for an attribute. The conditions listed in this drop-down menu differ for each attribute.

      For example, the Platform attribute has conditions such as includes, does not include, and starts with.

    7. Enter a value in the next text box for the attribute selected in step 5 and condition selected in 6.

      For example, for the platform attribute, you can enter a value of SRX3400, EX3200, or MX960 so that the filter term is ”Platform includes SRX3400” or “Platform does not include EX3400”.

      Note: You can add only one value for an attribute and a condition in the text box.

    8. Click Add Term to add new filter terms and repeat steps 5 to 7.
    9. (Optional) Click Delete to delete a filter term.
    10. Click Submit to create the basic auto submit filter.

      The filter is created and listed on the Auto Submit Filters page.

    Creating an Advanced Auto Submit Filter

    An advanced filter uses Perl scripts to define the filter terms, thereby, providing you the flexibility to define your own filtering logic. You can use the following incident attributes to define a filter term in an advanced filter:

    • Event Synopsis
    • Description
    • Junos OS Version
    • Event Occurred Date
    • Platform
    • Event Type
    • Entity
    • Device Name

    Perl script is a an example of an advanced auto submit filter:

    Note: JMB attributes used in an advanced filter are assigned ARG values. For example , Device host name is assigned $ARGV[1]. Do not change the ARG value of a JMB attribute.

    To create an advanced auto submit filter:

    1. In the Service Now navigation tree, click Administration > Incident Filters > Create Advanced Filter.

      The Create Advanced Filter page appears as shown in Figure 2.

      Figure 2: Create Advanced Filter Page for Creating an Advanced Filter

      Create Advanced
Filter Page for Creating an Advanced Filter
    2. In the Name text box, enter a name for the filter.

      The name of an auto submit filter can have a maximum of 255 alphanumeric characters. Special characters are not allowed.

    3. In the Action drop-down menu, select an action for the filter:
      • Submit Case
      • Do Not Submit Case
      • Associate to an Existing Case.
    4. (Optional) If the Note section is not expanded, click the icon next to Note to expand it.

      The Note section provides a sample Perl script for filtering JMBs.

    5. Click Browse to locate the Perl script on your local system.

      The Perl script should have the extension .pl.

    6. Click Upload to upload the Perl script.

      A message indicating that the file is uploaded successfully is displayed.

    Importing Auto Submit Filters to Service Now

    Service Now allows you to import both advanced and basic auto submit filters. You can use the import option to restore filters in Service Now after an upgrade.

    To import auto submit filters to Service Now:

    1. In the Service Now navigation tree, click Administration > Incident Filters > Import Advanced Filters.

      The Import Auto Submit Filters dialog box appears as shown in Figure 3.

      Figure 3: Import Auto Submit Dialog Box

      Import Auto
Submit Dialog Box
    2. Click Browse to locate the file to be imported on your local system.

      The file to be imported should be in the *.xml format.

    3. Click Upload to upload filters.

      A message indicating that the file is uploaded successfully is displayed.

    Modified: 2017-06-14