SPECTRUM Event Procedure to pass ifAlias attribute to event varbind
Release: Any
Component:
The following Event Procedure will take the ifAlias attribute (0x11f7e) and populate varbind 111 (U 111) for new event 0xffff0001 when event 0xfff00000 is created. It will also pass all other varbinds associated with event 0xffff0000 to the new event 0xfff00001.
0xfff00000 E 50 P "\
CreateEventWithAttributes( \
{ C CURRENT_MODEL }, \
{ H 0xfff00001 }, \
SetEventAttribute( \
GetEventAttributeList(), \
{ U 111}, \
ReadAttribute( \
{ C CURRENT_MODEL }, \
{ H 0x11f7e} ) ) )"
Use 'CreateEventWithVariables', 'SetEventVariable', and 'GetEventVariableList' instead of 'CreateEventWithAttributes', 'SetEventAttribute', and 'GetEventAttributeList', and respectively.
0xfff00000 E 50 P "\
CreateEventWithVariables( \
{ C CURRENT_MODEL }, \
{ H 0xfff00001 }, \
SetEventVariable( \
GetEventVariableList(), \
{ U 111}, \
ReadAttribute( \
{ C CURRENT_MODEL }, \
{ H 0x11f7e} ) ) )
In the above example, you will need to change the event ID's and possibly the new event varbind in your implementation.
You can use this Event Procedure as a template for passing other attribute values to an event.