Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

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 that have event type set to Daemon Crash and the event synopsis does not contain 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 list, select an action for the filter:
    • Submit Case

    • Do Not Submit Case

    • Associate to an Existing Case.

  4. For Term Criteria, select a term criteria as follows:
    • 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 list stating Select an attribute type.

  6. Select a condition from the list 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 list 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.Tip

    Click Delete to delete a filter term.

  9. Click Submit to create the basic auto submit filter.

    After you click submit, 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 and provides 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 list, 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 down arrow icon next to Note to expand the Note section.

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

  5. Click Browse and navigate to the Perl script stored on your local system.

    The Perl script should have the extension .pl.

  6. Click Upload to upload the Perl script.

    When the upload is complete, 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 from an XML file 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 Incident 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 and navigate to locate the file to be imported on your local system.

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

  3. Select the file and click Upload to upload filters.

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