show | display xml
Syntax
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
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
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.