Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

사전 정의된 Junos PyEZ 운영 테이블(구조화된 출력)

요약 사전 정의된 Junos PyEZ 테이블 및 뷰를 사용하여 RPC XML 출력에서 특정 항목을 선택함으로써 Junos 디바이스에서 운영 정보를 추출합니다.

구조화된 출력을 위한 Junos PyEZ 운영(op) 테이블은 RPC의 XML 출력에서 정보를 추출하는 간단하고 효율적인 방법을 제공합니다. Junos PyEZ jnpr.junos.op 모듈은 몇 가지 일반적인 운영 명령에 해당하는 RPC에 대해 사전 정의된 테이블 및 뷰 정의를 제공합니다. 표 1 에는 각 모듈, 해당 모듈에 정의된 테이블 이름, 각 테이블에 대한 일반 RPC 및 해당 CLI 명령이 나열되어 있습니다. RPC에 제공되는 명령 옵션, 각 항목의 키 및 해당 보기에서 선택한 필드에 대한 자세한 내용은 해당 모듈의 .yml 파일에서 테이블 및 보기 정의를 검토합니다.

테이블 및 뷰 정의의 최신 목록은 https://github.com/Juniper/py-junos-eznc/ 의 Junos PyEZ GitHub 리포지토리를 참조하십시오. 사용자 지정 Table 및 View 정의를 직접 만들 수도 있습니다.

표 1: jnpr.junos.op 모듈

모듈

테이블

Rpc

CLI 명령

arp

ArpTable

get-arp-table-information

show arp

bfd

BfdSessionTable

get-bfd-session-information

show bfd session extensive

bgp

bgpTable

get-bgp-neighbor-information

show bgp neighbor

ccc

CCCTable

get-ccc-information

show connections

elsethernetswitchingtable

ElsEthernetSwitchingTable

get-ethernet-switching-table-information

show ethernet-switching table

ethernetswitchingtable

EthernetSwitchingTable

get-ethernet-switching-table-information

show ethernet-switching table

ethport

EthPortTable

get-interface-information

(이더넷 인터페이스에 대해 필터링됨)

show interfaces media

fpc

FpcHwTable

FpcMiReHwTable

get-chassis-inventory

show chassis hardware

FpcInfoTable

FpcMiReInfoTable

get-fpc-information

show chassis fpc

idpattacks

IDPAttackTable

get-idp-attack-table-information

show security idp attack table

intopticdiag

PhyPortDiagTable

get-interface-optics-diagnostics-information

show interfaces diagnostics optics

inventory

ModuleTable

get-chassis-inventory

show chassis hardware

isis

IsisAdjacencyTable

get-isis-adjacency-information

show isis adjacency

l2circuit

L2CircuitConnectionTable

get-l2ckt-connection-information

show l2circuit connections

lacp

LacpPortTable

get-lacp-interface-information

show lacp interfaces

ldp

LdpNeighborTable

get-ldp-neighbor-information

show ldp neighbor extensive

lldp

LLDPNeighborTable

get-lldp-neighbors-information

show lldp neighbors

nd

NdTable

get-ipv6-nd-information

show ipv6 neighbors

ospf

OspfNeighborTable

get-ospf-neighbor-information

show ospf neighbor

OspfInterfaceTable

get-ospf-interface-information

show ospf interface

ospfTable

get-ospf-overview-information

show ospf overview

OspfRoutesTable

get-ospf-route-information

show ospf route

phyport

PhyPortTable

get-interface-information

(이더넷 인터페이스에 대해 필터링됨)

show interfaces

PhyPortStatsTable

get-interface-information

(이더넷 인터페이스에 대해 필터링됨)

show interfaces extensive

PhyPortErrorTable

get-interface-information

(이더넷 인터페이스에 대해 필터링됨)

show interfaces extensive

routes

RouteTable

get-route-information

show route

RouteSummaryTable

get-route-summary-information

show route summary

securityzone

SecurityZoneTable

get-zones-information

show security zones

teddb

TedTable

TedSummaryTable

get-ted-database-information

show ted database

vlan

VlanTable

get-vlan-information

show vlans

xcvr

XcvrTable

get-chassis-inventory

show chassis hardware

다음 비디오에서는 테이블을 사용하는 방법을 보여 줍니다 RouteTable .