Terminating Another Netconf Session; Configuration Example - HPE FlexFabric 5700 Series Network Management And Monitoring Configuration Manual

Hide thumbs Also See for FlexFabric 5700 Series:
Table of Contents

Advertisement

If the client receives a message as follows, the operation is successful:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<get-sessions>
<Session>
</Session>
</get-sessions>
</rpc-reply>
The output shows an existing NETCONF session with session ID as 1. The login user type is vty0,
the login time is 2013-01-05T00:24:57, and the user does not hold the lock of the configuration.

Terminating another NETCONF session

NETCONF allows one client to terminate the NETCONF session of another client. The client whose
session is terminated returns to user view.
# Copy the following message to the client to terminate the specified NETCONF session:
<rpc message-id="101"
<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>
<SessionID>1</SessionID>
<Line>vty0</Line>
<UserName></UserName>
<Since>2013-01-05T00:24:57</Since>
<LockHeld>false</LockHeld>
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
252

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents