
CHAPTER
3-47
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-02
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 is encoded in XML format instead of being just uninterpreted text enclosed within
<CLI> tags.
Note The XML application programming interface (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, page 3-47
• Action Requests, page 3-48
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 /jointfilesconvert/476768/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>
Commentaires sur ces manuels