Juniper J-Series Administration Manual page 113

Juniper networks router administration guide
Hide thumbs Also See for J-Series:
Table of Contents

Advertisement

Table 43: Enabling Commit Scripts
Task
Navigate to the Commit level in the
configuration hierarchy.
Enable the commit script file—for
example,
.
commit-script.xsl
Disabling Commit Scripts
If you do not want a commit script to run, you can disable it by deleting or
deactivating it in the configuration. Deleting a commit script permanently removes
it from the configuration. To run the script later, you must reenable the script as
described in "Enabling Commit Scripts" on page 90. Deactivating a commit script
disables the script until you activate it later.
To delete a commit script:
1.
2.
To deactivate a commit script:
1.
2.
J-Web Configuration Editor
1.
In the J-Web interface, select
Configuration>View and Edit>Edit
Configuration.
2.
Next to System, click Configure or
Edit.
3.
Next to Scripts, click Configure or
Edit.
4.
Next to Commit, click Configure or
Edit.
1.
Next to File, click Add new entry.
2.
In the File name box, type
commit-script.xsl
.
3.
Click OK.
From configuration mode in the CLI, enter the following command:
user@host# delete system scripts commit filename.xsl
Commit the configuration:
user@host# commit
commit complete
From configuration mode in the CLI, enter the following command:
user@host# deactivate system scripts commit filename.xsl
Commit the configuration:
user@host# commit
Defining and Enforcing Configuration Rules with Commit Scripts
Chapter 6: Automating Network Operations and Troubleshooting
CLI Configuration Editor
From the
[edit]
edit system scripts commit
Set the script file name:
set file commit-script.xsl
hierarchy level, enter
91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents