[
Contents]
[
Prev]
[
Next]
[
Index]
[
Report an Error]
Operation Script Overview
You can execute operation scripts from the JUNOS CLI or from
within an event policy. For information about event policies, see Running Self-Diagnostics with Event Policies.
Operation scripts allow you to perform various actions, including
the following:
- Automatically diagnose and fix problems in your network
by building and running an operational mode command, receiving the
command output, inspecting the output, and determining the next appropriate
action. This process can be repeated until the source of the problem
is determined and reported to the CLI.
- Monitor the overall status of the device by creating a
general operation script that periodically checks network warning
parameters, such as high CPU usage. The general operation script can
be overridden by user-defined scripts.
- Customize the output of CLI operational mode commands
using printf statements.
- If there is a known problem in JUNOS software with enhanced services, an operation
script can ensure your device is configured to avoid or work around
the problem.
- Change your device's configuration in response to a problem.
The scripting language you use for writing operation scripts
is Extensible Stylesheet Language Transformations (XSLT). XSLT operation
scripts are based on JUNOScript Extensible Markup Language (XML).
[
Contents]
[
Prev]
[
Next]
[
Index]
[
Report an Error]