Junos XML 표기법에 운영 모드 명령 및 출력 필드 매핑
SLAX 및 XSLT 연산 스크립트에서는 Junos XML API 의 태그 요소를 사용하여 스크립트의 운영 모드 명령 및 출력 필드를 나타냅니다. 명령 및 출력 필드와 동등한 Junos XML의 경우 Junos XML API 운영 개발자 참조를 참조하십시오.
명령의 출력을 명령으로 지시하여 운영 모드 명령 출력을 위한 Junos XML 태그 요소를 표시할 | display xml
수도 있습니다.
user@host> command-string | display xml
예를 들어:
user@host> show interfaces terse | display xml <rpc-reply xmlns:junos="http://xml.juniper.net/junos/10.0R1/junos"> <interface-information xmlns="http://xml.juniper.net/junos/10.0RI0/junos-interface" junos:style="terse"> <physical-interface> <name>dsc</name> <admin-status>up</admin-status> <oper-status>up</oper-status> </physical-interface> <physical-interface> <name>fxp0</name> <admin-status>up</admin-status> <oper-status>up</oper-status> <logical-interface> <name>fxp0.0</name> <admin-status>up</admin-status> <oper-status>up</oper-status> ...