Additional Cisco CRS-1 Series Router Configuration and Management Options Using XML
Load the desired off-the-box configuration into the target configuration using one or more <Set>
3.
operations (assuming that the entire desired configuration is available in XML format, perhaps from
a previous <Get> of the entire configuration). As an alternative, use an appropriate copy command
enclosed within <CLI> tags.
4.
Commit the target configuration.
The following example illustrates these steps:
Sample XML Request to Lock the Current Running Configuration
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Lock/>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Lock/>
</Response>
Sample XML Request to Delete the Current Running Configuration
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Delete>
<Configuration/>
</Delete>
</Delete>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Delete>
<Configuration/>
</Delete>
</Response>
Sample XML Request to Set the Current Running Configuration
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Set>
<Configuration>
</Configuration>
</Set>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Set>
<Configuration/>
</Set>
Cisco CRS-1 Series Carrier Routing System XML API Guide
2-46
.
.
.
configuration data goes here
.
.
.
Chapter 2
Cisco CRS-1 Series XML Router Configuration and Management
OL-4596-01
Need help?
Do you have a question about the CRS-1 - Carrier Routing System Router and is the answer not in the manual?