To install op scripts to a router, follow these steps:
For information on writing op scripts, see Introduction to Writing Automation Scripts. For examples of op scripts, 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/op or config/scripts/op directories 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 system scripts op]
-
file filename;
Once the configuration is committed, the op script will be available on the router. It can be executed using the op command.