Importing Scripts to Junos Space
Using Junos Space Network Management Platform, you can import a single script or multiple scripts at a time to the Junos Space server from the Scripts page of the Images and Scripts workspace. Junos Space Platform enables you to import commit, operation (op), or event scripts in the .slax or .xsl format from your computer or from an external Git repository.
Prior to Junos OS 9.0, event scripts and op scripts are saved in the op directory and enabled under the system scripts op hierarchy. However, from Junos OS 9.0 onward, event scripts are saved in the event directory and enabled under the event-options event-script hierarchy.
If you want to import multiple scripts at a time, use the Mozilla Firefox or Google Chrome Web browser. Currently, Internet Explorer does not support the selection of multiple files. In addition, note that two scripts with the same name cannot be imported into the Junos Space server.
Junos Space Platform provides the following options to import scripts:
Importing Scripts from Files
You can import scripts in the .slax or .xsl format from your computer by using the Import from files option on the Import Scripts page. Starting with Junos Space Network Management Platform Release 15.2R1, multiple scripts can also be imported to the Junos Space server as .tar files.
To import scripts from files:
Importing Scripts from a Git Repository
You can import scripts in the .slax or .xsl format from external Git repositories. Before you import scripts from a Git repository, the repository must be added to Junos Space and marked as the active Git repository for scripts, from the Git Repositories page. When you import scripts from Git repositories, all scripts in the selected branch of the repository are imported to Junos Space.
To import scripts from a Git repository:
Fields |
Description |
---|---|
Script |
Name of the script |
Conflict State |
Whether a conflict exists between the selected script and a script with the same name in Junos Space Platform. Value can be NEW, NO CONFLICT, or CONFLICT. Note:
When scripts are imported using the Import from File option, the two possible states are NEW and CONFLICT. If the script does not exist in Junos Space Platform, the state is NEW; if a script of the same name exists in Junos Space Platform, the state is CONFLICT. Value is NEW when the script is imported to Junos Space Platform for the first time. Value is NO CONFLICT when there is no conflict between the script selected for import from the Git repository and the scripts that exist in Junos Space Platform. Value is CONFLICT when:
|
Domain |
Domain to which the existing script in Junos Space Platform is assigned The column is empty if the script does not exist in Junos Space Platform. |
Latest Version |
Latest version of the script in Junos Space Platform The column is empty if the script does not exist in Junos Space Platform. |
Git Version |
Commit ID of the script that was previously imported to Junos Space Platform. A warning icon is displayed if the script was later modified in Junos Space Platform. The column is empty if the script does not exist in Junos Space Platform or if no version of the script in Junos Space Platform is imported from a Git repository. |
Git Branch |
Git repository branch from which the existing script was last imported The column is empty if the script does not exist in Junos Space Platform or if no version of the script in Junos Space Platform is imported from a Git repository. |
Last Commit |
Commit ID of the last commit of the script in the selected branch of the Git repository The column is empty if the script is being imported from your computer. |
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.