Automation
Automation

Scripting How-To: Configure and execute an event script

by Cordelia on ‎08-10-2015 08:52 PM - edited on ‎09-11-2017 05:10 PM by Administrator Administrator (860 Views)

The script needs to be configured in the following configuration hierarchy:

 

1 [edit event-options event-script file <script-name>]

 

An event script is executed on the occurrence of a system event matching the configuration selected. The configuration to associate an event script with a system event is as follows:

 

1 [edit]
2 user@host# show event-options
3 policy <policy-name> {
4     events <system-event>;
5     then  {
6         event-script <script-name>;
7     }
8 }
9  
10 [edit]
11 user@host#