Getting Configuration Data - 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

Configuration Operations

Getting Configuration Data

The following Source options are supported:
If the get operation fails, the response will contain one or more ErrorCode and ErrorMsg attributes
indicating the cause of the failure.
The content and format of <Get> requests are described in additional detail in
Series XML and Native Data Operations."
Chapter 6, "Cisco CRS-1 Series XML and Encapsulated CLI Operations."
The following example shows a <Get> request to browse the current Border Gateway Protocol (BGP)
configuration.
Sample XML Client Request to Browse the Current BGP Configuration
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
</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>
</Get>
</Response>
Cisco CRS-1 Series Carrier Routing System XML API Guide
2-28
ChangedConfig—Read only from the changes made to the target configuration for the current
session. This option effectively gets the configuration changes made from the current session since
the last configuration commit. This option corresponds to the CLI command show configuration.
CurrentConfig—Read from the current active running configuration. This option corresponds to the
CLI command show configuration running.
MergedConfig—Read from the target configuration for this session. This option should provide a
view of the resultant running configuration if the current target configuration is committed without
errors. For example, in the case of the "best effort" commit, some portions of the commit could fail,
while others succeed. MergedConfig is the default when the Source attribute is not specified on the
<Get> operation. This option corresponds to the CLI command show configuration merge.
<Configuration Source="CurrentConfig">
<BGP MajorVersion="1" MinorVersion="0"/>
</Configuration>
<Configuration Source="CurrentConfig">
<BGP MajorVersion="1" MinorVersion="0">
..
.
.
response data goes here
.
.
.
</BGP>
</Configuration>
Chapter 2
Cisco CRS-1 Series XML Router Configuration and Management
Encoding CLI commands within XML tags is described in
Chapter 4, "Cisco CRS-1
OL-4596-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents