Blogs

Scripting How-To: Configure and execute an event script

By Erdem posted 08-07-2015 06:17

  

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#


#eventscript
#ScriptingHow-To
#Slax
#How-To