show system schema
Syntax
show system schema module module output-directory path <filter [filter1 filter2]> <format format> <module-name output-module-name> <output-file-name path> <version version>
Description
Display the Junos OS schema in the specified format. If you do not specify a format, the device displays the schema in YANG.
Options
filter [filter1 filter2] | Display the schema only for the specified configuration
hierarchies when generating the schema for the Note:
In the filter path, the root element represents the top-level |
format format | (Optional) Data modeling language of the schema. Specify
|
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 Note:
To specify the output file in Junos OS Release 15.1 and
earlier releases, use the |
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 module | Module for which to display the schema. |
module-name output-module-name | (Optional) Name used for the generated
module. If you also include the |
Required Privilege Level
view
Sample Output
- show system schema module all-conf
- show system schema module (Junos OS Release 19.1 and earlier)
- show system schema module configuration filter (Junos OS Release 17.4 and earlier)
show system schema module all-conf
user@host> show system schema module all-conf output-directory /var/tmp/yang user@host>
show system schema module (Junos OS Release 19.1 and earlier)
user@host> show system schema module junos-conf-root /* * Copyright (c) 2017 Juniper Networks, Inc. * All rights reserved. */ module junos-conf-root { namespace "http://yang.juniper.net/junos/conf/root"; prefix jc; import junos-common-types { prefix jt; } organization "Juniper Networks, Inc."; contact "yang-support@juniper.net"; description "Junos YANG module for configuration hierarchies."; revision 2017-01-01 { description "Junos: 17.4R1.17"; } container configuration { config true; uses juniper-config; list groups { key name; ordered-by user; description "Configuration groups"; uses juniper-group; } } ...
show system schema module configuration filter (Junos OS Release 17.4 and earlier)
user@host> show system schema module configuration filter [/system /interfaces] module-name config-sys-int /* * Copyright (c) 2016 Juniper Networks, Inc. * All rights reserved. */ module config-sys-int { namespace "http://yang.juniper.net/yang/1.1/jc/configuration/junos/17.2R1.13"; prefix jc; import junos-extension { prefix junos; } ... container configuration { config true; uses juniper-config; list groups { key group_name; ordered-by user; description "Configuration groups"; uses juniper-group; } } grouping juniper-config { container system { description "System parameters"; uses juniper-system; } container interfaces { description "Interface configuration"; uses apply-advanced; ...
Release Information
Command introduced in Junos OS Release 14.2.
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.