This article provides a summary of how to upgrade Advanced Insight Scripts (AI-Scripts) on SRX Chassis Clusters to AI-Scripts Release 5.0R2 or later, from 4.x versions. Troubleshooting steps are also provided.
Junos Space Service Now 15.1R1 and later supports the installation and upgrade to AI-Scripts Release 5.0 Event Profiles on most Junos OS devices.
However, for SRX Chassis Clusters discovered on the master-only VIP, loopback, or redundant interface, Service Now will raise a warning if a user attempts to upgrade an SRX Chassis Cluster that has AI-Scripts version 4.x or earlier, on the secondary node, and will not proceed with the upgrade attempt. To avoid this problem, follow the Upgrade Procedure in the Solution below. If you did not follow the Upgrade Procedure and are encountering the upgrade failure, follow the Troubleshooting Procedure in the Solution below.
The cause is that with the new "No-Commit" feature provided by AI-Scripts Release 5.0, installation on the primary SRX cluster node must write files onto the secondary node. If an older version of AI-Scripts has been installed on the secondary node, a file overwrite attempt will cause the installation to become corrupted. Both Service Now and AI-Scripts check for this condition and disallow the AI-Scripts upgrade accordingly. For this case, AI-Scripts must be uninstalled from both SRX cluster nodes. This can be done in Service Now if it was used to initially install the older AI-Scripts and has not been deleted and rediscovered in the Junos Space Network Management Platform. However, using Service Now to delete AI-Scripts off the primary node will not automatically delete it from the secondary node. The customer must either toggle cluster node mastership and uninstall from the "other node," or might need to uninstall AI-Scripts manually from the device CLI, as discussed below.
Service Now will not raise a warning for an SRX cluster node managed independently on its respective fxp0 interface, but the upgrade and installation could fail during commit due to the configuration database being locked for editing. For this case, retrying the job or reinstalling the AI-Scripts 5.0-based Event Profile on only the failed SRX cluster node should resolve the issue.
To upgrade to AI-Scripts Release 5.0 on your SRX Chassis Cluster, follow the Upgrade Procedure below. If you upgraded AI-Scripts on your SRX Chassis Cluster and encountered an installation error, then follow the Troubleshooting Procedure below.
AI-Scripts uninstall procedure:
request system scripts delete
> op remove-jais remove-jais-configuration true
> show version
AI-Scripts [version]
JUNOS AIS Script Suite [version]
> show configuration | display set | match juniper-ais
set groups juniper-ais system scripts commit allow-transients; set groups juniper-ais system scripts commit file jais-SN-activate-scripts.slax optional set groups juniper-ais event-options destinations juniper-aim archive-sites /var/tmp/ set apply-groups juniper-ais
> request system scripts delete
> edit # rollback # delete groups juniper-ais # delete apply-groups juniper-ais # show | compare # commit confirmed # commit and-quit