Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Tablas operativas predefinidas de Junos PyEZ (salida estructurada)

RESUMEN Extraiga información operativa de un dispositivo Junos mediante tablas y vistas predefinidas de Junos PyEZ para seleccionar elementos específicos de la salida XML de RPC.

Operativo (op) de Junos PyEZ Las tablas para salida estructurada proporcionan una manera sencilla y eficiente de extraer información de la salida XML de un RPC. El módulo Junos PyEZ jnpr.junos.op proporciona definiciones predefinidas de tabla y vista para RPC correspondientes a algunos comandos operativos comunes. En la Tabla 1 se enumera cada uno de los módulos, los nombres de tabla definidos en ese módulo y el RPC general y el comando CLI correspondiente para cada tabla. Para obtener información acerca de las opciones de comando proporcionadas al RPC, la clave para cada elemento y los campos seleccionados por la vista correspondiente, revise las definiciones de tabla y vista en el archivo .yml para ese módulo.

Para obtener la lista más reciente de definiciones de tabla y vista, consulte el repositorio de GitHub de Junos PyEZ en https://github.com/Juniper/py-junos-eznc/. También puede crear sus propias definiciones personalizadas de tabla y vista.

Tabla 1: Módulos jnpr.junos.op

Módulo

Mesa

RPC

Comando 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

(filtrado para interfaces Ethernet)

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

(filtrado para interfaces Ethernet)

show interfaces

PhyPortStatsTable

get-interface-information

(filtrado para interfaces Ethernet)

show interfaces extensive

PhyPortErrorTable

get-interface-information

(filtrado para interfaces Ethernet)

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

En el siguiente vídeo se muestra cómo utilizar la RouteTable tabla.