Close-Session; Commit; Section 8.2, "<Close-Session; Section 8.3, "<Commit - Siemens RX1400 Reference Manual

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

Advertisement

Chapter 8
NETCONF XML Elements
Section 8.2
<close-session/>
Description: Requests the graceful termination of a NETCONF session.
Response: If the NETCONF device can complete the request, it sends an <rpc-reply> document containing the <ok> element.
Example: Using <close-session/> to close a NETCONF session:
Section 8.3
<commit>
Description: Commits the changes made to the candidate configuration, applying the changes to the device's currently running
Parameters: <confirmed/> : requires the commit to be confirmed within a configurable timeout period. If a timeout period is
Example: To commit changes immediately:
126
When a NETCONF server receives a <close-session> request, it does the following:
• gracefully closes the session
• releases any locks and resources associated with the session
• gracefully closes any associated connections
• ignores any NETCONF requests received after the <close-session> request
If the NETCONF device cannot complete the request, it sends an <rpc-reply> document containing the <rpc-error>
element.
<rpc>
<close-session/>
</rpc>
]]>]]>
configuration.
Commits can be immediate, or can require confirmation:
• To commit the changes immediately, issue an empty <commit/> tag: the changes immediately apply to the
currently running configuration.
• To require confirmation of the changes, issue the <confirmed/> tag within the <commit/> tag: the changes
appear in the currently running configuration, but are rolled back if they are not confirmed within a timeout
period. The default timeout period is 10 minutes. To specify a different timeout period, use the <confirm-
timeout> tag within the <commit/> tag. To confirm the commit before the timeout period expires, issue an
empty <commit/> tag.
not specified with the optional <confirm-timeout> tag, the default period is 10 minutes. To confirm the commit
within the timeout period, issue an empty <commit/> tag.
<confirm-timeout> : specifies the timeout period, in minutes, during which you can confirm a commit. If
the commit is not confirmed within the timeout period, the configuration rolls back to the previously active
configuration.
<rpc>
<commit/>
</rpc>
]]>]]>
To commit changes and require a commit confirmation with the default timeout period:
<rpc>
<commit/><confirmed/></commit>
</rpc>
]]>]]>
To commit changes and require a commit confirmation within a 30 minute timeout period:
RUGGEDCOM NETCONF
Reference Guide
<close-session/>

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rx1500Rx1511Rx1512Rx5000Mx5000Mx5000re ... Show all

Table of Contents