output-filename (Event Policy)
Syntax
output-filename filename;
Hierarchy Level
[edit event-options policy policy-name then event-script filename], [edit event-options policy policy-name then execute-commands]
Description
Define a descriptive string that will be included in the filename of the output file in which to write command or script output. For op scripts, this statement is optional.
The name of the output file also includes the hostname and timestamp to ensure that the each filename is unique. If an event policy is triggered multiple times in a 1-second period, an index number is appended to the filename. The index number range is 001 through 999.
Prior to Junos OS Release 14.1R3, the filename has the following naming convention:
hostname_filename_YYYYMMDD_HHMMSS_index-number
Starting in Junos OS Release 14.1R3, the filename string is placed after the timestamp.
hostname_YYYYMMDD_HHMMSS_filename_index-number
Options
filename | String included in the filename of the output file. |
Required Privilege Level
maintenance—To view or add this statement in the configuration.
Release Information
Statement introduced in Junos OS Release 7.5.
Support at the [edit event-options policy policy-name then event-script filename]
hierarchy
level introduced in Junos OS Release 7.6.