Configuring and Troubleshooting Commit Scripts

At commit time, the Junos OS management process (mgd) looks in the /config/scripts/commit or the /var/db/scripts/commit directory, depending on whether the scripts are stored on the flash drive or the hard drive, for one or more commit scripts. Each commit script executes against the candidate configuration database to ensure the configuration conforms to the rules dictated by the scripts.

This chapter discusses the following topics: