Requesting A Hierarchy Level Or Container Object Without An Identifier - 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 a Hierarchy Level or Container Object Without an Identifier

82
Client Application
Junos XML Protocol Server
<rpc>
<get-configuration/>
</rpc>
<rpc-reply xmlns:junos="URL ">
<configuration junos:changed-seconds=" seconds " \
</configuration>
</rpc-reply>
To request complete information about all child configuration elements at a hierarchy
level or in a container object that does not have an identifier, a client application emits
a
<get-configuration>
tag element that encloses the tag elements representing all levels
in the configuration hierarchy from the root (represented by the
element) down to the level's immediate parent level. An empty tag represents the
requested level. The entire request is enclosed in an
<rpc>
<get-configuration>
<configuration>
<!-- opening tags for each parent of the level -->
<requested-level/>
<!-- closing tags for each parent of the level -->
</configuration>
</get-configuration>
</rpc>
When the application requests Junos XML-tagged output (the default), the Junos XML
protocol server returns the requested section of the configuration in
tag elements. For information about the attributes in the opening
<rpc-reply>
tag, see "Requesting Information from the Committed or Candidate
<configuration>
Configuration" on page 65.
<rpc-reply xmlns:junos="URL">
<configuration attributes>
<!-- opening tags for each parent of the level -->
<hierarchy-level>
<!-- child tag elements of the level -->
</hierarchy-level>
<!-- closing tags for each parent of the level -->
</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
its opening
<junoscript>
tag, or both. For more information, see "Specifying the Source
and Output Format of Configuration Information" on page 65.
junos:changed-localtime="timestamp">
<version>JUNOS-version </version>
<system>
<host-name>big-router</host-name>
<!- - other children of <system>- ->
</system>
<!- - other children of <configuration>- ->
<rpc>
tag
<configuration>
tag element.
<configuration>
<get-configuration>
Copyright © 2010, Juniper Networks, Inc.
and
tag,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents