[Contents] [Prev] [Next] [Index] [Report an Error]

Enabling Commit Scripts

To enable commit scripts:

  1. Write a commit script.

    For information about writing commit scripts, see the JUNOS Configuration and Diagnostic Automation Guide.

  2. Copy the script to the /var/db/scripts/commit directory.

    Only users with superuser privileges can access and edit files in the /var/db/scripts/commit directory.

  3. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  4. Perform the configuration tasks described in Table 106.
  5. If you are finished configuring the network, commit the configuration.

Table 106: Enabling Commit Scripts

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Commit level in the configuration hierarchy.

In the configuration editor hierarchy, select System>Scripts>Commit.

From the top of the configuration hierarchy enter

edit system scripts commit

Enable the commit script file—for example, commit-script.xsl.

  1. Next to File, click Add new entry.
  2. In the File name box, type commit-script.xsl.
  3. Click OK.

Set the script file name:

set file commit-script.xsl


[Contents] [Prev] [Next] [Index] [Report an Error]