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: