152
Entering XML view
Task
Command
Remarks
Enter XML view.
xml
Available in user view.
To configure NETCONF in XML view, copy and
paste a NETCONF message to ensure the format
correctness of the NETCONF message. Do not
enter the message manually.
While the device is performing a NETCONF
operation, do not perform any other operations,
such as pasting a NETCONF message or pressing
Enter
.
For the device to identify NETCONF messages,
you must add end mark
]]>]]>
at the end of each
NETCONF message. Examples in this document
do not have this end mark. Do add the end mark in
actual operations.
Exchanging capabilities
After you enter XML view, the client and the device exchange their capabilities before you can
perform subsequent operations. The device automatically advertises its NETCONF capabilities to
the client in a hello message as follows:
<?xml version="1.0" encoding="UTF-8"?><hello
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><capabilities><capability>urn:ietf:pa
rams:netconf:base:1.1</capability><capability>urn:ietf:params:netconf:writable-runnin
g</capability><capability>urn:ietf:params:netconf:capability:notification:1.0</capabi
lity><capability>urn:ietf:params:netconf:capability:validate:1.1</capability><capabil
ity>urn:ietf:params:netconf:capability:interleave:1.0</capability><capability>urn:hp:
params:netconf:capability:hp-netconf-ext:1.0</capability></capabilities><session-id>1
</session-id></hello>]]>]]>
The <capabilities> parameter represents the capabilities supported by the device.
The <session-id> parameter represents the unique ID assigned to the current session.
After receiving the hello message from the device, copy the following message to notify the device of
the capabilities (user-configurable) supported by the client:
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>
capability-set
</capability>
</capabilities>
</hello>
Use a pair of <capability> and </capability> tags to enclose each capability set.
Subscribing to event notifications
After you subscribe to event notifications, the device sends event notifications to the NETCONF
client when a subscribed event takes place on the device. The notifications include the code, group,
severity, start time, and description of the events. The device supports only log subscription. For
Summary of Contents for FlexNetwork 10500 SERIES
Page 224: ...213 ...
Page 311: ...300 Now the system can record log information to the specified file ...