AI-Scripts use the following tools on JUNOS devices:
An event policy is an if-then-else construct that defines actions to be executed by the software on receipt of a system log message. For each policy, you can configure multiple actions, as follows:
For more information about event policies, see the JUNOS Configuration and Diagnostic Automation Guide.
An op script automates network troubleshooting and network management by doing the following:
For more information about op scripts, see the JUNOS Configuration and Diagnostic Automation Guide.
The JUNOScript API (application programming interface) is an Extensible Markup Language (XML) application that client applications use to request and change configuration information on routing platforms that run the JUNOS software. The operations defined in the API are equivalent to configuration mode commands in the JUNOS command-line interface (CLI). Applications use the API to display, edit, and commit configuration statements (among other operations), just as administrators use CLI configuration mode commands such as show, set, and commit to perform those operations. For more information about JUNOScript, see the JUNOScript API Guide.
Stylesheet Language Alternative Syntax (SLAX) is a language for writing JUNOS commit and op scripts and is an alternative to Extensible Stylesheet Language Transformations (XSLT). SLAX has a distinct syntax, but the same semantics as XSLT.
SLAX has a simple syntax that follows the style of C and PERL. It provides a practical and succinct way to code, thus allowing you to create readable, maintainable commit and op scripts. SLAX removes programming instructions and XPath expressions from XML elements. XML angle brackets and quotation marks are replaced by parentheses and curly brackets ({ }), which are the familiar delimiters of C and PERL.