[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Importing JUNOS Scripts
This section describes how you can import JUNOS-based
scripts such as commit scripts, op scripts, and event scripts into
the JUNOScope CVS repository from the local file system.
To import a JUNOS script into the JUNOScope CVS
repository, follow these steps:
- In the JUNOScope main window, click Configuration > Repository
> Scripts. The Scripts dialog box appears.

All JUNOS-based scripts saved in the JUNOScope CVS repository are
listed in the Scripts dialog box alphabetically by name. The dialog
box displays the script filename, type, and the actions you can perform
on scripts.
- Click Import. The Import dialog box appears.

- Browse to the location on your local machine where you
have stored the JUNOS script to be imported.
- Select the script type from the Script Type drop-down
list box.
There are three script types:
- Commit—A commit script enforces custom configuration
rules. Each time a new candidate configuration is committed, the script
inspects the configuration. If a configuration violates your custom
rules, the script corrects the problem.
- Op—An op script automates network troubleshooting
and network management. It can perform any function available through
the remote procedure calls (RPCs) supported by two APIs: the JUNOS
extensible markup language (XML) API and the JUNOScript API.
- Event—Event scripts are op scripts invoked in response
to event notifications such as system log messages and SNMP traps
received by the event process.
- In the Comment text box, type an optional comment for
the script.
- Click Import. The Import Result dialog box appears.

- Click OK. The new JUNOS script appears in the Scripts
dialog box.
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]