Service Now Event Profiles Overview
An event profile is a set of event scripts, selected from an AI-Scripts bundle that you install on Junos Space Service Now devices. The event scripts in the event profile determine the events for which AI-Scripts generate an event Juniper Message Bundle (eJMB.
Juniper Networks ships the latest AI-Scripts bundle with Service Now and hence when you install Service Now, the latest AI-Scripts bundle is displayed on the Script Bundles page (Administration > Event Profiles > Script Bundles). You can also download other AI-Scripts bundles from the Juniper Networks software download site and upload them to Service Now (see Adding a Script Bundle to Junos Space Service Now).
Service Now also has a default event profile that is associated with the default AI-Scripts bundle. For new Service Now installations or upgrades, Service Now associates the default event profile with the AI-Scripts bundle shipped with Service Now.
After installing or upgrading Service Now, you can add additional AI-Scripts bundles and set any AI-Scripts bundle and event profile as the default. Service Now uses the default Scripts bundle to create a new event profile and selects the default event profile while installing an event profile on devices.
Read the KB article, https://kb.juniper.net/KB19155, before installing AI-Scripts on devices.
Service Now allows you to clone an existing event profile by modifying its name, description, the associated AI-Scripts bundle, set of included event scripts, and event script priorities. You can clone an event profile to create a new event profile by modifying a few attributes of the original event profile. After you make your modifications, you can save the cloned event profile and install it on devices on which the original event profile is installed. You can also install the new event profile on any device.
The priority of event policies in an event profile determine the priority shown in the JMBs generated for a Service Now event. Service Now allows you to export event data that is specific to an event profile to Excel format and delete event profiles that are not associated with devices.
You can view event profiles on the Event Profiles page (Administration > Event Profiles) as shown in Figure 1. Table 1 lists the information displayed on the Event Profiles page The default event profile is indicated by a unique icon. In Figure 1, Base_Profile_3_7R1_ 2 is the default event profile.

Table 1 lists the parameters of event profiles.
Table 1: Event Profile Parameters
Parameter | Description |
---|---|
Name | Name of the event profile |
Description | Description of the event profile |
AI-Scripts Version | Version of AI-Scripts used to created the event profile |
Created By | User who created the event profile |
Created | Date and time when the event profile was created |
Events Included | Number of events from the AI-Scripts bundle included in the event profile |
Events Excluded | Number of events from the AI-Scripts bundle not included in the event profile |
Total Events in Script Bundle | Number of events in the AI-Scripts bundle using which the event profile was created |
Events with No Incidents | Number of events for which incidents have not been created |
Total Incidents | Number of incidents that are created by using the event profile |
Associated Devices | Number of devices on which the event policy is installed |
Domain | Domain to which the event policy is assigned |
Installing, Upgrading, or Uninstalling AI-Scripts on Managed Devices without Modifying Device Configuration Overview
Advanced Insight Scripts (AI-Scripts) provide the intelligence that managed devices need to automatically detect and report hardware and software failure or other functional abnormalities. For AI-Scripts to provide intelligence to a device, AI-Scripts must be installed and AI-Scripts configuration committed on a device running Junos OS.
Starting in Service Now Release 15.1R1, when AI-Scripts Release 5.0R1 is installed (or an earlier version is upgraded to Release 5.0R1) on the device for the first time, a static AI-Scripts configuration is pushed and commited on the device. The static configuration, once committed on the device, is used during successive installation or upgrade of AI-Scripts. This eliminates the need for pushing and committing AI-Scripts configuration for each AI-Scripts installation or upgrade.
The Static AI-Scripts comprises the following Junos OS commands:
set groups juniper-ais system scripts op file ais_change_perm.slax set groups juniper-ais system scripts op file ais_core_perm.slax set groups juniper-ais system scripts op file on-demand.slax set groups juniper-ais system scripts op file remove-jais.slax set groups juniper-ais system scripts op file ais_arc.slax set groups juniper-ais system scripts op file ais-attach-file.slax set groups juniper-ais system scripts op file stop-ais-now.slax set groups juniper-ais system scripts op file ais_signalSN.slax set groups juniper-ais system scripts op file ais_core_chm.slax set groups juniper-ais system scripts op file ais_all_chm.slax set groups juniper-ais system scripts op file att_signalSN.slax set groups juniper-ais system scripts op file ais-rsi-chk.slax set groups juniper-ais system scripts op file ais-param-set.slax set groups juniper-ais system scripts op file ais-sleep.slax set groups juniper-ais system scripts op file ais-error.slax set groups juniper-ais system scripts op file ais-health-report.slax set groups juniper-ais system scripts op file ais_xfer_jmb.slax set groups juniper-ais system scripts op file ais_policy_create.slax set groups juniper-ais event-options event-script max-datasize 128m set groups juniper-ais event-options event-script file intelligence-event-main.slax set groups juniper-ais event-options event-script file bios.slax set groups juniper-ais event-options event-script file phdc.slax set groups juniper-ais event-options event-script file Master-event-struct.slax set groups juniper-ais event-options event-script file Master-event-unstruct.slax set groups juniper-ais event-options event-script file Master-policy-events.slax set groups juniper-ais event-options event-script file User-event-struct.slax set groups juniper-ais event-options event-script file User-event-unstruct.slax set groups juniper-ais event-options event-script file User-policy-events.slax set groups juniper-ais event-options event-script file jais-scripts-add.slax set groups juniper-ais event-options destinations juniper-aim archive-sites /var/tmp set apply-groups juniper-ais
Service Now provides the following options to install and uninstall AI-Scripts on the managed devices without modifying the device configuration:
The Alter device configuration to enable AI-Script events on device check box on the Install Event Profiles page (as shown in Figure 2) provides the option to install AI-Scripts on a managed device without modifying the device configuration.
This check box is selected by default. To avoid the device configuration from being modified when you install or upgrade and subsequently commit AI-Scripts, clear this check box.
Figure 2: Install Event Profile Page Note If you clear the Alter device configuration to enable AI-Script events on device check box and the static AI-Scripts configuration is not present on the device, Service Now only installs the AI-Scripts bundle on the device.
For AI-Scripts to be configured and JMBs generated on the device, you must manually push the static AI-Scripts configuration and execute the
/var/db/scripts/op/ais-param-set.slax
file on the device.When you install or upgrade AI scripts releases earlier than Release 5.0 on a device by using Service Now Release 15.1 or later, you must manually push the static AI-Scripts configuration to the device for each installation and upgrade irrespective of whether the Alter device configuration to enable AI-Script events on device check box is selected or cleared.
For information about installing AI-Scripts on a device, see Installing an Event Profile on a Device by Using Service Now.
The Partial Un-Install of scripts(Supported in AI-Script 5.0 and above versions) check box on the Uninstall Event Profiles dialog box, as shown in Figure 3, when selected, provides an option to uninstall AI-Scripts from a device without modifying the device configuration.
This option is cleared by default. When you uninstall AI-Scripts with this option selected, subsequent installation or upgrade of AI-Scripts does not modify the device configuration.
Figure 3: Uninstall Event Profile Dialog Box Note If you uninstall AI-Scripts Release 5.0 or later with the Partial Un-Install of scripts(Supported in AI-Script 5.0 and above versions) option cleared, you must delete the AI-Scripts configuration on the device by executing the
/var/db/scripts/remove-jais.slax
script on the device to avoid errors while committing the AI-Scripts configuration during the next installation or upgrade.For information about uninstalling AI-Scripts from a device, see Uninstalling an Event Profile from a Device.
Associated Actions
You can perform the following actions related to event profiles:
Add an event profile to Service Now; see Adding an Event Profile to Junos Space Service Now for details.
Push an event profile to devices; see Installing an Event Profile on a Device by Using Service Now for details.
View devices associated with an event profile; see Displaying Devices Associated with an Event Profile for details.
Set an event profile as default; see Setting an Event Profile as the Default Event Profile in Junos Space Service Now for details.
Import an event profile in XML format; see Importing Event Profiles into Junos Space Service Now in XML Format for details.
Export events data to Excel format; see Exporting Events Data in Excel Format for details.
Export an event profile in XML format; see Exporting Event Profiles from Junos Space Service Now in XML Format.
Clone an event profile; see Cloning an Event Profile for details.
Delete event profiles; see Deleting Event Profiles from Junos Space Service Now for details.
Add script bundles; see Adding a Script Bundle to Junos Space Service Now for details .