KB Article #181131
A Primer on Emergency Handling
What is Emergency Handling?
The method that ensures that events and results are not lost if they are exchanged at a later date after a malfunction or interruption in the connection between the slave and master systems.
Where are events and results stored if they can't be interchanged between the master and slave?
When an event or result can't be sent to the master, it is written in a specific file depending on the type of slave. After a few seconds, the emergency handler tries to send it to the master and repeats every minute until successful.
Where is Emergency Handling logged?
Each attempt by the emergency handler is mentioned in the slave's particular log book.
edislave
Location of results/events is one file containing all events/results: $ACTISEDI/spool/emergency/file or file.snd
Slave log book: $ACTISEDI/spool/runtime/logb.slave; when rotated, their names change to slv??????.???
Log message example written when the emergency handler makes a regular attempt to send to the master:
E 56934 (18.06.2020-15:40:48): emergency handler started
E 56934 (18.06.2020-15:40:48): W-ESL 11002: Kann Result nicht an Master senden.
E 56934 (18.06.2020-15:40:48): R ANSWER: 0 Status: 2/nicht gesendet/gespeichert INIT: 6640467.2.1.0.1.1.0
E 56934 (18.06.2020-15:40:48): beendet.
as
Location of events/results is $ACTISEDI/spool/runtime where each event/result has a file that begins with "jresult". Example: jresult59253.61484.1.1.0.1.1.0
Slave log book: $ACTISEDI/spool/runtime/logb.jslave
Log message example written when the emergency handler makes a regular attempt to send to the master:
[JSLAVE.EmergHandl] 2020-07-13 18:54:25,735 INFO :Java Emergency Handler starts sending data: 1 Events/Results of 1 entries.
[JSLAVE.EmergHandl] 2020-07-13 18:54:25,738 ERROR:Cannot send function handler result/event ''., java.net.ConnectException: Connection refused (Connection refused)
is
Location of events/results is $ACTISEDI/spool/runtime/is? where each event/result has a file that begins with "result". Example: result3.61486.1.1.0.1.1.0
Slave log book: $ACTISEDI/spool/runtime/is?/logb.jslave
Log message example written when the emergency handler makes a regular attempt to send to the master:
[JSLAVE.EmergHandl] 2020-07-15 20:18:26,234 INFO :Java Emergency Handler starts sending data: 1 Events/Results of 1 entries.
[JSLAVE.EmergHandl] 2020-07-15 20:18:26,242 ERROR:Cannot send function handler result/event ''., java.net.ConnectException: Connection refused (Connection refused)