Example for changing the value of a parameter, Network requirements, Configuration procedure – H3C Technologies H3C S6300 Series Switches User Manual

Page 254: Verifying the configuration

Advertising
background image

241

Example for changing the value of a parameter

Network requirements

Change the log buffer size for the Syslog module to 512.

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>

# Change the log buffer size for the Syslog module to 512.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

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

<Syslog>

<LogBuffer>

<BufferSize>512</BufferSize>

</LogBuffer>

</Syslog>

</top>

</config>

</edit-config>

</rpc>

Verifying the configuration

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

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

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

<ok/>

</rpc-reply>

Saving, rolling back, and loading the configuration

Use NETCONF to save, roll back, or load the configuration.

Advertising