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:
- Implementing Event Scripts
- Enabling an Event Script
- Configuring Checksum Hashes for an Event Script
- Executing an Event Script
- Storing Event Scripts in Flash Memory
- Specifying a Master Source for an Event Script
- Updating an Event Script from the Master Source
- Updating an Event Script from an Alternate Location
- Tracing Event Script Processing
Hide Navigation Pane
Show Navigation Pane
Download
SHA1