[Prev] [Next]


Manually Configuring and Installing AI Scripts on Devices

Within AIM, devices that are configured for AIS manually are automatically be added to the device group that is associated with the AIM archive location to which the JMB was sent. When the AIM detects a JMB for a device that is not managed by JUNOScope Script Management, it will note it.

To manually configure and install AI Scripts on Devices, follow these steps:

  1. See Downloading AI-Script Install Packages and Release Notes.
  2. Configure the device configuration as follows to activate AI Scripts:
    1. Enter the device CLI configuration mode. type the configure command or the edit command from the CLI operation mode. The CLI prompt changes from user@host> to user@host# and a banner appears to indicate the hierarchy level.
    2. Configure an AIS destination under group juniper-junoscope:
       user@host# set groups juniper-ais event-options destination juniper-junoscope {...}
       
      
      This configuration determines the AIS archive location where JMBs are deposited for a device.
    3. Configure the commit script:
       user@host# set groups juniper-ais system scripts commit file 
      jais-activate-scripts.slax optional
       
      
      The AI-Script installer creates this script to activate AI-Scripts on the device.
    4. Configure the allow-transients option to allow transient changes:
       user@host# set groups juniper-ais system scripts commit allow-transients 
       
      
      Transient changes are configuration changes made by commit scripts that do NOT appear in the config (except with a special command).
    5. Apply the juniper-ais group:
       user@host# set apply-groups juniper-ais 
       
      
      This configuration applies the config-group juniper-ais.
    6. (Optional) Configure the load-scripts-from-flash option:
       user@host# set groups juniper-ais system scripts load-scripts-from-flash
      

       


      If you configure the load-scripts-from-flash option, the system reads AI-Scripts from /config/scripts/ directory otherwise the system reads AI-Scripts from the /var/db/scripts/ directory. The /var/run/scripts directory will always point to the right scripts directory.

       

  3. Verify that the syntax of a configuration is correct by using the configuration mode commit check command:
     [edit] 
     user@host# commit check 
     configuration check succeeds 
     
    
  4. Commit the configuration. To save software configuration changes to the configuration database and activate the configuration on the router, use the commit configuration mode command. You can issue the commit command from any hierarchy level.
     [edit] 
     user@host# commit 
     commit complete 
     
    
  5. View the configuration:
 groups {
     juniper-ais {
         system {
             scripts {
                 commit {
                     allow-transients;
                     file jais-activate-scripts.slax {
                         optional;
                     }
                 }
                 load-scripts-from-flash;
             }
         }
         event-options {
             destinations {
                 juniper-junoscope {
                     archive-sites {
                         "ftp://anonymous@10.7.0.124/aimdemo";
                     }
                 . . .
  1. If you have not moved the AI-Script to the device, do so now. See Downloading AI-Script Install Packages and Release Notes.
  2. Install the AI-Script package by using the following . (For more information about working with AI-Script packages, see the Working With AI-Scripts.
     user@host> request system scripts add <package-name> 
     
    
  3. Verify that the AI-Scripts are activated:
     user@host> show groups juniper-ais | display commit-scripts
     
    
 user@host> show configuration groups juniper-ais | display commit-scripts    
 system {
     scripts {
         commit {
             allow-transients;
             file jais-activate-scripts.slax {
                 optional;
             }
         }
     }
 }
 event-options {
     event-script {

         file problem-event-pfecrash.slax;

file problem-event-dcrash.slax;

file intelligence-event-main.slax;

file SPD_EVLIB_CREATE_FAILURE.slax;

file SPD_DAEMONIZE_FAILED.slax;

file RPD_TASK_FORK.slax;

          . . .}
     destinations {
         juniper-junoscope {
             archive-sites {
                 "ftp://anonymous@10.7.0.124/aidemo";
             }
         }
     }
 }



[Prev] [Next]