Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show system schema

Syntax

Description

Display the schema in the specified format. If you do not specify a format, the device displays the schema in YANG.

Options

format format

(Optional) Data modeling language of the schema. Specify yang to display the schema in YANG format.

  • Default: yang

  • Values: yang

output-directory path

Specify the directory where the schema files will be saved.

Note:

Starting in Junos OS Release 19.1R2 and 19.2R1, you must specify the output-directory option when requesting any schema files. In earlier releases, you can omit the output-directory option when requesting a single module to display the module in standard output.

module module

Specify the module name for which to display the schema. By default, Junos devices emit Junos YANG modules with family-specific schemas, which are identical across all devices in the given device family.

  • Values:

    • all—Emit all Junos YANG modules

    • all-common—Emit all Junos common YANG modules

    • all-conf—Emit all Junos configuration YANG modules

    • all-genstate—Emit all Junos genstate YANG modules

    • all-rpc—Emit all Junos operational YANG modules

    • junos-common-types—Emit the Junos common types module

    • module-nameEmit the individual YANG module with the given module name. You can specify a Junos configuration, genstate, or operational module, an OpenConfig module, or a custom module that is added to the device.

Required Privilege Level

view

Sample Output

show system schema module all-conf

show system schema module (Junos OS Release 19.1 and earlier)

Release Information

Command introduced in Junos OS Release 14.2.

output-directory option added in Junos OS Release 16.1R1.

module values all-genstate and junos-genstate-* added in Junos OS Release 25.4R1 and Junos OS Evolved Release 25.4R1.