[Contents] [Prev] [Next] [Index] [Report an Error]

How Op Scripts Work

Op scripts execute router operational commands and inspect the resulting output. After inspection, op scripts can automatically correct errors within the router based on this output.

You add op scripts to router operations by listing the filenames of one or more op script files within the [edit system scripts op] hierarchy level. These files must be added to the appropriate op script file directory. For more information on op script file directories, see Storing Automation Scripts. Once added to the router, op scripts are invoked from the command line, using the op filename command.

You can use op scripts to generate changes to the router configuration by including the <load-configuration> tag element. Because the changes are loaded before the standard validation checks are performed, they are validated for correct syntax, just like statements already present in the configuration before the script is applied. If the syntax is correct, the configuration is activated and becomes the active, operational routing platform configuration.

Figure 10 shows a high-level view of the flow of op script input and output.

Figure 10: Op Script Input and Output

Image g017027.gif


[Contents] [Prev] [Next] [Index] [Report an Error]