Text Property Examples

Examine the following two examples to see how substitution is used in the Text property.

Text Example 1

The Text property has the following value:

\_TEXT\: This needs attention!\r

Assume the TEXT attribute from the event report contains

This text has a backslash reference\n

The resulting message follows. The \n in the text that was substituted is not converted to a new line character, but the \r in the Text property value is converted to a carriage return.

This text has a backslash reference\n: This needs attention!<cr>

Text Example 2

The Text property has the following value:

\_CLASS\:\_INSTANCE\:\_ALERTID\: This needs immediate attention!

Assume the alert event report contains

TYPE=al | CLASS=unix_host | INSTANCE=ja | ALERTID=ualert1 | SEV=major | APPL=myapp | TEXT=system crash

The resulting message is

unix_host:ja:ualert1: This needs immediate attention!