Related Documentation
- ACX Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- EX Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- M Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- MX Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- PTX Series
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- QFX Series
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- SRX Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- T Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
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.
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:
<request-script-refresh-from> <type>(commit | op | event)</type> <file>filename</file> <url>url</url> <sync/> </request-script-refresh-from>
Options
(commit | event | op) | — | Specify that the script resides in the commit, event, or op script subdirectory under the scripts directory. |
file filename | — | Filename of the script to refresh. |
sync | — | (Optional) Synchronize the refreshed script from the requesting Routing Engine to the other Routing Engine. |
url url | — | URL 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
Related Documentation
- ACX Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- EX Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- M Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- MX Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- PTX Series
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- QFX Series
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
- SRX Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- T Series
- Refreshing a Script from an Alternate Location
- Example: Refreshing a Script from an Alternate Source
- Example: Configuring and Refreshing from the Master Source for a Script
- Synchronizing Scripts Between Routing Engines
- request system scripts synchronize
List of Sample Output
request system scripts refresh-fromrequest 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.slaxconfig.slax 100% 9 0.0KB/s 00:00
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.slaxrefreshing 'config1.slax' from 'http://host1.juniper.net/config1.slax' fetch-secure: http://host1.juniper.net/config1.slax: Not Found error: file-fetch failed error: communication error: rpc failed (file-fetch) error: error retrieving file 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 syncconfig.slax 100% 9 0.0KB/s 00:00