Verifying the configuration, Performing cli operations through netconf – H3C Technologies H3C MSR 5600 User Manual

Page 166

Advertising
background image

153

# Retrieve data in the Name column with the ifIndex value not less than 5000 in the Interfaces table

under the Ifmgr module.

<rpc message-id="100"

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

xmlns:nc="http://www.h3c.com/netconf/base:1.0">

<get>

<filter type="subtree">

<top xmlns="http://www.h3c.com/netconf/data:1.0">

<Ifmgr>

<Interfaces>

<Interface>

<IfIndex nc:match="more:5000"/>

<Name/>

</Interface>

</Interfaces>

</Ifmgr>

</top>

</filter>

</get>

</rpc>

Verifying the configuration

If the client receives the following text, the operation is successful.

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

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

xmlns:nc="http://www.h3c.com/netconf/base:1.0" message-id="100">

<data>

<top xmlns="http://www.h3c.com/netconf/data:1.0">

<Ifmgr>

<Interfaces>

<Interface>

<IfIndex>7241</IfIndex>

<Name>NULL0</Name>

</Interface>

<Interface>

<IfIndex>7243</IfIndex>

<Name>Register-Tunnel0</Name>

</Interface>

</Interfaces>

</Ifmgr>

</top>

</data>

</rpc-reply>

Performing CLI operations through NETCONF

You can enclose CLIs in XML messages to configure the device.

Advertising
This manual is related to the following products: