Comparing Two Previous (Rollback) Configurations - 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

Comparing Two Previous (Rollback) Configurations

Copyright © 2010, Juniper Networks, Inc.
To compare the contents of two previously committed (rollback) configurations, a client
application emits the Junos XML
and
<rollback>
<compare>
equivalent to the
show system rollback
option. The
<rollback>
tag element specifies the index number of the configuration that
is the basis for comparison. The
the configuration to compare with the base configuration. Valid values in both tag
elements range from
(zero, for the most recently committed configuration) through
0
49
:
<rpc>
<get-rollback-information>
<rollback>index-number</rollback>
<compare>index-number</compare>
</get-rollback-information>
</rpc>
NOTE: The output corresponds more logically to the chronological order of changes if
the older configuration (the one with the higher index number) is the base configuration.
Its index number is enclosed in the
recent configuration is enclosed in the
The Junos XML protocol server encloses its response in
<rollback-information>
,
<configuration-information>
elements. The
<load-success/>
affect the results.
<rpc-reply xmlns:junos="URL">
<rollback-information>
<load-success/>
<configuration-information>
<configuration-output>
<!-- formatted ASCII text representing the changes -->
</configuration-output>
</configuration-information>
</rollback-information>
</rpc-reply>
The information in the
<configuration-output>
includes a banner line (such as
two configurations differ. Each line between banner lines begins with either a plus sign
(
+
) or a minus sign (
). The plus sign indicates that adding the statement to the base
configuration results in the second configuration, whereas a minus sign means that
removing the statement from the base configuration results in the second configuration.
The following example shows how to request a comparison of the rollback configurations
that have indexes of
20
and
<get-rollback-information>
tag elements in an
tag element. This operation is
<rpc>
operational mode command with the
<compare>
tag element specifies the index number of
tag element, and the index of the more
<rollback>
<compare>
tag element.
, and
tag is a side effect of the implementation and does not
tag element is formatted ASCII text and
) for each hierarchy level at which the
[edit interfaces]
4
.
Chapter 4: Requesting Information
tag element and its child
compare
<rpc-reply>
,
<configuration-output>
tag
99

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents