Juniper J-Series Administration Manual page 115

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

Advertisement

Enabling Operation Scripts
To enable operation scripts:
1.
2.
3.
4.
5.
Table 44: Enabling Operation Scripts
Task
Navigate to the Op level in the
configuration hierarchy.
Enable the operation script file—for
example,
.
op-script.xsl
Executing Operation Scripts
You can execute the enabled operation scripts from the CLI or from within an event
policy. For information about event policy, see "Running Self-Diagnostics with Event
Policies" on page 94.
This section describes how you can execute operation scripts from the command
line.
To execute an operation script from the CLI:
1.
2.
Write an operation script.
For information about writing operation scripts, see the JUNOS Configuration and
Diagnostic Automation Guide.
Copy the script to the
/var/db/scripts/op
Only users with superuser privileges can access and edit files in the
directory.
/var/db/scripts/op
Navigate to the top of the configuration hierarchy in either the J-Web or CLI
configuration editor.
Perform the configuration tasks described in Table 44 on page 93.
If you are finished configuring the network, commit the configuration.
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 Op, click Configure or Edit.
1.
Next to File, click Add new entry.
2.
In the Name box, type
3.
Click OK.
Enter configuration mode in the CLI.
Execute the script with the following command:
Automating Network Management and Troubleshooting with Operation Scripts
Chapter 6: Automating Network Operations and Troubleshooting
directory.
CLI Configuration Editor
From the
[edit]
edit system scripts op
Set the script file name:
.
op-script.xsl
set file op-script.xsl
hierarchy level, enter
93

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents