Replacing an Event Script
You can update or replace an existing event script without changing the device’s configuration or disrupting operations. Follow these steps:
- Edit the existing event script or write a new one.
- Copy the script to the
/var/db/scripts/eventdirectory on the hard disk or the
/config/scripts/eventdirectory on the flash drive; for information about setting the storage location for scripts, see Storing Scripts in Flash Memory. Only users who belong to the Junos super-user login class can alter files in these directories.
Unsigned Python scripts must be owned by either root or a user in the Junos OS super-user login class, and only the file owner can have write permission for the file.
If the device has dual Routing Engines, remember to copy the script to the
/config/scripts/eventdirectory on both Routing Engines. The commit synchronize command does not automatically copy scripts between Routing Engines.
- Issue the request system scripts event-scripts reload operational mode command.
user@host> request system scripts event-scripts reload
All event scripts are reloaded into the eventd process’ memory.