Basically you will need to pass the varbind into the dynamic alarm variable to be displayed as alarm title.
Please take a look at CA Spectrum guide:
Working with Events and Alarms - CA Spectrum - 10.2 to 10.2.2 - CA Technologies Documentation
Creating Dynamic Alarm Title
The alarm title is taken from the PCause files ($SPECROOT/SG-Support/CsPCause).
In OneClick, whenever the dynamic alarm title attribute has any value, the dynamic string is displayed instead of the static alarm title from the probable cause file. If there is no value in the dynamic alarm title attribute, the static alarm title is displayed by default, .
You can use the dynamic alarm title variable to create a dynamic alarm title. The dynamic varbind id is 76620 (or 0x12b4c). Once you set the dynamic alarm title variable, you see more information about the alarm in the title. To use the functionality, you can create an event which has that varbind set to any value for e.g. by mapping a trap variable to that ID in an alert map file. You can also copy some other event variable through an event rule, and then map the event to an alarm using that ID as a discriminator.
Example: Create a Dynamic Alarm Title
You can either create 0x050e1106 through an alert map or through the condition rule. This example maps an alert to an event, copying over one alert variable (1.3.6.1.10.1.2) as a dynamic alarm title. The dynamic varbind id is 76620 (or 0x12b4c).
1.3.6.1.4.4.1.6.3 0x050e1106 1.3.6.1.4.1.10.1.1(1,0)\ 1.3.6.1.4.1.10.1.2(76620,0)
You can also use an event rule to copy over a varbind (here ID 7 from event 0xffff0000) to be used as dynamic title id in the new event (0x050e1106).
0xffff0000 E 50 R CA.EventCondition, “default”, “0x050e1106 7:76620”
For both cases, you can create a minor alarm which shows the dynamic title, discriminating on the dynamic value ID. This condition shows an individual alarm for each value.
0x050e1106 E 50 A 1,0x 050e1106, 76620
Example: Clear a Dynamic Alarm Title
This example shows how to clear a dynamic alarm title using the Dynamic ID value.
0x050e1107 E 50 C 0x050e1106, 76620
Note: You do not have to use the dynamic alarm title attribute as discriminator. In this case, there is only one alarm, with one title, with the value from the first event which created the alarm. All subsequent events are attached to that alarm, even when you have different dynamic title values. If they use the discriminator, then they get one alarm per title value. This variable uses the regular discriminator feature.
Also take a look at the following KB documents and CA Community posts for some examples:
Dynamic Alarm Title Configuration for Border Gateway Protocol (BGP) Alarms
How to pass CPU Utilization and Threshold values to Alarm title for a CPU alarm
Hi, really need some help with Dynamic Alarm Title
Event Procedure for dynamic alarm title
Thanks,
Silvio