Specifying The Scope Of Configuration Information To Return; Requesting The Complete Configuration - 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

Specifying the Scope of Configuration Information to Return

Requesting the Complete Configuration

Copyright © 2010, Juniper Networks, Inc.
By including the appropriate optional child tag elements in the
element, a client application can request the entire configuration or specific portions of
the configuration, as described in the following sections:
Requesting the Complete Configuration on page 81
Requesting a Hierarchy Level or Container Object Without an Identifier on page 82
Requesting All Configuration Objects of a Specified Type on page 83
Requesting a Specified Number of Configuration Objects on page 84
Requesting Identifiers Only on page 86
Requesting One Configuration Object on page 88
Requesting a Subset of Objects by Using Regular Expressions on page 90
Requesting Multiple Configuration Elements Simultaneously on page 93
To request the entire configuration, a client application encloses the
tag in an
tag element:
<rpc>
<rpc>
<get-configuration/>
</rpc>
When the application requests Junos XML-tagged output (the default), the Junos XML
protocol server returns the requested configuration in
tag elements. For information about the attributes in the opening
see "Requesting Information from the Committed or Candidate Configuration" on page 65.
<rpc-reply xmlns:junos="URL">
<configuration attributes>
<!-- Junos XML tag elements for all configuration elements -->
</configuration>
</rpc-reply>
To specify the source of the output (candidate or active configuration) and request
special formatting of the output (for example, formatted ASCII text or an indicator for
identifiers), the application can include attributes in the
opening
tag, or both. For more information, see "Specifying the Source and
<junoscript>
Output Format of Configuration Information" on page 65.
The following example shows how to request the complete candidate configuration
tagged with Junos XML tag elements (the default). In actual output, the
variable is replaced by a value such as
10.3.
Chapter 4: Requesting Information
<get-configuration>
<configuration>
<get-configuration/>
for the initial version of Junos OS Release
10.3R1
tag
<get-configuration/>
and
<rpc-reply>
<configuration>
tag,
tag, its
JUNOS-version
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents