Store and Enable Junos Automation Scripts
To use a Junos automation script, you must copy the script to the Junos device and enable it in the configuration. By default, scripts are stored in and executed from the /var/db/scripts directory on the device's hard disk under the subdirectory appropriate to the script type. You can also store scripts in flash memory in the /config/scripts directory under the subdirectory appropriate to the script type.
To store and enable a script:
Newly enabled commit scripts execute during the current commit operation. After the commit operation completes, enabled event scripts are loaded into memory and can be executed by an event policy that is triggered in response to system log events. For more information, see Execute Event Scripts in an Event Policy. After the commit operation completes, op scripts can be executed on the device. For more information, see Execute an Op Script on the Local Device.