Getting Schemas From The Device - Siemens RX1400 Reference Manual

Ruggedcom series
Hide thumbs Also See for RX1400:
Table of Contents

Advertisement

Chapter 4
Getting Data
• RUGGEDCOM ROX II CLI
Paths to parameters in the RUGGEDCOM ROX II CLI are a direct representation of the underlying data model.
• YANG/YIN Files
YANG and YIN files detail the RUGGEDCOM ROX II data model in formats that can be parsed and transformed as
needed. YANG files are based on the IETF standard for NETCONF data modeling. YIN files are well-formed XML
versions of the YANG files.
Typically, each RUGGEDCOM namespace is defined in one or more separate YANG/YIN files. These files
can be downloaded directly from the device and then opened in the open-source pyang utility to create
human-readable tree diagrams of the elements in each file. For information about using pyang, refer to the
Section 4.6.3, "Using
For information on how to download YANG and YIN files, refer to
from the
Device".
NOTE
Paths to NETCONF action commands can be determined from the YANG files. However, YANG files
can be difficult to decipher for some users. For a list of commonly used NETCONF actions and their
paths, refer to
NOTE
For more information on the YANG data modeling language, refer to
html/rfc6020].
CONTENTS
Section 4.6.1, "Getting Schemas from the Device"
Section 4.6.2, "Getting YIN and YANG Files from the Device"
Section 4.6.3, "Using pyang"
Section 4.6.1

Getting Schemas from the Device

This section describes how to download a list of schemas from RUGGEDCOM ROX II. This general list of schemas
provides information needed to download specific schemas from the device.
To get a list of schemas from the device, do the following:
1.
Log in to the device and start a NETCONF session. For instructions on how to initiate a NETCONF session, refer
to
Section 3.2, "Connecting to the NETCONF Service"
2.
Issue this command:
<rpc message-id="4010" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter type="subtree">
<netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
<schemas/>
</netconf-state>
</filter>
</get>
</rpc>
The device responds with a list of schemas.
36
pyang".
Chapter 6, RUGGEDCOM ROX II
Section 4.6.2, "Getting YIN and YANG Files
Actions.
RFC 6020
RUGGEDCOM NETCONF
Reference Guide
[http://tools.ietf.org/
Getting Schemas from the Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx1500Rx1511Rx1512Rx5000Mx5000Mx5000re ... Show all

Table of Contents