Specifications

2-43
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
<Timestamp>Tue June 17 11:07:55 2003</Timestamp>
<Comment>My CDP config update</Comment>
</ComitEntry>
</GetConfigurationHistory>
</Response>
Getting Configuration Session Information
The client application uses the <GetConfigurationSessions> operation to get the list of all users
configuring the Cisco CRS-1 Series router. In the case where the configuration is locked, the list
identifies the user holding the lock.
Table 2-8 describes the information that is returned for each configuration session.
The following example shows a request to get the list of users configuring the router. This request
corresponds to the CLI command show configuration sessions.
Sample XML Request to Get List of Users Configuring the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<GetConfigurationSessions/>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<GetConfigurationSessions>
<Session>
<SessionID>00000070-001610ae-00000000</SessionID>
<UserID>cisco</UserID>
<Line>line0</Line>
<ClientName>XMLDemo</ClientName>
<Since>Fri Jun 27 15:10:39 2003</Since>
<LockHeld>true</LockHeld>
</Session>
<Session>
<SessionID>00000070-001650a4-00000000</SessionID>
<UserID>unknown</UserID>
<Line>con0_0_0</Line>
<ClientName>XML-Agent</ClientName>
<Since>Fri Jun 27 14:55:18 2003</Since>
Table 2-8 Returned Session Information
Returned Session Information Session Information Description
<SessionID> The unique autogenerated ID for the configuration session.
<UserID> The name of the user who created the configuration session.
<Line> The line used to connect to the router.
<ClientName> The user-friendly name of the client application that created the
configuration session.
<Since> The date and time of the creation of the configuration session.
<LockHeld> A Boolean operation indicating whether the session has an exclusive
lock on the running configuration.