Previous Topic: Set Up the Trouble Ticket Data Entry Definition

Next Topic: Define Alert Monitor Filters

Implement Trouble Ticket Interface for Multiple Email Addressees

You can use an exit procedure, together with the trouble ticket interface and data entry definitions, to implement an interface that prompts operators for more than one email address.

To implement a trouble ticket interface for multiple email addressees

  1. Create an NCL procedure with the following statements, and save it to your TESTEXEC:
    &IF .&$USRNAME1 NE . &THEN +
    &$AMTADDRESS1 = &$USRNAME1
    &IF .&$USRNAME2 NE . &THEN +
    &$AMTADDRESS2 = &$USRNAME2
    ...
    

    Note: The number of &IF statements sets up the number of addresses you want to provide.

  2. Update the trouble ticket data entry definition with the following fields:
    FIELD NAME=$USRNAME1
    VALUE="&$AMTADDRESS1"
    DESC="EMAIL ADDRESS #1"
    COMMENT=""
    REQUIRED=NO
    LENGTH=40
    FIELD NAME=$USRNAME2
    VALUE=""
    DESC="EMAIL ADDRESS #2"
    COMMENT=""
    REQUIRED=NO
    LENGTH=40
    ...
    

    Notes:

  3. Define the email trouble ticket interface specifying a default address in the Mail Address field and the name of the procedure in the Exit Procedure Name field.

    The trouble ticket interface prompts operators for email addresses when they enter TT next to an alert.

Example: Implement a Trouble Ticket Interface for Two Email Addresses

To create an NCL procedure named EXAMPLE that sends emails to two addresses

  1. Create an NCL procedure named EXAMPLE with the following statements, and save it to the TESTEXEC:
    &IF .&$USRNAME1 NE . &THEN +
    &$AMTADDRESS1 = &$USRNAME1
    &IF .&$USRNAME2 NE . &THEN +
    &$AMTADDRESS2 = &$USRNAME2
    ...
    
  2. Enter /ALADMIN at the prompt.
  3. Select option D - Define Trouble Ticket Data Entry.
  4. Complete the panel as follows:

    PROD-------- Alert Monitor : Trouble Ticket Data Entry Definition ------------- Command ===> Function=Update Scroll ===> CSR ****** ***************************** TOP OF DATA ****************************** 000001 FIELD NAME=$USRNAME1 000002 VALUE="&$AMTADDRESS1" 000003 DESC="EMAIL ADDRESS#1" 000004 COMMENT="" 000005 REQUIRED=NO 000006 LENGTH=40 000007 FIELD NAME=$USRNAME2 000008 VALUE="" 000009 DESC="EMAIL ADDRESS #2" 000010 COMMENT="" 000011 REQUIRED=NO 000012 LENGTH=40 ****** **************************** BOTTOM OF DATA ****************************

  5. Enter /ALTTI at the prompt.
  6. Enter EMAIL in the Interface Type field and press F6 (Action).
  7. Complete the panel as follows:

    PROD--------------- Alert Monitor : Email A Trouble Ticket -Columns 00001 00072 Command ===> Function=Update Scroll ===> CSR Mail Address defaultaddress@tt.com_____________________________ Host Name (IBM) HOSTNAME SMTP Node Name (IBM) NODENAME SMTP Job Name (IBM) SMTP____ SMTP DEST Id (TCPaccess) ________ Exit Procedure Name EXAMPLE_ Subject &$AMDESC__________________________________________ Enter Mail Text Below ****** ***************************** TOP OF DATA ******************************

Result

When an operator enters TT next to an alert, they are prompted for an email address as follows:

PROD--------------- Alert Monitor : Trouble Ticket Details -------------------- Command ===> Email Address #1 ... defaultaddress@tt.com Email Address #2 ...