Automation
Automation

Scripting How-To: Configure and execute an event script

by Cordelia on ‎08-07-2015 06:17 AM - edited on ‎09-19-2017 07:49 AM by Administrator Administrator (1,127 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#