How to check whether AutoSys is running in Single node or HA/Dual mode using a command?

Document ID : KB000050585
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

I'd like to be able to run a command on the server and work out whether the server is running in single or dual EP mode.

I don't want to rely on looking or running 'grep' commands through log files.

Solution:

The best solution is to run "chk_auto_up" which will provide the following "return code's:

Return Codes:

0      Event Processor not running; No Event Server.
1      Event Processor not running; Event Server up.
2      Event Processor not running; Primary and Dual-Event Servers up.
10     Event Processor up; Event Server name invalid, probably because the Event Server (EventServer parameter in the configuration file) was correct
       when the event processor was started, but was corrupted before you ran: chk_auto_up.
11     Event Processor up; Event Server up.
12     Event Processor up; Primary and Dual-Event Servers up.
20     Shadow Event Processor up; Event Server name invalid (see return code 10).
21     Shadow Event Processor up; Primary Event Processor not running; Event Server up.
22     Shadow Event Processor up; Primary Event Processor not running; Primary and Dual-Event Servers up.
30     Primary and Shadow Event Processors up; Event Server name invalid (see return code 10).
31     Primary and Shadow Event Processors up; Event Server up.
32     Primary and Shadow Event Processors up; Primary and Dual-Event Servers up.
50     Event Processor "not running" because could not connect to machine in the EDMachines list in the AutoSys configuration file; No Event Server.
51     Event Processor "not running" (see return code 50); Event Server up.
52     Event Processor "not running" (see return code 50); Primary and Dual-Event Servers up.
60     Event Processor "not running" because no machines listed in the EDMachines list in the AutoSys configuration file; No Event Server.
61     Event Processor "not running" (see return code 60); Event Server up.