Verifying the configuration – H3C Technologies H3C S6300 Series Switches User Manual
Page 248

235
•
If only the index column is provided, the operation retrieves the data for all columns. If the index
column and other columns are provided, the operation retrieves the data for the index column and
the specified columns.
The <get> and <get-bulk> messages are similar. A <get-bulk> message carries the count and index
attributes. The following is a <get-bulk> message example:
<?xml version="1.0" encoding="UTF-8"?>
<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-bulk>
<filter type="subtree">
<top xmlns="http://www.h3c.com/netconf/data:1.0"
xmlns:base="http://www.h3c.com/netconf/base:1.0">
<Syslog>
<Logs xc:count="5">
<Log>
<Index>10</Index>
</Log>
</Logs>
</Syslog>
</top>
</filter>
</get-bulk>
</rpc>
Where, the count attribute complies with the following rules:
•
The count attribute can be placed in the module node and table node. In other nodes, it cannot be
resolved.
•
When the count attribute is placed in the module node, a descendant node inherits this count
attribute if the descendant node does not contain the count attribute.
Verifying the configuration
After receiving the get-bulk request, the device returns a response in the following format if the operation
is successful:
<?xml version="1.0"?>
<rpc-reply message-id="100"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<data>
Device state and configuration data
</data>
</rpc-reply>
Performing the get-config/get-bulk-config operation
The get-config and get-bulk-config operations are used to retrieve all non-default configurations, which
are configured by means of CLI and MIB. The <get-config> and <get-bulk-config> messages can contain
the <filter> element for filtering data.
The <get-config> and <get-bulk-config> messages are similar. The following is a <get-config> message
example: