RUGGEDCOM NETCONF
Reference Guide
Chapter 1
Introduction
Sample Session: Editing Data
9
<ok/>
</rpc-reply>]]>]]
Section 1.5.3
Sample Session: Editing Data
To edit data on the device, do the following:
<hello>
Say
<hello>
<close-session>
*
<edit-config>
<validate>
<commit>
<unlock>
datastores
<xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
</xml>
<xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
</xml>
<discard-changes/>
<xml>
<xml
>data
</xml
>
<xm
l>dat
a</xm
l>
<xml
>data
</xml
>
<xml
>data
</xml
>
<xm
l>dat
a</xm
l>
<x
ml>da
ta</x
ml>
<
xml>d
ata</
xml>
<xm
l>dat
a</xm
l>
<xm
l>dat
a</xm
l>
<xm
l>dat
a</xm
l>
</xml
>
<lock>
datastores
Figure 4: Session Schematic: Editing Data
Basic Steps
1. Connect to the device and exchange
<hello>
messages.
2. Issue an
<rpc>
command to discard changes. Discarding changes removes changes that are incomplete and
not yet committed to the datastores. It is strongly recommended that you discard any such stray changes
before making changes to the device configuration. Discarding changes helps to ensure that you are making
changes to a known state of the configuration.
3. Issue an
<rpc>
command to lock the candidate and running datastores. Locking the datastores prevents
other users in other sessions from editing the database while the NETCONF session is working with it. It is
strongly recommended that you lock the datastores before making changes to the device configuration.
Summary of Contents for RUGGEDCOM MX5000RE
Page 8: ...Table of Contents RUGGEDCOM NETCONF Reference Guide viii ...
Page 12: ...Preface RUGGEDCOM NETCONF Reference Guide xii Customer Support ...
Page 26: ...Chapter 1 Introduction RUGGEDCOM NETCONF Reference Guide 14 Sample Session Editing Data ...
Page 40: ...Chapter 3 NETCONF Sessions RUGGEDCOM NETCONF Reference Guide 28 Killing a Session ...
Page 64: ...Chapter 5 Changing Configuration Data RUGGEDCOM NETCONF Reference Guide 52 Committing Changes ...
Page 148: ...Chapter 8 NETCONF XML Elements RUGGEDCOM NETCONF Reference Guide 136 validate ...