All-module configuration data retrieval example, Network requirements, Configuration procedure – H3C Technologies H3C S6300 Series Switches User Manual

Page 250: Verifying the configuration

Advertising
background image

237

<ok/>

</rpc-reply>

# Perform the get operation to verify that the current value of the parameter is the same as the value
specified through the edit-config operation. (Details not shown.)

All-module configuration data retrieval example

Network requirements

Retrieve configuration data for all modules.

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>

# Retrieve configuration data for all modules.

<rpc message-id="100"

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

<get-config>

<source>

<running/>

</source>

</get-config>

</rpc>

Verifying the configuration

If the client receives the following text, the get-config operation is successful:

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

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

<data>

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

<Ifmgr>

<Interfaces>

<Interface>

<IfIndex>1307</IfIndex>

<Shutdown>1</Shutdown>

</Interface>

<Interface>

<IfIndex>1308</IfIndex>

<Shutdown>1</Shutdown>

</Interface>

Advertising