Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual page 88

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
66
<!-- OR -->
<get-configuration>
<!-- tag elements for the configuration elements to return -->
</get-configuration>
</rpc>
To request information from the active configuration—the one most recently committed
on the device—a client application includes the
<get-configuration/>
tag or opening
<rpc>
<get-configuration database="committed"/>
<!-- OR -->
<get-configuration database="committed">
<!-- 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.
The Junos XML protocol server encloses its response in the
either the
<configuration>
tag element (for formatted ASCII output).
<configuration-text>
When returning information from the candidate configuration as Junos XML tag elements,
the Junos XML protocol server includes attributes in the opening
indicate when the configuration last changed (they appear on multiple lines here only
for legibility):
<rpc-reply xmlns:junos="URL">
<configuration junos:changed-seconds="seconds" \
junos:changed-localtime="YYYY-MM-DD hh:mm:ss TZ">
<!-- Junos XML tag elements representing configuration elements -->
</configuration>
</rpc-reply>
represents the time of the last change as the date and time in
junos:changed-localtime
the device's local time zone.
junos:changed-seconds
represents the time of the last change as the number of seconds
since midnight on 1 January 1970.
When returning information from the active configuration as Junos XML tag elements,
the Junos XML protocol server includes attributes in the opening
indicate when the configuration was committed (they appear on multiple lines here only
for legibility):
<rpc-reply xmlns:junos="URL">
<configuration junos:commit-seconds="seconds" \
junos:commit-localtime="YYYY-MM-DD hh:mm:ss TZ" \
junos:commit-user="username">
<!-- Junos XML tag elements representing configuration elements -->
</configuration>
database="committed"
<get-configuration>
tag element (for Junos XML-tagged output) or
attribute in the
tag:
tag element,
<get-configuration>
<rpc-reply>
tag element and
tag that
<configuration>
<configuration>
tag that
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents