XAC: Example of initiating an XAC command to run EMSDIST on TELSERV or STN service

XAC: Example of initiating an XAC command to run EMSDIST on TELSERV or STN service

If XAC TACL is configured with the TIMEOUT entry and EMSDIST is running on it, but there are no EMS messages during the TIMEOUT period, then XAC will terminate TACL and the EMSDIST.

Below are examples of initiating an XAC command to print EMS messages on a static window without being affected by the TIMEOUT value.

Example: XAC Command to initiate EMSDIST
COMMAND EMSDIST-SVC
 USER GROUP,USER
 USER_IGNORED
 ACL $EVERYONE
 OBJECT $SYSTEM.SYSNN.EMSDIST
 NOBREAK
 NULLNULLSTOP
 CHECKCONNECTION 2000 1000
 STOPONERROR 60,66,140,190,191
 BLANKPASSWORD
 PRI 100
 HIGHPIN
 QUIET
 PERCENT ON

Example: TELSERV Service and Window to print EMS messages through EMSDIST-SVC
TACL> SCF
ADD SERVICE <$telserv-name>.STEMS &
, type       print &
, subtype    static &
, resilient  on &
, autodelete off &
, program    $<vol>.<xygateac>.XYGATEAC &
, param      "EMSDIST-SVC ty p, co $0, te <$telserv-name>.#STEMS" &
, cpu        1 &
, pri        100 &
, access     owner &
, owner     "<group-name.user-name, such as, sgrp.susr>"

ADD WINDOW   <$telserv-name>.#STEMS, servicename "STEMS", servicetype PRINT
START WINDOW <$telserv-name>.#STEMS

Example; Printing EMS messages on a TELSERV static window after authentication.
TELSERV - T9553J01 - (25JUN2009)

Available Services:
TACL EXIT
Enter Choice> STEMS
login: sgrp.susr
Password:

23-04-17 01:00:02 \NODE123.2,501 TANDEM.EMS.H01 000512 $LSN01: fd 45 port 7003 got connection from 10.12.34.56 (55555)




Below are examples of initiating an XAC command to print EMS messages on an STN window without being affected by the TIMEOUT.

Example: STN Service
TACL> STNCOM $PTY01
ADD SERVICE STEMS,TYPE DYNAMIC,PROG $<vol>.<xygateac>.XYGATEAC,LOGON REQ,PRI 100,PARAM "EMSDIST-SVC TY P,CO $0,TE @W"

Example: SSH SYSTEM-USER at SSHCOM
  ALLOW-SHELL YES
  SHELL-PROGRAM *MENU*
  SHELL-COMMAND *NONE*
  SHELL-ENVIRONMENT *NONE*
  ALLOW-CI YES
  ALLOW-CI-PROGRAM-OVERRIDE YES
  CI-PROGRAM *MENU*
  CI-COMMAND *NONE*
  ALLOW-PTY YES
  PTY-SERVER $PTY01
  ALLOW-TCP-FORWARDING YES
  ALLOWED-SUBSYSTEMS (sftp,tacl)
  SUBSYSTEM-MAPPING *NONE*

Example; Printing EMS messages on an STN window
STN00 Connected to STN B53 2023/04/17 04:43 \NODE123.$PTY01.#ZWN0039
STN46 Secure SSH session: xterm-256color keyboard-interactive aes128-ctr hmac-sha2-256
STN81 Client IP address: 10.23.45.67 port 7890
STN82 SSH external user sgrp.susr, Guardian system user sgrp.susr

STN02 Services: TACL      STEMS     EXIT

Enter Choice> stems
STN48 Service STEMS
STN20 Starting Dynamic Service application
STN72 Using userid from SSH
STN44 Application $X1W1 has connected to this window
23-04-17 04:45:20 \NODE123.0,1043    TANDEM.EMS.L02        000512 $LSN00: fd 11
                                    port 33333 got connection from 10.23.45.123
                                    (22222)