
255
Operation Description
XML
example
get-bulk
Retrieves a number of data
entries (including device
configuration and state
information) starting from the
data entry next to the one with
the specified index.
To retrieve device configuration and state information
for all interface:
<rpc message-id ="100"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0">
<get-bulk>
<filter type="subtree">
<top
xmlns="http://www.h3c.com/netconf/data:1.0
">
<Ifmgr>
<Interfaces xc:count=”5”
xmlns:xc=”
http://www.h3c.com/netconf/base:1.0”>
<Interface/>
</Interfaces>
</Ifmgr>
</top>
</filter>
</get-bulk>
</rpc>
get-bulk-config
Retrieves a number of
non-default configuration data
entries starting from the data
entry next to the one with the
specified index.
To retrieve non-default configuration for all interfaces:
<rpc message-id ="100"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0">
<get-bulk-config>
<source>
<running/>
</source>
<filter type="subtree">
<top
xmlns="http://www.h3c.com/netconf/config:1
.0">
<Ifmgr>
</Ifmgr>
</top>
</filter>
</get-bulk-config>
</rpc>
edit-config: merge
Changes the running
configuration.
To use the
merge
attribute in an
<edit-config> operation, you
must specify the operation target
(on a specified level):
•
If the specified target
exists, the operation
directly changes the
configuration for the target.
•
If the specified target does
not exist, the operation
creates and configures the
target.
To change the buffer size to 120:
<rpc message-id ="101"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0"
xmlns:xc="urn:ietf:params:xml:ns:netconf:b
ase:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<top
xmlns="http://www.h3c.com/netconf/config:1
.0"><Syslog