NET/MASTER Network Control Language (NCL) Reference Manual
EMSALERT
Verbs
3–52 106126 Tandem Computers Incorporated
Considerations
The &SYS.FDBK system variable is set after execution with the following values:
Return Code Meaning
0 The message was sent successfully.
8 The specified link or domain was not found.
12 The ISR link was not enabled for outbound EMS traffic.
16 Shortage of storage—message not sent.
20 ISR Queue overflow—message not sent.
28 ISR internal error.
The EMSALERT verb does not pass any messages through the EMS collector
(default $0). This is in contrast to the EMSSEND verb. You can use EMSALERT to
test EMS type communication or to communicate with EMSPROC.
See also EMSCONT, EMSDEL, EMSREAD, and EMSSEND.
For more information on the Event Management Service (EMS) verbs, refer to the
NonStop NET/MASTER NCL Programmer's Guide, which also contains examples
that use these verbs.
Examples
The following example sends the EMS alert “Area 3 Recovered OK” on the link
CENTRAL:
EMSALERT LINK=CENTRAL TEXT=Area 3 Recovered OK
SSID=USER.50.50 EVENTNUM=5
In the following example, SPI tokens with the prefix &$EMS. are automatically
constructed with the contents defined later for SSID and EVENTNUM. The variable
&$EMS.TEXT is also set to contain NNM9999, followed by the words “SOME TEXT”:
EMSALERT TEXT=“SOME TEXT” SSID=TANDEM.NNM.D30 EVENTNUM=9999
The following example achieves the same result as the previous example, except that
the tokens have the prefix &ABC., and all tokens must be explicitly assigned by the
user:
ASSIGN MDO=&ABC. MAP=$MSG
*/....assign tokens and message variables here..../*
EMSALERT MDO=&ABC