Verifying the configuration, Performing service operations, Performing the get/get-bulk operation – H3C Technologies H3C MSR 5600 User Manual
Page 151
138
Verifying the configuration
If the client receives the following response, the lock operation is successful:
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
If another client sends a lock request, the device returns the following response:
session.
The output shows that the lock operation failed because the client with session ID 1 held the lock, and
only the client holding the lock can release the lock.
Performing service operations
You can use NETCONF to perform service operations on the device, such as retrieving and modifying the
specified information. The basic operations include get, get-bulk, get-config, get-bulk-config, and
edit-config, which are used to retrieve configuration data, retrieve all information, and edit the data of the
specified module. For more information, see RFC 4741 and the XSD document.
Performing the get/get-bulk operation
The get operation is used to retrieve device configuration and state information.
The get-bulk operation is used to retrieve a number of data entries starting from the data entry next to the
one with the specified index. One data entry contains a device configuration entry and a state
information entry. The data entry quantity is defined by the count attribute, and the index is specified by
the index attribute. The returned output does not include the index information. If you do not specify the
index attribute, the index value starts with 1 by default. If you do not specify the count attribute or the
number of matched data entries is less than the value of the count attribute, the operation retrieve all the
rest data entries starting from the data entry next to the one with the specified index.
The get operation retrieves all data that matches the conditions, and the get-bulk operation retrieves the
specified number of data entries starting from the data entry next to the one with the specified index.
# Copy the following text to the client to perform the get operation.