Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     

    Related Documentation

     

    op

    Syntax

    op filename<detail><argument-name argument-value><key (md5 | sha-256 | sha1) key-value<url url>

    Release Information

    Command introduced in Junos OS Release 7.6.

    Command introduced in Junos OS Release 9.0 for EX Series switches.

    key option introduced in Junos OS Release 10.0.

    url option introduced in Junos OS Release 10.0.

    Description

    Execute an op script stored in one of the following locations:

    • On the router or switch in the /var/db/scripts/op directory
    • At a remote URL

    Options

    detail
    —

    (Optional) Display detailed output.

    argument-name argument-value
    —

    (Optional) Specify one or more arguments to the script. For each argument you include on the command line, you must specify a corresponding value for the argument.

    key (md5 | sha-256 | sha1) key-value
    —

    (Optional) With the <url> option, specify a checksum hash to verify the integrity of the script. You can include the <key> option if the checksum statement is included at the [edit system scripts op file filename] hierarchy level.

    url url
    —

    (Optional) Specify a URL where the script is located.

    Additional Information

    For more information about Junos op scripts, see the Junos OS Configuration and Operations Automation Guide.

    Required Privilege Level

    maintenance

     

    Related Documentation

     

    List of Sample Output

    op
    op url

    Output Fields

    When you enter this command, you are provided feedback on the status of your request.

    Sample Output

    op

    user@host> op script1 interface ge-0/2/0.0 protocol inet

    op url

    user@host> op url https://www.juniper.net/fa/2009-04-01.01.slax key md5 8de24d09e1d90b2581bb937d2a5ad590 interface ge-0/2/0.0 protocol inet

    Published: 2013-03-14