Spectrum Event Procedure to forward event from an Interface model to the associated Device model

book

Article ID: 51819

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

Spectrum Event Procedure to forward event from an Interface model to the associated Device model


Sometimes it is desirable to have an event or alarm originally configured to be asserted on an Interface model be asserted on the associated device model instead. The main reasons are the Spectrum users may not be familiar with the Interface model but are familiar with the Device model. Another is a ticketing system may require the ticket be created on the associated device model.

Environment

Release: Any
Component:

Resolution

The following is an example of an Event Procedure that will take an event from an Interface model and forward it to the associated Device model using the Device_Mdl_Handle attribute 0x10069  (which contains the value of the device model handle associated with the Interface model) from the Interface model and create a new event on the associated Device model.

 

0xffff0000 E 50 P " \
  CreateEventWithAttributes( \
    ReadAttribute( \
          { C CURRENT_MODEL }, \
          { H 0x10069 } ), \
    { H 0xffff0001 }, \
    GetEventAttributeList() )"

 

This would transfer the event 0xffff0000 from the interface model to the device, as event 0xffff0001. All varbinds from the original event 0xffff0000 will also be present on event 0xffff0001 on the device.