Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show | display xml

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show | display xml <groups | interface-ranges | no-export-path>

Description

Show output as XML tags. On the Junos OS CLI, to display command output as Junos XML tag elements instead of as the default formatted ASCII text, include the | display xml option after the command.

Options

groups

Tag inherited data with the source group name.

interface-ranges Tag inherited data with the source interface-range name
no-export-path Do not export parent path in the data.

Required Privilege Level

view

Sample Output

show interfaces | display xml

content_copy zoom_out_map
user@host> show interfaces | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/23.1R0/junos">
<rpc-reply xmlns:junos=http://xml.juniper.net/junos/21.1R0/junos>
    <configuration junos:changed-seconds="1682580061" junos:changed-localtime="2023-04-27 07:21:01 UTC">
            <interfaces>
                <interface>
                    <name>ge-0/0/0</name>
                    <unit>
                        <name>0</name>
                        <family>
                            <inet>
                                <address>
                                    <name>10.1.12.1/24</name>
                                </address>
                            </inet>
                        </family>
                    </unit>
                </interface>

            </interfaces>
    </configuration>
    <cli>
        <banner>[edit]</banner>         
    </cli>
</rpc-reply>

show interfaces | display xml no-export-path

content_copy zoom_out_map
user@host>show interfaces | display xml no-export-path
<rpc-reply xmlns:junos=http://xml.juniper.net/junos/21.1R0/junos>
    <interfaces>
            <interface>
                <name>ge-0/0/0</name>
                <unit>
                    <name>0</name>
                    <family>
                        <inet>
                            <address>
                                <name>10.1.12.1/24</name>
                            </address>
                        </inet>
                    </family>
                </unit>
            </interface>
    </interfaces>
    <cli>
        <banner>[edit]</banner>
    </cli>
</rpc-reply>

Release Information

Command introduced before Junos OS Release 7.4.

footer-navigation