show | display xml
语法
show | display xml <groups | interface-ranges | no-export-path>
描述
将输出显示为 XML 标记。在 Junos OS CLI 上,要将命令输出显示为 Junos XML 标记元素,而不是默认格式化的 ASCII 文本,请在命令后包含 | display xml
该选项。
选项
groups | 使用源组名称标记继承的数据。 |
interface-ranges | 使用源接口范围名称标记继承的数据 |
no-export-path | 不要导出数据中的父路径。 |
所需权限级别
视图
示例输出
显示接口 |显示 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>
显示接口 |显示 XML 无导出路径
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>
发布信息
在 Junos OS 7.4 版之前引入的命令。