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リポジトリを参照してください。独自のカスタムテーブル定義とビュー定義を作成することもできます。

表 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 テーブルの使用方法を示しています。