The Junos XML Management Protocol (formerly known as Junoscript API) is an XML-based protocol that client applications use to exchange information with Juniper Networks EX Series, J Series, M Series, MX Series, T Series, and SRX Series devices. 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 Junos XML protocol defines operations that are equivalent to commands in Junos OS CLI configuration mode.
This document describes how a client application uses the Junos XML Management Protocol. It includes a chapter that describes how to use the samples in the Junos XML protocol Perl client package as models for your own client applications.
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 Junos XML protocol server on a switching, routing, and security platform running Junos OS. Use the modules to quickly and easily develop custom Perl applications for configuring and monitoring devices running Junos OS.
The Junos XML Management Protocol supports four communication protocols for connecting to the Junos XML protocol server:
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 Junos XML protocol Perl modules is backward compatible with devices that run earlier versions of the Junos XML Management Protocol software. The Junos XML protocol server is bundled with the Junos OS. The package includes sample Perl scripts that illustrate how to use the module to perform various functions, including requesting status information and parsing the Junos XML protocol server's response, configuring a router, and converting Junos XML data for storage in and retrieval from a relational database.
This package includes prerequisite Perl modules that must be installed on the client machine for the Junos XML protocol Perl client to work correctly. There are domestic and export versions of the prerequisites package.
For instructions on installing the Junos XML protocol Perl client modules, sample scripts, and prerequisite Perl modules, see the 'readme' file included in the Junos XML protocol Perl client package and the chapter about the Perl client in the Junos XML Management Protocol Guide.