Subscribing To Event Notifications; Subscription Procedure - HP 5920 Configuration Manual

Table of Contents

Advertisement

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>
Where, capability-set represents the capabilities supported by the client. Use a pair of <capability> and
</capability> tags to enclose a capability.

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.
A subscription takes effect only on the current session. If the session is terminated, the subscription is
automatically canceled.
You can send multiple subscription messages to subscribe to notification of multiple events.

Subscription procedure

# Copy the following message to the client to complete the subscription:
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="101" xmlns ="urn:ietf:params:xml:ns:netconf:base:1.0">
<create-subscription
<stream>NETCONF</stream>
<filter>
</filter>
<startTime>start-time</startTime>
<stopTime>stop-time</stopTime>
</create-subscription>
</rpc>
Where:
The <stream> parameter represents the event stream type supported by the device. Only
NETCONF is supported.
The <event> parameter represents an event which you have subscribed to.
The <code> parameter represents a mnemonic symbol.
The <group> parameter represents the module name.
xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<event xmlns="http://www.hp.com/netconf/event:1.0">
<Code>code</Code>
<Group>group</Group>
<Severity>severity</Severity>
</event>
245

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5900

Table of Contents