
254
Appendix
Appendix A Supported NETCONF operations
lists the NETCONF operations available with Comware 7.
Table 30 NETCONF operations
Operation Description
XML
example
get
Retrieves device configuration
and state information.
To retrieve device configuration and state information
for the Syslog module:
<rpc message-id ="101"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0"
xmlns:xc="http://www.h3c.com/netconf/base:
1.0">
<get>
<filter type="subtree">
<top
xmlns="http://www.h3c.com/netconf/data:1.0
">
<Syslog>
</Syslog>
</top>
</filter>
</get>
</rpc>
get-config
Retrieves the non-default
configuration data. If non-default
configuration data does not
exist, the device returns a
response with empty data.
To retrieve non-default configuration data for the
interface table:
<rpc message-id ="100"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0"
xmlns:xc="http://www.h3c.com/netconf/base:
1.0">
<get-config>
<source>
<running/>
</source>
<filter type="subtree">
<top
xmlns="http://www.h3c.com/netconf/config:1
.0">
<Ifmgr>
<Interfaces>
<Interface/>
</Interfaces>
</Ifmgr>
</top>
</filter>
</get-config>
</rpc>