
260
Operation Description
XML
example
</target>
</lock>
</rpc>
unlock
Unlocks the configuration, so
NETCONF sessions can change
device configuration.
When a NETCONF session is
terminated, the related locked
configuration is also unlocked.
To unlock the configuration:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0">
<unlock>
<target>
<running/>
</target>
</unlock>
</rpc>
get-sessions
Retrieves information about all
NETCONF sessions in the
system.
To retrieve information about all NETCONF sessions
in the system:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0">
<get-sessions/>
</rpc>
close-session
Terminates the NETCONF
session for the current user, to
unlock the configuration and
release the resources (for
example, memory) of this
session. This operation logs the
current user off the XML view.
To terminate the NETCONF session for the current
user:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0">
<close-session/>
</rpc>
kill-session
Terminates the NETCONF
session for another user. This
operation cannot terminate the
NETCONF session for the
current user.
To terminate the NETCONF session with session-id 1:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0">
<kill-session>
<session-id>1</session-id>
</kill-session>
</rpc>
CLI
Executes CLI operations. A
request message encloses
commands in the <CLI>
element, and a response
message encloses the
command output in the <CLI>
element.
NETCONF supports the
following views:
•
Execution
—User view.
•
Configuration
—System
view.
To execute a command in other
views, specify the command for
entering the specified view, and
then the desired command.
To execute the
display this
command in system view:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0">
<CLI>
<Configuration>display
this</Configuration>
</CLI>
</rpc>