2-45
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 information in Table 2-2 is returned for each configuration session.
The following example shows a request to get the list of users currently configuring the router. This
request corresponds to the CLI command show configuration sessions.
Sample XML Request to Get List of Users Currently 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>
<LockHeld>false</LockHeld>
</Session>
</GetConfigurationSessions>
</Response>
Replacing the Current Running Configuration
A client application replaces the current running configuration on the router with an off-the-box
configuration file by performing the following operations in sequence:
1. Lock the configuration.
2. Delete the entire configuration using a <Delete> operation along with the <Configuration/> tag.
Table 2-2 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.