CHAPTER
3-47
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
3
Cisco CRS-1 Series XML Operational Requests
and Fault Management
A client application can send an extensible markup language (XML) request to get the Cisco CRS-1
Series Carrier Routing System (Cisco CRS-1 Series) router operational information using either a native
data <Get> request along with the <Operational> tag, or the equivalent command-line interface (CLI)
command. Although the CLI is more familiar to users, the advantage of using the <Get> request is that
the response data will be encoded in XML format instead of being just uninterpreted text enclosed within
<CLI> tags.
Note The XML API code is available for use on any Cisco platform that runs Cisco IOS XR software.
This chapter contains the following sections:
• “Operational Get Requests”
• “Action Requests”
Operational Get Requests
The content and format of operational <Get> requests are described in additional detail in Chapter 4,
“Cisco CRS-1 Series XML and Native Data Operations.”
The following example shows a <Get> request to retrieve the global Border Gateway Protocol (BGP)
process information. This request returns BGP process information similar to that displayed by the CLI
command show ip bgp process detail.
Sample XML Client Request to Get BGP Information
<?xml version=”1.0” encoding=”UTF-8”?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
<Operational>
<BGP MajorVersion=”1” MinorVersion=”0”>
<GlobalProcessInfo/>
</BGP>
</Operational>
</Get>
</Request>