Spectrum Event Procedure to forward event from an Application model to the associated Device model (Legacy KB ID CNC TS33071 )

Document ID : KB000051787
Last Modified Date : 14/02/2018
Show Technical Document Details
Related Issues/Questions:
Spectrum Event Procedure to forward event from an Application model to the associated Device model

Problem Environment:
Spectrum 08.01.00.00
Spectrum 09.00.00.00
Spectrum 09.01.00.00
Spectrum 09.01.01.00
Event Procedure
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.


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.




(Legacy KB ID CNC TS33071 )