HP 5920 Configuration Manual page 287

Table of Contents

Advertisement

Operation
Description
Locks the configuration data that
can be changed by the
edit-config operation. Other
configurations are not limited by
the lock operation.
lock
This lock operation locks only
the configurations made
through NETCONF sessions,
rather than those through other
protocols, for example, SNMP.
Unlocks the configuration, so
NETCONF sessions can change
device configuration.
unlock
When a NETCONF session is
terminated, the related locked
configuration is also unlocked.
Retrieves information about all
get-sessions
NETCONF sessions in the
system.
Terminates the NETCONF
session for the current user, to
unlock the configuration and
close-session
release the resources (for
example, memory) of this
session. This operation logs the
current user off the XML view.
Terminates the NETCONF
session for another user. This
kill-session
operation cannot terminate the
NETCONF session for the
current user.
XML example
To lock the configuration:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">
<lock>
<target>
<running/>
</target>
</lock>
</rpc>
To unlock the configuration:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">
<unlock>
<target>
<running/>
</target>
</unlock>
</rpc>
To retrieve information about all NETCONF sessions
in the system:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">
<get-sessions/>
</rpc>
To terminate the NETCONF session for the current
user:
<rpc message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">
<close-session />
</rpc>
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>
</rpc>
277

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5900

Table of Contents