We¹re doing this with event procedures. You¹ll need to combine several
procedures to fill in the alarm title variable 0x12b4c we¹ve been
discussing. Here¹s a short example where 0xffff0001 is the raw event coming
in, and 0xffff0002 is the event that you¹ll use to create your alarm.

0xffff0001 P "CreateEventWithAttributes( \
                    {C CURRENT_MODEL}, \
                    {H 0xffff0002}, \
                    SetEventAttribute( \
                        GetEventAttributeList(), \
                        { H 0x12b4c }, \
                        Append ( \
                            Append ( \
                                GetEventAttribute( {U 2} ), \
                                { S \" \" } \
                            ), \
                            GetEventAttribute( {U 3} ) \
                        ) \
                    ) \
                )"
0xffff0002 E 50 A,3,0xffff0002

This sets the title to a concatenation of var 2 and var 3, with a space in
between. Event procedures are very arcane, poorly documented, and hard to
debug, but they¹re the only way to perform event modifications like this.

HTH,
Jim



On 7/23/10 9:55 AM, "Saurabh Bohra" <[email protected]> wrote:

> Hello All,
> 
> Environment: SPECTRUM 9.2 on Windows 2008
> 
> I want to have alarm title based on concatenation of a static text and
> the trap varbind.
> 
> As an example: A trap with 5th varbind contains a string "ABC is not running"
> or "XYZ is stopped". I want to display the Alarm Title as follows (having
> static text "Process Down:"):
> 
> Process Down: ABC is not running
> or 
> Process Down: XYZ is stopped
> 
> ===================================
> 
> Concatenation of two or more trap varbind.
> 
> As an example: A trap with va22 contains a string "CPU Utilization exceeded"
> and var3 contains the current value say "87" as:
> 
> CPU Utilization exceeded 87
> 
> Thanks in advance.
> Saurabh
> *  --To unsubscribe from spectrum, send email to [email protected] with the
> body: unsubscribe spectrum [email protected]
> 


---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to