Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- Advantages of Using the Junos XML Management Protocol and Junos XML API
- XML and Junos OS
- XML Overview
Junos XML API and Junos XML Management Protocol Overview
The Junos XML Management Protocol is an XML-based protocol that client applications use to request and change configuration information on routing, switching, and security platforms running Junos OS. It uses an XML-based data encoding for the configuration data and remote procedure calls. The protocol defines basic operations that are equivalent to configuration mode commands in the Junos OS command-line interface (CLI). Applications use the protocol operations 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.
The Junos XML API is an XML representation of Junos configuration statements and operational mode commands. Junos XML configuration tag elements are the content to which the Junos XML protocol operations apply. Junos XML operational tag elements are equivalent in function to operational mode commands in the CLI, which administrators use to retrieve status information for a device.
Client applications request information and change the configuration on a device by encoding the request with tag elements from the Junos XML management protocol and Junos XML API and sending it to the Junos XML protocol server on the device. The Junos XML protocol server is integrated into Junos OS and does not appear as a separate entry in process listings. The Junos XML protocol server directs the request to the appropriate software modules within the device, encodes the response in Junos XML and Junos XML protocol tag elements, and returns the result to the client application. For example, to request information about the status of a device’s interfaces, a client application sends the Junos XML API <get-interface-information> request tag element . The Junos XML protocol server gathers the information from the interface process and returns it in the Junos XML API <interface-information> response tag element.
You can use the Junos XML management protocol and Junos XML API to configure devices running Junos OS or request information about the device configuration or operation. You can write client applications to interact with the Junos XML protocol server, and you can also utilize the Junos XML protocol to build custom end-user interfaces for configuration and information retrieval and display, such as a Web browser-based interface.
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- Advantages of Using the Junos XML Management Protocol and Junos XML API
- XML and Junos OS
- XML Overview
Published: 2013-03-05
Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- Advantages of Using the Junos XML Management Protocol and Junos XML API
- XML and Junos OS
- XML Overview