[Contents] [Prev] [Next] [Index] [Report an Error]

# Displaying CLI Output as XML Tag Elements

To display the output from a CLI command as NETCONF and SRC XML tag elements instead of as the default formatted ASCII, pipe the command to the display xml command. The tag elements that describe SRC configuration or operational data belong to the SRC XML API, which defines the content that can be retrieved and manipulated by the NETCONF API.

The following example shows the output from the show system information command issued on a C Series Controller (the opening <system-info> tag appears on multiple lines for legibility only):

`

user@host> show system information |display xml

    <?xml version="1.0" encoding="utf-8"?>
        <system-info sdx:style="normal"\
                    xmlns="http://xml.juniper.net/sdx/system-info"\
                    xmlns:sdx="http://xml.juniper.net/sdx">
            <cpu xmlns="http://xml.juniper.net/sdx/cpu">
                <number>4</number>
                <model>Dual Core AMD Opteron(tm) Processor 265</model>
                <speed>1804.108 MHz</speed>
            </cpu>
            <!- - other child tags of <system-info> - ->
        </system-info>

`

[Contents] [Prev] [Next] [Index] [Report an Error]