Virtual TapeServer 8.3 Supplemental Installation Guide
40 | Virtual TapeServer Supplemental Installation Guide
#SET emphasis -1
#SET evt_text VTSPolicy IDR idrjobname
Here is an explanation of the lines:
#SET collector $0 — Refers to the EMS collector to which to send the message. Change collector to
the name of the collector in the EMS configuration settings on VTS.
#SET evt_num number — Assigns a number to the event.
#SET action -1 — Refers to the way the message is displayed in an EMS viewer, such as ViewPoint. In
this case, it is inverse text until acknowledged.
#SET emphasis -1 — Refers to the way the message is displayed in an EMS viewer, such as
ViewPoint. In this case, it is normal text.
#SET evt_text VTSPolicy IDR idrjobname — Specifies the message to be sent to the EMS collector.
Replace idrjobname with the name of the Instant DR job in VTS.
Add these lines to the end of an existing obey script or schedule it from Batchcom.
When the script runs, the following is sent in the EMS message:
#PUSH evt_x evt_error req_error req_read req_prompt
#PUSH action_id collector
#LOAD /LOADED evt_x/ $system.zspidef.zemstacl
#LOAD /LOADED evt_x/ $system.zspidef.zspitacl
#LOAD /LOADED evt_x/ $system.zspidef.ztactacl
#LOAD /LOADED evt_x/ $system.zspidef.ztaptacl
#DEF evt_buf STRUCT BEGIN BYTE b(1:3000); END;
#SET collector $0
#SET action_id 0
#SET evt_error [#REQUESTER /WAIT/ READ [collector] req_error req_read req_
prompt]
#PUSH evt_num action emphasis evt_text text_len
#SET evt_num number
#SET action -1
#SET emphasis -1
#SET evt_text VTSPolicy IDR idrjobname
#SET text_len
#SET evt_error [#EMSINIT evt_buf [ZEMS^VAL^EXTERNAL^SSID] [evt_num]
ZEMS^TKN^TEXT [
#charcount evt_text] [evt_text]]
#SET evt_error [#SSPUT evt_buf ZEMS^TKN^EMPHASIS [ZSPI^VAL^TRUE]]
#SET evt_error [#SSPUT evt_buf ZEMS^TKN^ACTION^NEEDED [ZSPI^VAL^TRUE]]
#APPENDV req_prompt evt_buf