2-39
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
Chapter 2 Cisco CRS-1 Series XML Router Configuration and Management
Additional Cisco CRS-1 Series Router Configuration and Management Options Using XML
The following shows an example of a configuration change notification:
RP/0/0/0:Jun 18 19:16:42.561 : %CLIENTLIBCFGMGR-6-CONFIG_CHANGE : A configuration commit
by user ’root’ occurred at ’Wed Jun 18 19:16:18 2003 ’. The configuration changes are
saved on the router by commit ID: ’1000000075’.
Upon receiving the configuration change notification, a client application can then use the <Get>
operation to load and browse the changed configuration.
For more information on CORBA-based event notifications and alarms supported by the Cisco CRS-1
Series XML API, see the section “XML Transport.”
The client application can read a set of commit changes using the <Get> operation along with the
<Configuration> request type tag when it includes the Source attribute option CommitChanges. One of
the additional attributes, either ForCommitID or SinceCommitID, must also be used to specify the
commit identifier or commit label for which the commit changes should be retrieved.
The following example shows the use of the ForCommitID attribute to show the commit changes for a
specific commit. This request corresponds to the CLI command show commit changes 1000000075
.
Sample XML Request to Show Specified Commit Changes Using the ForCommitID Attribute
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
<Configuration Source=”CommitChanges” ForCommitID=”1000000075”/>
</Get>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Get>
<Configuration Source=”CommitChanges” ForCommitID=”1000000075”>
.
.
.
changed config returned here
.
.
.
</Configuration>
</Get>
</Response>
The following example shows the use of the SinceCommitID attribute to show the commit changes made
since a specific commit. This request corresponds to the CLI command show commit changes since
1000000072
.
Sample XML Request to Show Specified Commit Changes Using the SinceCommitID Attribute
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
<Configuration Source=”CommitChanges” SinceCommitID=”1000000072”/>
</Get>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Get>