Predefined Junos PyEZ Operational Tables (Structured Output)
SUMMARY Extract operational information from a Junos device by using predefined Junos PyEZ Tables and Views to select specific items from RPC XML output.
Junos PyEZ operational (op) Tables for structured output provide
a simple and efficient way to extract information from the XML output
of an RPC. The Junos PyEZ jnpr.junos.op
module provides predefined Table and View definitions for RPCs corresponding
to 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 your own custom Table and View definitions.
Module |
Table |
RPC |
CLI Command |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(filtered for Ethernet interfaces) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(filtered for Ethernet interfaces) |
|
|
(filtered for Ethernet interfaces) |
|
|
|
(filtered for Ethernet interfaces) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The following video demonstrates how to use the RouteTable
Table.