Automation 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 automation scripts. Thus much of this discussion will be geared towards automation scripts. However, most of the CLI statements discussed have a JUNOScript counterpart, and thus the concepts discussed in this section are helpful for both op scripts and event scripts.
To configure automation scripts, include the following statements at the [edit] hierarchy level:
- system {
-
-
scripts {
-
-
op {
-
-
file filename {
-
-
arguments {
-
-
argument-name {
-
description descriptive-text;
- }
- }
-
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;
- }
- }
- }
- }
To configure event scripts, include the following statements at the [edit] hierarchy level:
- event-options {
-
-
event-script {
- file filename;
-
-
traceoptions {
- file filename <files number> <size size> <world-readable
| no-world-readable>;
- flag flag;
- }
- }
- }
This chapter discusses the following topics: