How to pass a SPECTRUM attribute to an event varbind using an Event Procedure (Legacy KB ID CNC TS31036 )

Document ID : KB000051932
Last Modified Date : 14/02/2018
Show Technical Document Details
The following example will pass the Notes attribute for the model to a varbind that can then be inserted into the Event Format file:


0xffff0000 E 50 P " \
  CreateEventWithAttributes( \
    { C CURRENT_MODEL }, \
    { H 0xffff0001 }, \
    SetEventAttribute( \
          GetEventAttributeList(), \
          { U 20 }, \
          ReadAttribute( \
             { C CURRENT_MODEL }, \
             { H 0x11564 } )))"


The above example should put the ?Notes? attribute (0x11564, received from the ?current? model (the one which the event was generated on)) into the event varbind with id 20 (SetEventAttribute), and also copy the rest of the original events (0xffff0000) attribute list (GetEventAttributeList). It will then create a new event (0xffff0001, CreateEventWithAttributes) on the same model.


For more information on Event Procedures, please reference the SPECTRUM 9.0 Event Configuration User Guide.



Related Issues/Questions:
How to pass a SPECTRUM attribute to an event varbind using an Event Procedure

Problem Environment:
SPECTRUM 08.01.00.00
SPECTRUM 09.00.00.00
Event Procedure
SPECTRUM 08.01.00.00 introduced new functionality called Event Procedure. Using an Event Procedure, you can pass the value of a SPECTRUM attribute to a varbind for the model the event is being generated on.

Additional Information:
Event codes, varbind id's and attribute id's will need to be customized according to your own needs.


(Legacy KB ID CNC TS31036 )