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

refresh-from (JET)

date_range 31-Jan-25

Syntax

content_copy zoom_out_map
refresh-from url;

Hierarchy Level

content_copy zoom_out_map
[edit system extensions extension-service application file filename]

Description

Overwrite the local copy of all enabled Juniper Extension Toolkit (JET) scripts or a single enabled JET script with the copy located at the specified URL. If the load-scripts-from-flash statement is configured, the device refreshes the scripts on the flash drive instead of the hard disk.

The update operation occurs as soon as you issue the set refresh-from url configuration mode command. Issuing the set refresh-from command does not add the refresh-from statement to the configuration. Thus the command behaves like an operational mode command by executing an operation, instead of adding a statement to the configuration.

Before you refresh a local script from an HTTPS server, you must first configure the cert-file statement for that script in supported releases. Specify the absolute path to the certificate (Root CA or self-signed) that the device will use to validate the server's certificate during the refresh operation.

Note:

This statement is not supported on the QFabric system.

As of Junos OS Release 18.1R1, you can specify which routing instance the update is done through. To specify the routing instance to use for updating op scripts, configure the routing instance in two places in the CLI:

content_copy zoom_out_map
user@host# set system routing-instances routing-instance-name description description 
user@host# set system extensions extension-service application file filename routing-instance routing-instance-name

If you enable the non-default managment instance and use mgmt_junos for routing-instance-name, you can configure scripts to update using the dedicated management instance mgmt_junos.

Options

url

The source specified as a HTTPS URL, HTTP URL, FTP URL, or secure copy (scp)-style remote file specification.

Required Privilege Level

maintenance—To execute this statement in configuration mode.

Release Information

Statement introduced in Junos OS Release 18.1R1.

footer-navigation