Specifications

2-42
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-02
Chapter 2 Cisco CRS-1 Series XML Router Configuration and Management
Additional Cisco CRS-1 Series Router Configuration and Management Options Using XML
Table 2-7 describes the optional attributes available with the <GetConfigurationHistory> operation.
The following example shows a request to list the information associated with the previous three
commits. This request corresponds to the CLI command show configuration history 3.
Sample XML Request to List Configuration History Information for the Previous Three Commits
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<GetConfigurationHistory Maximum=”3”/>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<GetConfigurationHistory Maximum=”3”>
<CommitEntry>
<CommitID>1000000075</CommitID>
<Label>BGPUpdate1</Label>
<UserID>cisco</UserID>
<Line>line0</Line>
<ClientName>XMLDemo</ClientName>
<Timestamp>Wed June 18 19:16:18 2003</Timestamp>
<Comment>BGP config update</Comment>
</CommitEntry>
<CommitEntry>
<CommitID>1000000074</CommitID>
<Label xsi:nill=”true”>
<UserID>unknown</UserID>
<Line>con0_0_0</Line>
<ClientName>CLI</ClientName>
<Timestamp>Wed June 18 03:08:07 2003</Timestamp>
<Comment xsi:nill=”true”>
</CommitEntry>
<CommitEntry>
<CommitID>1000000073</CommitID>
<Label>MyCDPUpdate</Label>
<UserID>nchomsky</UserID>
<Line>line1</Line>
<ClientName>XMLDemo</ClientName>
Table 2-7 Optional Attributes to Get Configuration History
Name Description
Maximum Use the Maximum attribute to specify the maximum number of entries to return
from the commit history file. If the Maximum attribute is not included in the request
or if the Maximum value is greater than the actual number of entries in the commit
history file, all entries are returned. The commit entries are returned with the most
recent commit first in the list.
RollbackOnly Use the RollbackOnly Boolean attribute to specify whether the response should
contain only those commits that can be rolled back. In addition to the commit history
file, the Cisco CRS-1 Series router maintains a commit database of up to 20 records
corresponding to the last 20 commits that can be rolled back. The default value for
RollbackOnly is false. The <GetConfigurationHistory> operation used with a
RollbackOnly value of false corresponds to the CLI command show
configuration history. When the RollbackOnly attribute is specified as true, the
operation corresponds to the CLI command show rollback-points