file (Event Scripts)
Syntax
file filename { cert-file path; checksum hash-algorithm hash-value; dampen { dampen-options { cpu-factor cpu-factor; line-interval line-interval; time-interval time-interval; } } python-script-user username; refresh; refresh-from url; remote-execution { remote-hostname { passphrase user-password; username user-login; } } routing-instance routing-instance-name; source url; start { start-options { mem-factor percentage; } } }
Hierarchy Level
[edit event-options event-script]
Description
Enable a Junos OS event script that is located in the /var/db/scripts/event directory on the hard disk or the /config/scripts/event directory on the flash drive. After enabling an event script, an event policy can execute the event script when triggered.
Options
filename | Name of a Python, Extensible Stylesheet Language Transformations (XSLT), or Stylesheet Language Alternative syntaX (SLAX) file containing an event script. |
The remaining statements are explained separately. See CLI Explorer.
Required Privilege Level
maintenance—To view or add this statement in the configuration.
Release Information
Statement introduced in Junos OS Release 7.6.