Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


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:

  1. Edit the existing event script or write a new one.
  2. Copy the script to the /var/db/scripts/event directory on the hard disk 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

    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 /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.

  3. 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.

Related Documentation