JN0-223 practice question 12 of 15

Which two programming languages are used for Junos on-box scripting? (Choose two.)

Full set: 66 questions
Answer options
A: Perl
B: Ruby
C: SLAX Correct answer
D: XSLT Correct answer
Correct Answer:
C. SLAX; D. XSLT
Explanation

Junos OS provides a native, on-box scripting framework to automate operational and configuration tasks. The two primary languages supported for this framework are Extensible Stylesheet Language Transformations (XSLT) and Style Sheet Language Alternative Syntax (SLAX). XSLT is a W3C standard for transforming XML data, which is the native format for the Junos OS configuration and operational state. SLAX is a Juniper-developed language that provides a simpler, more intuitive syntax for writing automation scripts while still being processed as XSLT. These languages are used to create op, commit, event, and SNMP scripts that run directly on the device.

Why Incorrect

A. Perl: Perl is not a supported language for the native Junos on-box scripting framework (op, commit, event scripts). It is commonly used for off-box automation.
B. Ruby: Ruby is not supported for creating native on-box automation scripts in Junos OS. It is typically used for developing off-box applications that interact with a device.

References

1. Juniper Networks TechLibrary

Junos OS Automation Scripting User Guide

"Automation Scripting Overview."

This document states

"Junos OS automation scripts are written in Extensible Stylesheet Language Transformations (XSLT)

Style Sheet Language Alternative Syntax (SLAX)

or Python." This directly confirms that XSLT and SLAX are supported languages for on-box scripting.

2. Juniper Networks TechLibrary

Understanding the Junos OS Scripting Languages

"Summary."

This section explicitly mentions

"You can author automation scripts in Extensible Stylesheet Language Transformations (XSLT)

Style Sheet Language Alternative Syntax (SLAX)

or Python. XSLT is a W3C standard for XML transformations. SLAX is an alternative syntax for XSLT that was developed by Juniper Networks." This reference validates both correct answers and provides context for their use.

Scroll to Top