Previous Topic: EXTRACT Macro

Next Topic: GETSTAT Macro

GENALERT Macro

The GENALERT macro generates an alert for display on the alert monitor. The parameter definition comprises two panels. You must complete the Reference field on the Alert Attributes panel and the Alert Text field on the Alert Definition panel.

If you need to implement a process that generates variations of an alert, you can pass new GENALERT parameter values to the process to create the variations. The passed values override the values specified in the macro. You do not need to create a process for each variation of the alert.

You can specify what actions to take when the alert is raised. To specify actions, press F10 (Actions).

Parameters: GENALERT Macro

Reference

Identifies the alert.

To override this value, specify ALRTREF=alert-reference as a process parameter.

Severity

Specifies the importance of the alert. The valid values are 1 through 4. Severity 1 alerts are most important and severity 4 alerts are least important.

To override this value, specify ALRTSEV=alert-severity as a process parameter.

Origin

Specifies the source of the alert.

To override this value, specify ALRTORIGIN=alert-origin as a process parameter.

Alert Description

Specifies the text that describes the alert condition.

To override this value, specify ALRTDESC=description as a process parameter.

Alert Text

Provides a detailed description of the alert condition.

To override this value, specify ALRTTEXTn=alert-text-n (where n is 1 through 5, representing the five lines of text) as process parameters for the lines you want to override.

Alert Recommended Action

Specifies the actions that can be performed to remove the alert condition.

To override this value, specify ALRTACTNn=action-line-n (where n is 1 through 4, representing the four lines of the recommended action) as process parameters for the lines you want to override.

Example: GENALERT Macro

In the following example, the GENALERT macro generates the following UPSALERT9001 alert to remind the operator to test the uninterruptible power supply (UPS):

Test UPS

PROD----------------- EventView : Alert Attributes ---------------------------- Command ===> Function=BROWSE . Alert Reference Key --------------------------------------------------------. | | | Reference ... UPSALERT9001 | | | ’-----------------------------------------------------------------------------’ . Alert Attributes -----------------------------------------------------------. | | | Severity .... 4 | | Origin ...... ALERTMACRO |

PROD----------------- EventView : Alert Definition ---------------------------- Command ===> Function=BROWSE . Alert Description ----------------------------------------------------------. | | | TEST UPS | ’-----------------------------------------------------------------------------’ . Alert Text -----------------------------------------------------------------. | | | UPS MAINTENANCE | | | | | | | | | ’-----------------------------------------------------------------------------’ . Alert Recommended Action ---------------------------------------------------. | | | TEST THE UPS WHEN THERE ARE NO CRITICAL SYSTEM ACTIVITIES. | | | | | | | ’-----------------------------------------------------------------------------’ F1=Help F2=Split F3=Exit F7=Backward F9=Swap F10=Actions F11=Panels