Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

request system scripts refresh-from

 

Syntax

Release Information

Command introduced in Junos OS Release 10.1.

Option sync introduced in Junos OS Release 13.2.

Options extension-service and routing-instance introduced in Junos OS Release 18.1R1.

Description

Refresh a script from a remote source at the specified URL. The system uses the script type to determine the directory on the device where the script resides. If you include the sync option, the system refreshes the script on the requesting Routing Engine and then synchronizes the script on the other Routing Engine. If the load-scripts-from-flash statement is present in the configuration for that Routing Engine, the system refreshes the script in flash memory. Otherwise, the system refreshes the script on the hard disk.

The Junos XML management protocol equivalent for this operational mode command is:

Options

(commit | event | extension-service | op | snmp)Specify that the script resides in the commit, event, jet, op, or snmp script subdirectory under the scripts directory.
file filenameFilename of the script to refresh.
routing-instance routing-instance-name(Optional) Name of the routing instance through which you want to refresh the script.
sync(Optional) Synchronize the refreshed script from the requesting Routing Engine to the other Routing Engine.
url urlURL of the file that will replace the script provided as a Hypertext Transfer Protocol (HTTP) URL, FTP URL, or secure copy (scp)-style remote file specification.

Required Privilege Level

maintenance

List of Sample Output

request system scripts refresh-from

request system scripts refresh-from sync

Sample Output

request system scripts refresh-from

The following command refreshes the op script config.slax from the remote source specified by the URL.

user@host> request system scripts refresh-from op file config.slax url http://host1.juniper.net/config.slax

The following command refreshes the op script config1.slax from the remote source specified by the URL. However, in this case, the script does not exist at the remote site, and the device generates an error message.

user@host> request system scripts refresh-from op file config1.slax url http://host1.juniper.net/config1.slax

Sample Output

request system scripts refresh-from sync

The following command refreshes the op script config.slax on the requesting Routing Engine from the remote source specified by the URL. The system then synchronizes the updated script to the other Routing Engine.

user@host> request system scripts refresh-from op file config.slax url http://host1.juniper.net/config.slax sync