Spectrum Event Procedure to forward event from an Application model to the associated Device model
search cancel

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

book

Article ID: 51787

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

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

Environment

Release: 21.x, 22.x

Resolution

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


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

OBS: here we are considering the 0xffff0000 as the event generated on the Application Model.

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

 

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