beautypg.com

H3C Technologies H3C S6300 Series Switches User Manual

Page 275

background image

262

Operation Description XML

example

lock

Locks the configuration data
made through NETCONF
sessions. The configuration data

can be changed by the

edit-config operation. Other
configuration data are not

limited by the lock operation.
This lock operation does not

lock configuration data made

through other protocols, for
example, SNMP.

To lock the configuration:

xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">

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:

xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">

get-sessions

Retrieves information about all
NETCONF sessions in the

system.

To retrieve information about all NETCONF sessions
in the system:

xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">

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:

xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">

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:

xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0">

1