SPECTRUM Event Procedure to pass ifAlias attribute to event varbind

book

Article ID: 51929

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

SPECTRUM Event Procedure to pass ifAlias attribute to event varbind

Environment

Release: Any
Component:

Resolution

The following Event Procedure will take the ifAlias attribute (0x11f7e) and populate varbind 111 (U 111) for new event 0xffff0001 when event 0xffff0000 is created. It will also pass all other varbinds associated with event 0xffff0000 to the new event 0xffff0001.

 

0xfff0000 E 50 P "\
  CreateEventWithAttributes( \
    { C CURRENT_MODEL }, \
    { H 0xffff0001 }, \
    SetEventAttribute( \
      GetEventAttributeList(), \
      { U 111}, \
      ReadAttribute( \
        { C CURRENT_MODEL }, \
        { H 0x11f7e} ) ) )"

Additional Information

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.