Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Tables opérationnelles Junos PyEZ prédéfinies (sortie structurée)

RÉSUMÉ Extrayez les informations opérationnelles d’un équipement Junos à l’aide de tables et de vues Junos PyEZ prédéfinies pour sélectionner des éléments spécifiques à partir de la sortie XML RPC.

Les tables opérationnelles (op) Junos PyEZ pour sortie structurée offrent un moyen simple et efficace d’extraire des informations de la sortie XML d’un RPC. Le module Junos PyEZ jnpr.junos.op fournit des définitions prédéfinies de table et de vue pour les RPC correspondant à certaines commandes opérationnelles courantes. Le tableau 1 répertorie chacun des modules, les noms de table définis dans ce module, ainsi que le RPC général et la commande CLI correspondante pour chaque table. Pour plus d’informations sur les options de commande fournies au RPC, la clé de chaque élément et les champs sélectionnés par la vue correspondante, consultez les définitions de table et de vue dans le fichier .yml de ce module.

Pour obtenir la liste la plus récente des définitions de table et de vue, consultez le référentiel GitHub Junos PyEZ à l’adresse https://github.com/Juniper/py-junos-eznc/. Vous pouvez également créer vos propres définitions de table et de vue personnalisées.

Tableau 1 : Modules jnpr.junos.op

Module

Table

RPC (Anglais seulement)

Commande 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

(filtré pour les 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

(filtré pour les interfaces Ethernet)

show interfaces

PhyPortStatsTable

get-interface-information

(filtré pour les interfaces Ethernet)

show interfaces extensive

PhyPortErrorTable

get-interface-information

(filtré pour les 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

La vidéo suivante montre comment utiliser la RouteTable table.