Specifying a Master Source for an Op Script
You can store a master copy of each op script in a central repository. This eases file management because you can make changes to the master op script in one place and then update the copy on each device where the op script is currently enabled.
To define the location of the master source file for an op script, include the source statement at the [edit system scripts op file filename] hierarchy level:
- filename—Name of the op script.
- url—URL of the op script’s master source file. Specify the source as a Hypertext Transfer Protocol (HTTP) URL, FTP URL, or secure copy (scp)-style remote file specification.
The following example specifies an HTTP
URL as the remote source for the iso.xsl file:
Including the source statement in the configuration does not affect the local copy of the op script until you issue the set refresh command as described in Updating an Op Script from the Master Source. At that point, the master copy is retrieved from the specified URL and overwrites the local copy.
Hide Navigation Pane
Show Navigation Pane
Download
SHA1