Blog Viewer

Scripting How-To: Configure and execute an event script

By Erdem posted 08-10-2015 20:52

  

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#

#How-To
#eventscript
#ScriptingHow-To

Permalink