show system schema

 

Syntax

Release Information

Command introduced in Junos OS Release 14.2 on EX Series, M Series, MX Series, PTX Series, and T Series.

Command introduced in Junos OS Release 15.1X49-D20 on SRX Series.

Command introduced in Junos OS Release 15.1X53-D30 on QFX Series.

Command introduced in Junos OS Release 15.1X54-D20 on ACX Series.

filter, module-name, and output-directory options added in Junos OS Release 16.1R1.

output-file-name option deprecated in Junos OS Release 16.1R1.

filter and module-name options deprecated in Junos OS Release 17.4R1.

Description

Display the Junos OS schema in the specified format. If you do not specify a format, the device displays the output as a YANG module.

Options

filter [xpath-expressions]Display the schema only for the specified configuration hierarchies when generating the schema for the configuration module. Specify a space-delimited list of XPath expressions representing each hierarchy to include. When you use the filter option, you must also include the module-name option. This option is deprecated starting in Junos OS Release 17.4R1
Note

In the XPath expression, the root element represents the top-level configuration element in the configuration hierarchy. For example, to filter the hierarchy to only display the [edit system services] hierarchy, set the value of filter to /system/services.

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

Default: yang

output-directory path(Optional) Specify the directory where the schema files will be saved.
Note

Starting in Junos OS Release 17.4R1, you must specify the output-directory option when the request generates multiple output files.

Note

To specify the output file in Junos OS Release 15.1 and earlier releases, use the output-file-name option.

output-file-name path(Optional) File to which the output is written. If you do not specify an absolute path, the device places the file in the current working directory, which defaults to the user’s home directory in /var/home. If you omit this option, the output is sent to standard output. This option is deprecated starting in Junos OS Release 16.1.
module moduleModule for which to display the schema.
module-name output-module-name(Optional) Name used for the generated module. If you also include the output-directory option in the command to direct the output to a file, the filename for the output file uses this module name as the filename base and the format as the file extension. This option is deprecated starting in Junos OS Release 17.4R1.

Required Privilege Level

view

Sample Output

show system schema module configuration filter

user@host> show system schema module configuration filter [/system /interfaces] module-name config-sys-int

show system schema module all-conf

user@host> show system schema module all-conf output-directory /var/tmp/yang

show system schema module

user@host> show system schema module junos-conf-root