157
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<rpc-error>
<error-type>protocol</error-type>
<error-tag>lock-denied</error-tag>
<error-severity>error</error-severity>
<error-message xml:lang="en"> Lock failed because the NETCONF lock is held by another
session.</error-message>
<error-info>
<session-id>1</session-id>
</error-info>
</rpc-error>
</rpc-reply>
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 all data, retrieve configuration data, and
edit the data of the specified module. For more information, see the NETCONF XML API reference
for the device.
NOTE:
During a get, get-bulk, get-config, or get-bulk-config operation, NETCONF replaces unidentifiable
characters in the retrieved data with question marks (?) before sending the data to the client.
Performing the get/get-bulk operation
The get operation is used to retrieve device configuration and state information that match the
conditions. In some cases, this operation leads to inefficiency.
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.
The get-bulk operation retrieves all the rest data entries starting from the data entry next to the one
with the specified index if either of the following conditions occurs:
•
You do not specify the
count
attribute.
•
The number of matching data entries is less than the value of the
count
attribute.
# Copy the following text to the client to perform the get operation:
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="100" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<
getoperation
>
<filter>
<top xmlns="http://www.hp.com/netconf/data:1.0">
Specify the module, submodule, table name, and column name
</top>
Summary of Contents for FlexNetwork 10500 SERIES
Page 224: ...213 ...
Page 311: ...300 Now the system can record log information to the specified file ...