To use commit scripts, follow these steps:
This manual provides procedural steps and examples for writing scripts that generate error, warning, or system log messages and configuration changes. For detailed examples, see Commit Script Examples.
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/commit or /config/scripts/commit directories on each Routing Engine.
![]() |
Note: The commit synchronize command does not automatically copy the scripts from one Routing Engine directory into the other Routing Engine directory. |
- [edit system scripts commit]
-
file filename;
The JUNOS software provides several tools to manage and monitor commit script operation, including source control, traceoptions, and monitoring commands. For more information, see Configuring and Troubleshooting Commit Scripts.