show system schema
Syntax
show system schema module module output-directory path <format format>
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
|
| 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 |
| 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.
|
Required Privilege Level
view
Sample Output
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;
}
}
...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.