Configuration example, Configuration requirement, Configuration procedure – H3C Technologies H3C MSR 5600 User Manual

Page 170: Verifying the configuration

Advertising
background image

157

# Copy the following message to the client to terminate the specified NETCONF session:

<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<kill-session>

<session-id>

Specified session-ID

</session-id>

</kill-session>

</rpc>

After receiving the kill-session request, the device returns a response in the following format if the
kill-session operation is successful:

<?xml version="1.0" encoding="UTF-8" ?>

<rpc-reply message-id="101"

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

<ok/>

</rpc-reply>

Configuration example

Configuration requirement

The user whose session's ID is 1 terminates the session with session ID 2.

Configuration procedure

# Enter XML view.

<Sysname> xml

# Exchange capabilities.

<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<capabilities>

<capability>

urn:ietf:params:netconf:base:1.0

</capability>

</capabilities>

</hello>

# Terminate the session with session ID 2.

<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<kill-session>

<session-id>2</session-id>

</kill-session>

</rpc>

Verifying the configuration

If the client receives the following text, the NETCONF session with session ID 2 has been terminated, and

the client with session ID 2 has returned from XML view to user view:

<?xml version="1.0" encoding="UTF-8" ?>

<rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

Advertising
This manual is related to the following products: