To install event scripts on the router, follow these steps:
For more information on writing event scripts, see Introduction to Writing Automation Scripts. For event script examples, see Automation Script Examples.
![]() |
Note: If a platform has dual Routing Engines and you want the script to take effect on both Routing Engines, you must copy the script to the /var/db/scripts/event directory on each Routing Engine. The commit synchronize command does not automatically copy the scripts from one Routing Engine directory into the other Routing Engine directory. |
- [edit event-options event-script]
-
file filename;
The event script is now loaded into memory and ready for execution. The event script is executed automatically in response to system log events. For more information, see Executing Event Scripts in an Event Policy
The JUNOS software provides several tools to manage and monitor event script operations, including source control and tracing operations. For more information, see Configuring Automation Scripts.