285
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-
xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">
<close-session/>
kill-session
Terminates the NETCONF
session for another user. This
operation cannot terminate the
current user.
To terminate the NETCONF session with session-id
1:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">
<kill-session>
<session-id>1</session-id>
</kill-session>
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.
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:ba
se:1.0">
<CLI>
<Configuration>display
this</Configuration>
</CLI>
</rpc>
save
configuration. You can use the
<file> element to specify a file
for saving the configuration. If
the <file>
exist, the running configuration
is automatically saved to the
main next-startup configuration
file.
To save the running configuration to the file
test.cfg
:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0"> <save>
<file>test.cfg</file>
</save>
load
Loads the configuration. After
the device finishes the load
operation, the configuration in
the specified file is merged into
the current configuration of the
device.
To merge the configuration in the file
a1.cfg
to the
current configuration of the device:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0"> <load>
<file>a1.cfg</file>
</load>