Updating an Event Script from the Master Source

To update a single event script from its master source, issue the set refresh command at the [edit event-options event-script file filename] hierarchy level. The master source must already be configured as described in Specifying a Master Source for an Event Script.

[edit event-options event-script file filename]user@host# set refresh

To update all enabled event scripts from their master sources, issue the set refresh command at the [edit event-options event-script] hierarchy level:

[edit event-options event-script]user@host# set refresh

When you issue the set refresh command, the switch, router, or security device immediately attempts to connect to the machine that houses the master source for the script files and retrieve a copy of each file. The master copy overwrites the script stored in the local event scripts directory. If a master source is not defined for a script, that script is not updated and a warning is issued.

The update operation occurs as soon as you issue the set refresh command. The refresh statement is not added to the configuration. In other words, for this statement the set command behaves like an operational mode command, instead of adding a statement to the configuration.

If a device has dual Routing Engines and you want the script to be updated on both Routing Engines, you must include the refresh statement in the configuration of both Routing Engines. The commit synchronize command does not cause the refresh statement to take effect on scripts in both Routing Engine directories.