Updating an Event Script from an Alternate Location
In addition to updating an event script from the master source defined by the source statement at the [edit event-options event-script file filename] hierarchy level, you also can update a script from an alternate location. This is convenient when, for example, the master source cannot be accessed due to network or other problems. To update a single event script from the alternate source, issue the set refresh-from command at the [edit event-options event-script file filename] hierarchy level, specifying the location of the remote file:
To update all enabled event scripts from the alternate source, issue the set refresh-from command at the [edit event-options event-script] hierarchy level, specifying the location of the remote directory that houses the scripts:
At both hierarchy levels:
url—URL of the remote event script or directory. Specify the source as a Hypertext Transfer Protocol (HTTP) URL, FTP URL, or secure copy (scp)-style remote file specification.
When you issue the set refresh-from command, the router attempts to connect to the device 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 no master source for a script is defined, it is not updated and a warning is issued.
The update operation occurs as soon as you issue the set refresh-from command. The refresh-from 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 platform has dual Routing Engines and you want the script to be updated on both Routing Engines, you must issue the set refresh-from command on each Routing Engine separately. The commit synchronize command does not cause the refresh-from statement to update scripts on both Routing Engines.