Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Troubleshooting AI-Scripts Installation Issues

 

Problem:

Description: The installation of AI-Scripts on a device running Junos OS fails.

Symptoms:

  • The AI-Scripts bundle is not being installed properly on the device.

  • During the installation of the event profile, the SLAX files are not copied to the device.

  • AI-Scripts installed on a device do not generate a JMB for a particular event.

Solution

Resolution

Verifying the AI-Scripts Installation

To verify that an AI-Scripts bundle is installed on a device running Junos OS:

  1. Log in to the device.
  2. Run the show version command.

    If the AI-Scripts bundle is installed on the device, the show version command lists the version of the AI-Scripts bundle installed on the device, as shown in the following sample:

    The presence of JUNOS AIS Script Suite in the output of the show version command indicates that AI-Scripts Release 4.1R1.1 is installed on the device.

  3. If you do not find JUNOS AIS Script Suite in the output of the show version command, see:

Resolving Issues with Copying Event Scripts to Devices

During the installation of an event profile on a device, the SLAX files are not copied to the devices and the Jobs status page displays an error as shown in Figure 1.

Figure 1: Service Now Event Profile Install/Uninstall Status
Service Now Event Profile
Install/Uninstall Status

To copy event scripts to devices:

  1. Log in to the device running Junos OS.
  2. Execute the following command to check permissions for /var/db/scripts/commit, /var/db/scripts/event, and /var/db/scripts/op directories:
    # run file list /var/db/scripts/

    The permissions for the /var/db/scripts/commit, /var/db/scripts/event, and /var/db/scripts/op directories should be drwxrws---.

  3. If the permissions are not as shown in the preceding example, enter configuration mode and navigate to the /var/db/scripts directory.
  4. As root at the shell level, execute chmod 2770 to set the directory permissions as drwxrws--- for the /var/db/scripts/commit, /var/db/scripts/event, and /var/db/scripts/op directories.
  5. Retry installing the event scripts.

Verifying the Event Scripts Installed on the Device

To verify the event scripts installed on the device:

  1. Log in to the device.
  2. Execute the show configuration groups command as follows:
    show configuration groups juniper-ais | display commit-scripts

    The following output is displayed:

    If event scripts are installed on the device, and the AI-Scripts version is Release 5.0R1 or earlier, the show configuration groups juniper-ais command lists the event scripts (.slax files) from the AI-Scripts bundle that are installed on the device under event-options. If event scripts are not listed under event-options in the output, then either the event scripts are not installed on the device or if they are installed, the juniper-ais group is not applied to the device configuration.

    To verify that the juniper-ais group is applied to the device configuration, run the show configuration apply-groups command.

    show configuration apply-groups

    The following output is displayed for the command:

    If the juniper-ais group is not listed in the output, issue the following command to apply the juniper-ais group:

    set apply-groups juniper-ais

    Verify that the juniper-ais group is applied to the device configuration by executing the show configuration groups juniper-ais command to list the event scripts installed on the device.