Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

file (Op Scripts)

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
file filename {
    allow-commands “regular-expression”;
    arguments {
        argument-name {
            description descriptive-text;
        }
    }
    cert-file path;
    checksum hash-algorithm hash-value;
    command filename-alias;
    dampen {
        dampen-options {
            cpu-factor cpu-factor;
            line-interval line-interval;
            time-interval time-interval;
        }
    }
    description descriptive-text;
    refresh;
    refresh-from url;
    routing-instance routing-instance-name;
    source url;
    start {
        start-options {
            mem-factor percentage;
        }
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit system scripts op]

Description

Enable a Junos OS op script that is located in the /var/db/scripts/op directory on the hard disk or the /config/scripts/op directory on the flash drive. After enabling an op script, you can execute the script from the CLI using the op command.

Options

filename

Name of a Python, Extensible Stylesheet Language Transformations (XSLT), or Stylesheet Language Alternative syntaX (SLAX) file containing an op 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.

footer-navigation