INGALERT Command

You can use the INGALERT command to inject alerts into a system. This can be from either the NetView automation table, an automation procedure, or the command line.

You can specify the following parameters:

  • A resource name , the text MVSESA, or a job or subsystem name.
  • The alert ID, for example, CS_PROBLEM, CMD_FAILED, and so on.
  • A message ID that identifies the message text or a text string that is passed to the notification target.
For example, the following can be used from the command line or an automation procedure:
INGALERT MYGRP/APG/SYS1 ID=MYALERT TEXT=(MYGRP HAS A PROBLEM)

In this example, INGALERT uses the alert ID, MYALERT, to obtain additional parameters via a matching code definition for the message ID INGALERT, and it uses the TEXT parameter value for the alert text.

The following can be used from the NetView automation table to send an alert whenever message ABC123I is issued:
IF MSGID=’ABC123I’
THEN
EXEC(CMD(’INGALERT’));

INGALERT uses ABC123I as the alert ID and the complete text of message ABC123I as the alert text. The resource parameter of INGALERT is defaulted to the job name of the subsystem that issued the message.

See IBM Z® System Automation Programmer's Reference for more information about the INGALERT utility.