Getting Configuration Session Information - Cisco CRS-1 - Carrier Routing System Router Api Manual

Carrier routing system xml api guide
Hide thumbs Also See for CRS-1 - Carrier Routing System Router:
Table of Contents

Advertisement

Additional Cisco CRS-1 Series Router Configuration and Management Options Using XML
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">
</GetConfigurationHistory>
</Response>

Getting Configuration Session Information

The client application uses the <GetConfigurationSessions> operation to get the list of all users currently
configuring the Cisco CRS-1 Series router. In the case where the configuration is locked, the list will
identify the user holding the lock.
Cisco CRS-1 Series Carrier Routing System XML API Guide
2-44
<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.
<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>
<Timestamp>Tue June 17 11:07:55 2003</Timestamp>
<Comment>My CDP config update</Comment>
</ComitEntry>
Chapter 2
Cisco CRS-1 Series XML Router Configuration and Management
OL-4596-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents