Examples
The section provides the examples related to the Substation ES commands.
Example 1
The following example shows how to send multiple Substation ES commands to a Substation ES running system.
The following example issues Substation ES commands, refreshes a recipe, waits for five seconds, disconnects the CICS Interface from the CICS region, and waits for 10 seconds. It then repeats the reconnect of the Substation ES CICS Interface to the CICS region three times, waiting for two seconds between each occurrence.
USER TIBCO PSWD password DEST-SEND-DEFAULT tibss.admin.sxs.request FLD STR,SXS-COMMAND,"REFR,RID=Admin-Recipe" WAIT 5 END DEST-SEND-DEFAULT tibss.admin.sxs.request FLD STR,SXS-COMMAND,"DISCONN,INTF=IICICS" WAIT 10 END REPEAT 3 WAIT-ON-REPEAT 2 DEST-SEND-DEFAULT tibss.admin.sxs.request FLD STR,SXS-COMMAND,"CONN,INTF=IICICS" END /*
Example 2
The following ones are examples showing how to send Substation ES commands to different Substation systems.
- Send a show counters command for Substation ID
SS-ES-4-TEST:
USER TIBCO PSWD password DEST-SEND-DEFAULT tibss.admin.sxs.request FLD PROP,tibss-ss-id,"SS-ES-4-TEST" FLD STR,SXS-COMMAND,"SHOW,COUNTERS" END /*
- Send a show active listeners command for Substation ID
SS-ES-4-PROD:
USER TIBCO PSWD password DEST-SEND-DEFAULT tibss.admin.sxs.request FLD PROP,tibss-ss-id,"SS-ES-4-PROD" FLD STR,SXS-COMMAND,"SHOW,ACT,LSNS" END /*
Copyright © Cloud Software Group, Inc. All rights reserved.