Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

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

    Upgrading AI-Scripts on a Device

    Best Practice: We recommend that you always install the latest AI-Scripts package on a device running Junos OS. You can upgrade from any version of AI-Scripts to the latest version.

    • To upgrade up to AI-Scripts Release 4.1R10

      1. Install the newer version of the AI-Scripts using the request system add <package name> CLI command.
      2. Verify that the AI-Scripts are activated:

        user@host# show configuration groups juniper-ais | display commit-scripts

        Note: For upgrading AI-Scripts on an SRX Series cluster, see KB 30556.

    • To upgrade to AI-Scripts Release 5.0R1.0 and later:

      Caution: Before upgrading AI-Scripts to a newer release, ensure that you uninstall the currently installed AI-Scripts release from the device (all Routing Engines of a multichassis device). If AI-Scripts is not uninstalled before installing the newer release, the first commit of newer release may take an excessively long time.

      1. Install AI-Scripts Release 5.0R1.0 and later on all Routing Engines of a device by using Service Now.

        Note: For information about installing and configuring AI-Scripts on a device by using Service Now, see the Installing an Event Profile on a Device by Using Service Now topic present in the Service Automation Administration Guide. To install only AI-Scripts on a device without configuring AI-Scripts, on the Install Event Profile page of the Service Now GUI, clear the Alter device configuration to enable AI-Script events on devices check box.

      2. Execute the show version command to verify that AI-Scripts is installed on all Routing Engines.
      3. Verify that the AISBundle_Info.xml file is present at /var/db/scripts/commit. The file contains the definition of the events to be monitored on the device.
      4. Activate AISBundle_Info.xml by using the op ais-param-set event-file /var/db/scripts/commit/AISBundle_info.xml command.

        To activate the default event profile bundled with the AI-Scripts package, execute the op ais-param-set event-file default command on the master Routing Engine.

        The op ais-param-set event-file command pushes the event profile to all the Routing Engines of a device.

      Note: If an AI-Scripts release package is taking a long time to commit, execute the show configuration groups juniper-ais command on the device. The following lines in the output indicate that the configuration of AI-Scripts Release installed previously still exists on the device:

      commit {
           file jais-SN-activate-scripts.slax {
           file jais-activate-scripts.slax {

      Delete the AI-Scripts configuration existing on the device manually and then try reinstalling the new AI-Scripts Release. For information about deleting the AI-Scripts configuration manually, see How do you delete an AI-Script from a device.

    Modified: 2016-08-11