12.3.3 Identifying the Sink for an Outbound StreamBefore setting up the outbound stream, decide how you want to identify the associated local or remote event sink. The sink's identifying characteristics can be any of the following parameters to the set command:
DECdns Object Name
If .ADMIN.EVENT_SINKS.SINK_A is the DECdns object name for the sink associated with the netmgr1_obs outbound stream, the following example shows the set command used to form the affiliation:
You should identify network components by their DECdns object name. If the location of a sink object defined in the DECdns namespace changes, the namespace administrator can easily update information about the change by modifying the object's single entry in the DECdns namespace. For more information, see the DECnet-Plus DECdns Management guide. Also see Section 12.3.9 for related information about the set object name command used with the corresponding event sink.
DECdns Node Name
If you choose not to define a DECdns object entry for a sink, use the sink node name and end-user specification, or use the sink address. For example:
In the previous example, leaving sink node 0 (zero) indicates that the event sink resides on the local system. If the event sink resides on a system that is different from the outbound stream's system, specify the full DECdns node name. The end-user specification for the sink consists of one of the following:
The end-user specification corresponds to the object number or name, and defaults to the standard event sink supplied on the node. You must specify a matching end-user specification on the event sink to associate the outbound stream and the event sink. For more information about matching end-user specifications for outbound streams and sinks, see Section 12.3.10.
Session Control Towers
If the event sink resides on a system that is different from the outbound stream's system, you can specify the remote sink by specifying the session control towers (sink address) of the remote node. To find the towers of the destination sink node, enter the following NCL command on that node:
If the event sink resides on the same (local) node as the outbound stream, set the sink node using either the node's full DECdns node name, or enter 0, which indicates the local node. For example:
If neither the sink node nor sink address attributes
has been set, the events for this outbound stream will be logged to the
local node sink by default.
The following example creates an event sink named netmgr1_sink_a:
12.3.5 Setting Up Event Sink FiltersIn most cases, the event filters defined on outbound streams sufficiently manage event reports sent to an event sink. By default, the specific and global filters are defined to pass this sink's pseudo-events and the catch-all filter is set to pass. DIGITAL recommends that you define the filters at each source node where the outbound streams reside because, in cases where the source and sink reside on different nodes, setting up filters at the source avoids unnecessary network traffic between the source node and the sink node. Also, a consistent network management policy about where event filtering will occur can avoid confusion, especially when several network managers work throughout the network. You have the option of defining event filters for an event sink. The filters apply to event messages received from all outbound streams that use this sink. That is, you cannot designate selected filter entries corresponding to incoming events from a specific outbound stream. The definition of event filters for event sinks is similar to the process used with outbound streams. See Section 12.2 and Section 12.3.14 for related information. In the following example, assume that 10 outbound streams from 10 different systems let the station running event from all hdlc link logical station entities pass into the event stream sent to a sink called netmgr1_sink_b. If you decide this information is not important for the final report, you can filter it out. For example:
12.3.6 Testing Event Sink FiltersOnce you have set up the event filter for an event sink, use the testevent command to check that the filter works according to your plan. The testevent command returns a message specifying the action of the filter used. See the following example:
The testevent command might reveal an error in your logic
about event filtering for this event sink. If this occurs, see
Section 12.3.7.
The specific and global filter trees can only be modified by the pass, block and ignore directives. You can enter a new definition for the event. The new definition supersedes any previous definitions. To delete the previous filter values you set and reinitialize them to their default values when the event sink was created, use the following command:
See Section 12.3.15.1 for related information.
12.3.8 Specifying the Event Report DestinationAfter a sink receives and filters an event, the event message is queued to the sink client. The sink client delivers the event message as an event report to a specified destination. The client type characteristic can be set only when the event dispatcher sink entity is disabled (that is, when the sink state is off). Attempts to set the characteristic when the sink state is on result in an error message. DECnet-Plus provides three types of sink clients or destinations:
12.3.9 Using a DECdns Namespace Object Name with a SinkThe DECdns namespace administrator can use option 10 of the decnet_register utility to register each event sink as an object in the namespace. For more information about the registration process, refer to the DECnet-Plus DECdns Management. Once the event sink is defined as an object in the namespace, you can use the set command so that the DECnet-Plus Session Control layer on the sink node can deliver incoming event messages sent by outbound streams that used the DECdns object name for the sink. For example, if .admin.event_sinks.primary_sink is the object name in the namespace for an event dispatcher sink netmgr1_sink_a entity:
12.3.10 Setting an End-User Specification for a SinkFor the event sink, you must set an end-user specification, which can be one of the following:
The default is number = 82. Make sure that the end-user specification for both the sink and outbound stream match. On an OpenVMS system, if you issue the following command on system .admin.finance, you need to issue an additional command to associate the sink and the outbound stream when setting up the outbound stream.
The following example shows how to issue the additional command. Specify the system where the sink is located and the same end-user name as specified for the sink.
12.3.11 Modifying the Display of Event UIDsYou can disable the display of UIDs as part of an event message by setting the displayUIDs attribute to false. For example:
Use the following command to enable the display of UIDs:
12.3.12 Enabling an Event SinkUse the enable command to start an event sink that is ready to accept event messages from its outbound stream(s).
If you receive an invalid name exception while attempting to enable an event sink, it indicates a problem with the defined object name characteristic. Compare the value of this parameter (using a show command in NCL) with the actual object's name in the DECdns namespace. Use Option 10 of decnet_register to examine the namespace (for more information, refer to the DECnet-Plus DECdns Management guide). The event sink generates events when it is enabled. By default, all events generated by some event dispatcher subentities, such as event sinks and outbound streams, are blocked by the sink's global filters (as is the case with outbound stream global filters). On the other hand, the specific filter for subentities such as the sink or outbound stream pass events from only that instance of the sink or outbound stream. That is, netmgr1_sink_a passes events from netmgr1_sink_a, but from no other sink. If you have set up your sink's filters to pass all event dispatcher sink events you might see various events posted when you enable the sink. A sink always posts events directly to its sink client even if you do not have an outbound stream defined. If you have both sides of an event stream on the same node, you might see sink events posted twice: Once when the sink posts them to the client and again when the outbound stream delivers the event to the sink. The sink probably will not generate many events. You can, however, eliminate redundant events by blocking the sink events at the outbound stream. For example:
You should block sink events at the outbound stream because:
12.3.13 Creating an Outbound Stream EntityThe following example creates a user-specified outbound stream named netmgr1_obs.
12.3.14 Setting Up Outbound Stream Event FiltersIf you create an outbound stream and accept all the default settings, the filter's specific setting is set to pass events generated by that outbound stream. The global setting is set to block for all events generated by event dispatcher entities. The filter's catch-all setting is set to pass. For more information about using event filters, see Section 12.2. To identify events to filter for specific entity instances, define entries at the specific level. Define entries at the global level to filter for certain events, or all events, for an entity class. See the following example:
The following is another example of filtering. It defines an additional outbound stream on the system and reports events from OSI transport entities.
|
|