Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

synchronize (Scripts)

Syntax

Hierarchy Level

Description

Synchronize all commit, event, lib, op, and SNMP scripts from the requesting Routing Engine to the responding Routing Engine when executing a commit synchronize operation. The device synchronizes all scripts regardless of whether they are enabled in the configuration or have been updated since the last synchronization.

If the load-scripts-from-flash statement is present in the requesting Routing Engine configuration, 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 present in the final configuration for the responding Routing Engine, the device synchronizes the scripts to flash memory. Otherwise, the device synchronizes the scripts to the hard disk.

When you issue the commit synchronize command, the device:

  1. Performs a commit check on the requesting Routing Engine

  2. Synchronizes the scripts to the other Routing Engine

  3. Synchronizes the configuration to the other Routing Engine

  4. Performs a commit check on the other Routing Engine

  5. Commits the configuration on the other Routing Engine

  6. Commits the configuration on the requesting Routing Engine

If the commit check operation fails for the requesting Routing Engine, the process stops, and the device does not copy the scripts to the responding Routing Engine. If the commit check or commit operation fails for the responding Routing Engine, the device still synchronizes the scripts.

Note:

Configuring the synchronize statement causes the device to synchronize all scripts even if they have not been updated since the last synchronization. If the device has a large number of scripts that are infrequently updated, it might be more suitable to synchronize scripts either manually using the request system scripts synchronize operational mode command or on a per-commit basis using the commit synchronize scripts command.

Required Privilege Level

maintenance—To view or add this statement in the configuration.

Release Information

Statement introduced in Junos OS Release 13.2.