Configuring and Executing Op Scripts

Operation (op) scripts allow you to automate network troubleshooting and network management. This chapter discusses command-line interface (CLI) configuration statements and operational mode commands for enabling and executing op scripts.

To configure op scripts, include the following statements at the [edit] hierarchy level:

system {scripts {op {file filename {arguments {argument-name {description descriptive-text;}}checksum (md5 | sha-256 | sha1) hash;command filename-alias;description descriptive-text;refresh;refresh-from url;source url;}refresh;refresh-from url;traceoptions {file <filename> <files number> <size size> <world-readable | no-world-readable>;flag flag;no-remote-trace;}}}}

This chapter discusses the following topics: