Automation
Automation

FAQ: What are Commit scripts, Op scripts, and Event scripts?

by Juniper Employee on ‎05-03-2016 08:40 AM - edited on ‎08-23-2017 12:26 PM by Administrator Administrator (2,685 Views)

Question

How do commit scripts, Op scripts and event scripts differ from one another?

Answer

 

Commit Scripts: Commit scripts are run as part of the standard Junos commit process and allow a user to modify the configuration, display warnings, cancel the commit and so on. For more information, see Commit Script Overview.

 

Op Scripts: Op scripts are essentially custom CLI commands.  They execute Junos OS operational commands and inspect the resulting output. After inspection, op scripts can automatically correct errors within the device running Junos OS based on this output. Op scripts are invoked from the CLI by using the op  command. For more information, see How Op Scripts Work

 

Event Scripts: Event scripts are run automatically in response to a Junos event. Their uses range from gathering data for troubleshooting a problem to changing the configuration in response to various events. For more information, see Event Scripts Overview.

 

You can use the XSLT or SLAX scripting languages for all the above script types.

'
Comments
Feb 1, 2019
p.versha

how can we use the python in the place of SLAX scripting languages for all the above script types.?