Requesting Output As Formatted Ascii Text Or Junos Xml Tag Elements - Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual

Junos xml management protocol guide
Hide thumbs Also See for JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

Junos 10.3 Junos XML Management Protocol Guide

Requesting Output as Formatted ASCII Text or Junos XML Tag Elements

68
To request that the Junos XML protocol server return configuration information in Junos
XML-tagged output, the client application either includes the
the
tag or opening
<get-configuration/>
completely. The Junos XML protocol server returns Junos XML-tagged output by default.
<rpc>
<get-configuration/>
<!-- OR -->
<get-configuration>
<!-- tag elements for the configuration elements to return -->
</get-configuration>
</rpc>
To request that the Junos XML protocol server return configuration information as
formatted ASCII text instead of tagging it with Junos XML tag elements, the client
application includes the
format="text"
tag. It encloses the request in an
<get-configuration>
<rpc>
<get-configuration format="text"/>
<!-- OR -->
<get-configuration format="text">
<!-- tag elements for the configuration elements to return -->
</get-configuration>
</rpc>
For information about the tag elements to enclose in the
see "Specifying the Scope of Configuration Information to Return" on page 81.
NOTE: Regardless of which output format they request, client applications use Junos
XML tag elements to represent the configuration element to display. The
controls the format of the Junos XML protocol server's output only.
When the application requests Junos XML tag elements, the Junos XML protocol server
encloses its output in
<rpc-reply>
about the attributes in the opening
from the Committed or Candidate Configuration" on page 65.
<rpc-reply xmlns:junos="URL">
<configuration attributes>
<!-- Junos XML tag elements representing configuration elements -->
</configuration>
</rpc-reply>
<get-configuration>
attribute in the
<get-configuration/>
tag element:
<rpc>
<get-configuration>
and
<configuration>
tag elements. For information
tag, see "Requesting Information
<configuration>
Copyright © 2010, Juniper Networks, Inc.
attribute in
format="xml"
tag or omits the attribute
tag or opening
tag element,
attribute
format

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents