show system data-models
Syntax
show system data-models genstate genstate-path-cli-command-mapping path
Syntax (Junos OS Evolved Release 25.4 and Earlier)
show system data-models genstate xpath-cli-command-mapping path
Description
Display information for the genstate data models.
The genstate YANG data models expose state data available in operational
show commands through the gNMI subscribe RPC. Use this command to map a
genstate resource path to the CLI command that generates the
corresponding output.
Options
| genstate-path-cli-command-mapping path |
For genstate models, retrieve the operational mode command that generates the state data associated with the given resource path. |
| xpath-cli-command-mapping path |
For genstate models, retrieve the operational mode command that generates the state data associated with the given resource path. We've renamed this option to |
Additional Information
Starting in Junos OS Evolved Release 26.2R1, we've made the following changes to the command's RPC tags and XML output:
-
RPC tag changes—Renamed the request tag from
<get-genstate-xpath-cli-command-mapping>to<get-genstate-path-cli-command-mapping>and renamed the<xpath>option to<genstate-path> -
XML output changes—Renamed the root element from
<genstate-xpath-cli-command-mapping-information>to<genstate-path-cli-command-mapping-information>and renamed the<xpath>element to<genstate-path>
Required Privilege Level
view
Sample Output
- show system data-models genstate (Junos OS Evolved Release 26.2R1 and Later)
- show system data-models genstate (Junos OS Evolved Release 25.4 and Earlier)
show system data-models genstate (Junos OS Evolved Release 26.2R1 and Later)
user@host> show system data-models genstate genstate-path-cli-command-mapping genstate:/genstate/commit-information
Genstate Path:
genstate:/genstate/commit-information
Mapped CLI Command:
show system commit include-configuration-revision
show system data-models genstate (Junos OS Evolved Release 25.4 and Earlier)
user@host> show system data-models genstate xpath-cli-command-mapping genstate:/genstate/system-information/os-version Genstate xpath to CLI command mapping information (sometimes multiple commands might be mapped): > show system information
Sample RPC Output
<get-genstate-path-cli-command-mapping>(Junos OS Evolved Release 26.2R1 and Later)<get-genstate-xpath-cli-command-mapping>(Junos OS Evolved Release 25.4 and Earlier)
<get-genstate-path-cli-command-mapping> (Junos OS Evolved Release 26.2R1 and Later)
<rpc>
<get-genstate-path-cli-command-mapping>
<genstate-path>genstate:/genstate/commit-information</genstate-path>
</get-genstate-path-cli-command-mapping>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="http://xml.juniper.net/junos/26.2R1.12-EVO/junos">
<genstate-path-cli-command-mapping-information>
<genstate-path>genstate:/genstate/commit-information</genstate-path>
<mapped-cli-command>show system commit include-configuration-revision</mapped-cli-command>
</genstate-path-cli-command-mapping-information>
</rpc-reply>
<get-genstate-xpath-cli-command-mapping> (Junos OS Evolved Release 25.4 and Earlier)
<rpc>
<get-genstate-xpath-cli-command-mapping>
<xpath>genstate:/genstate/commit-information</xpath>
</get-genstate-xpath-cli-command-mapping>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="http://xml.juniper.net/junos/25.4R1.13-EVO/junos">
<genstate-xpath-cli-command-mapping-information>
<xpath>genstate:/genstate/commit-information</xpath>
<mapped-cli-command>show system commit include-configuration-revision</mapped-cli-command>
</genstate-xpath-cli-command-mapping-information>
</rpc-reply>Release Information
Command introduced in Junos OS Evolved Release 24.2R1.
The xpath-cli-command-mapping option is renamed to
genstate-path-cli-command-mapping starting in Junos OS Evolved Release
26.2R1.