Verifying the configuration, Retrieving netconf session information – H3C Technologies H3C MSR 5600 User Manual

Page 168

Advertising
background image

155

</CLI>

</rpc>

Verifying the configuration

If the client receives the following text, the 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">

<CLI>

<Execution><![CDATA[<ab>display current-configuration

#

version 5.3.1,

#

sysname ab

#

ftp server enable

ftp update fast

ftp timeout 2000

#

domain default enable system

#

telnet server enable

#

vlan 1

#

vlan 1000

#

radius scheme system

primary authentication 127.0.0.1 1645

]]>

</Execution>

</CLI>

</rpc-reply>

Retrieving NETCONF session information

You can uses the get-sessions operation to retrieve NETCONF session information of the device.
# Copy the following message to the client to retrieve NETCONF session information from the device:

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

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

<get-sessions/>

</rpc>

After receiving the get-sessions request, the device returns a response in the following format if the
get-sessions 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">

<get-sessions>

<Session>

Advertising
This manual is related to the following products: