Requesting Information
This chapter explains how to use the Junos XML management protocol and Junos XML API and to request information about the status and the current configuration of a routing, switching, or security platform running Junos OS.
The tag elements for operational requests are defined in the Junos XML API and correspond to Junos OS command-line interface (CLI) operational commands, which are described in the Junos OS command references. There is a request tag element for many commands in the CLI show family of commands.
The tag element for configuration requests is the Junos XML protocol <get-configuration> tag element. It corresponds to the CLI configuration mode show command, which is described in the Junos CLI User Guide. The Junos XML tag elements that make up the content of both the client application’s requests and the Junos XML protocol server’s responses correspond to CLI configuration statements, which are described in the Junos OS configuration guides.
In addition to information about the current configuration, client applications can request other configuration-related information, including an XML schema representation of the configuration hierarchy, information about previously committed (rollback) configurations, or information about the rescue configuration.
This chapter discusses the following topics:
- Overview of the Request Procedure
- Requesting Operational Information
- Requesting Configuration Information
- Specifying the Source and Output Format of Configuration Information
- Specifying the Scope of Configuration Information to Return
- Requesting an XML Schema for the Configuration Hierarchy
- Requesting a Previous (Rollback) Configuration
- Comparing Two Previous (Rollback) Configurations
- Requesting the Rescue Configuration
Hide Navigation Pane
Show Navigation Pane
Download
SHA1