JUNOScript API
Notices
Current Versions
What is the JUNOScript API?
The JUNOScript API is an XML application that client applications can use to exchange information with Juniper Networks J-series, M-series, MX-series, and T-series routing platforms. XML is a metalanguage for defining how to mark the organizational structures and individual elements in a data set or document with tags that describe the function of the structures and elements. The operations in the API are equivalent to commands in JUNOS CLI configuration mode. The API is customized for the JUNOS software on J-series, M-series, MX-series, and T-series routing platforms.
JUNOScript API Guide
This document describes how a client application uses the JUNOScript API. It includes a chapter that describes how to use the samples in the JUNOScript Perl client package as models for your own client applications.
JUNOScript Perl Client Module and Sample Scripts
This package includes a set of Perl modules whose external interface, JUNOS::Device, provides an object interface that client applications can use to communicate with the JUNOScript server on a routing platform. Use the modules to quickly and easily develop custom Perl applications for configuring and monitoring routing platforms.
The JUNOScript API supports four communication protocols for connecting to the JUNOScript server:
- Clear-text (an unencrypted, JUNOScript-specific protocol)
- Telnet
- Secure Shell (SSH)
- Secure Sockets Layer (SSL)
The Perl client package for customers in the United States and Canada (domestic) includes all four protocols. The package for other customers (export) includes the first two protocols only. Each new release of the JUNOScript Perl modules is backward compatible with routing platforms that run earlier versions of the JUNOScript software. The JUNOScript server is bundled with the JUNOS software in JUNOS Releases 4.3 and later. The package includes sample Perl scripts that illustrate how to use the module to perform various functions, including requesting status information and parsing the JUNOScript server's response, configuring a router, and converting JUNOS XML data for storage in and retrieval from a relational database.
Perl Client Prerequisite Modules
This package includes prerequisite Perl modules must be installed on the client machine for the JUNOScript Perl client to work correctly. As for the Perl client module package, there are domestic and export versions of the prerequisites package.
Installation Instructions
For instructions on installing the JUNOScript Perl client modules, sample scripts, and prerequisite Perl modules, see the 'readme' file included in the JUNOScript Perl client package and the chapter about the Perl client in the JUNOScript API Guide./p>

