Configuring Event Scripts

Event 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 scripts. Much of this discussion is applicable mainly to op scripts; however, most of the CLI statements discussed have a Junos XML protocol counterpart, and thus the concepts discussed in this section are helpful for event scripts.

To configure event scripts, include the following statements at the [edit event-options] hierarchy level:

[edit event-options]event-script {file filename {checksum (md5 | sha-256 | sha1) hash;refresh;refresh-from url;remote-execution {remote-hostname {passphrase user-password;username user-login;}}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: