Predefined Junos PyEZ Operational Tables and Views

 

Junos PyEZ operational (op) Tables and Views provide a simple and efficient way to extract information from complex operational command output. The Junos PyEZ jnpr.junos.op module provides predefined Table and View definitions for some common operational commands. Table 1 lists each of the modules, the Table names defined in that module, and the general RPC and corresponding CLI command for each Table. For information about the command options provided to the RPC, the key for each item, and the fields selected by the corresponding View, review the Table and View definitions in the .yml file for that module.

For the most current list of Table and View definitions, see the Junos PyEZ GitHub repository at https://github.com/Juniper/py-junos-eznc/. You can also create custom Table and View definitions, which are loaded using the jnpr.junos.factory.loadyaml() method.

Table 1: jnpr.junos.op Modules

Module

Table

RPC

CLI Command

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

ethernetswitchingtable

EthernetSwitchingTable

get-ethernet-switching-table-information

show ethernet-switching table

ethport

EthPortTable

get-interface-information

(filtered for Ethernet interfaces)

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

(filtered for Ethernet interfaces)

show interfaces

PhyPortStatsTable

get-interface-information

(filtered for Ethernet interfaces)

show interfaces extensive

PhyPortErrorTable

get-interface-information

(filtered for Ethernet interfaces)

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

The following video demonstrates how to use the RouteTable Table.