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

request system scripts synchronize

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
request system scripts synchronize (all | commit | event | jet | lib | op | snmp)
<file filename>
<newer-than YYYY-MM-DD.HH:MM:SS>

Description

This command is for devices with multiple Routing Engines only. Synchronize scripts from the requesting Routing Engine to the other Routing Engine.

Specify all to synchronize all scripts present on the requesting Routing Engine to the responding Routing Engine. Specify commit, event, jet, lib, op, or snmp to synchronize all scripts of the given type to the other Routing Engine. Include the file option or the newer-than option to narrow the scope to only synchronize scripts with the specified filename or date criteria.

If the load-scripts-from-flash statement is configured for the requesting Routing Engine, the device synchronizes the scripts that are in flash memory. Otherwise, the device synchronizes the scripts that are on the hard disk. If the load-scripts-from-flash statement is configured for the responding Routing Engine, the scripts are synchronized to flash memory. Otherwise, the scripts are synchronized to the hard disk. The device synchronizes a script regardless of whether it is enabled in the configuration.

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

content_copy zoom_out_map
<request-scripts-synchronize>
   <all/> | <commit/> | <event/> | <jet/> | <lib/> | <op/> | <snmp/>
   <file>filename</file>
   <newer-than>YYYY-MM-DD.HH:MM:SS</newer-than>
</request-scripts-synchronize>

Options

(all | commit | event | jet | lib | op | snmp)

Synchronize all scripts or all scripts of a given type that are present on the requesting Routing Engine to the responding Routing Engine.

file filename

(Optional) Synchronize an individual script with the specified filename from the requesting Routing Engine to the responding Routing Engine. This option can only be used with a specific script type.

newer-than YYYY-MM-DD.HH:MM:SS

(Optional) Synchronize scripts that are more current than the specified date and time from the requesting Routing Engine to the responding Routing Engine.

Required Privilege Level

maintenance

Sample Output

request system scripts synchronize all

The following command synchronizes all scripts from the requesting Routing Engine to the responding Routing Engine.

content_copy zoom_out_map
user@host> request system scripts synchronize all
user@host>

request system scripts synchronize commit file

The following command synchronizes the commit script vpn-commit.slax from the requesting Routing Engine to the responding Routing Engine. In this case, the script does not exist on the requesting Routing Engine, and the device issues an error message.

content_copy zoom_out_map
user@host> request system scripts synchronize commit file vpn-commit.slax
error: Invalid directory: No such file or directory
warning: No script will be pushed to other RE

request system scripts synchronize event file

The following command synchronizes the event script ospf-neighbor.slax from the requesting Routing Engine to the responding Routing Engine. In this case, the responding Routing Engine does not have the resources to perform the operation, and the device issues an error message.

content_copy zoom_out_map
user@host> request system scripts synchronize event file ospf-neighbor.slax
error: Unable to copy scripts to re: re1

request system scripts synchronize op newer-than

The following command synchronizes any op scripts that have been modified after the specified date. In this case, no op scripts meet this requirement.

content_copy zoom_out_map
user@host> request system scripts synchronize op newer-than 2012-05-30
warning: No script will be pushed to other RE

Release Information

Command introduced in Junos OS Release 13.2.

footer-navigation