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. , as described in the following steps. 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.
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 Executing Event Scripts in an Event Policy. After the commit operation completes, op scripts can be executed on the device. For more information, see Executing an Op Script on the Local Device.
super-user
login class,
and only the file owner can have write permission for the file.