Specifying The Output Format For Configuration Groups - 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

Specifying the Output Format for Configuration Groups

74
attribute is included in the opening
junos:key="key"
application for the session. The two opening
for legibility only. Neither client applications nor the Junos XML protocol server insert
newline characters within tags. Also, for brevity the output includes just one interface,
the loopback interface
lo0
Client Application
<?xml version="1.0" encoding="us-ascii"?> <?xml version="1.0" encoding="us-ascii"?>
<junoscript version="1.0" \
junos:key="key" \
release="JUNOS-release ">
<rpc>
<get-configuration>
<configuration>
<interfaces/>
</configuration>
</get-configuration>
</rpc>
The
tag element corresponds to the
<groups>
encloses tag elements representing configuration groups, each of which contains a set
of configuration statements that are appropriate at multiple locations in the hierarchy.
Use the
configuration statement or
apply-groups
a configuration group at the appropriate location, achieving the same effect as directly
inserting the statements defined in the group. The section of configuration hierarchy to
which a configuration group is applied is said to inherit the group's statements.
In addition to the groups defined at the
predefines a group called
judged appropriate for basic operations on any routing, switching, or security platform.
By default, the statements in this group do not appear in the output of CLI commands
that display the configuration, nor in the output returned by the Junos XML protocol server
for the
<get-configuration>
configuration groups and the
<junoscript>
<junoscript>
.
Junos XML Protocol Server
<junoscript version="1.0" hostname="router1" \
os="JUNOS" release="JUNOS-release " \
xmlns="URL "xmlns:junos=" URL " \
xmlns:xnm="URL ">
<rpc-reply xmlns:junos="URL ">
<configuration junos:changed-seconds=" seconds " \
junos:changed-localtime="timestamp">
<interfaces>
<!- - tag elements for other interfaces- ->
<interface>
<name junos:key="key">lo0</name>
<unit>
<name junos:key="key">0</name>
<family>
<inet>
<address>
<name junos:key="key">127.0.0.1/32</name>
</address>
</inet>
</family>
</unit>
</interface>
<!- - tag elements for other interfaces- ->
</interfaces>
</configuration>
</rpc-reply>
[edit groups]
<apply-groups>
[edit groups]
. This group includes configuration statements
junos-defaults
tag element. For more information about user-defined
group, see the Junos CLI User Guide.
junos-defaults
tag emitted by the client
tags appear on multiple lines
configuration hierarchy. It
tag element to insert
hierarchy level, the Junos OS
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents