Navigation
Supported Platforms
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 or write the new event script.
- Copy the script to the
/var/db/scripts/event
directory on the hard drive or the/config/scripts/event
directory 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.Note: If the device has dual Routing Engines, remember to copy the script to the
/var/db/scripts/event
or/config/scripts/event
directory 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.