How can I find out thru a command if the DE server is the PRIMARY node or the STANDBY mode in a High Availability environment
search cancel

How can I find out thru a command if the DE server is the PRIMARY node or the STANDBY mode in a High Availability environment

book

Article ID: 185762

calendar_today

Updated On:

Products

CA Workload Automation DE - Business Agents (dSeries) CA Workload Automation DE DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries) CA Workload Automation DE - Scheduler (dSeries)

Issue/Introduction

If I do not have access to the Desktop Client, is there another way to find out which DE server is acting as PRIMARY server and which is the STANDBY server?

Environment

Release : 12.x

Component : CA WORKLOAD AUTOMATION DE (DSERIES)

Resolution

You can use the stand-alone CLI utility to connect to the server.
When connected it will give indicate you that it is the PRIMARY or otherwise it will mention that it can't connect and need to connect to other machine.

Example:

root@<hostname> # cd <install_dir>/bin
root@<hostname> bin]# ./cli
> connect HOST("<hostname>") PORT(7500) USER("ADMIN") PASSWORD("xxxxx")
Connected
ADMIN@<hostname>:7500(PRIMARY)>

When you execute the same commands on your standby server, you will get following message:

Example:

root@<hostname> # cd <install_dir>/bin
root@<hostname> bin]# ./cli
> connect HOST("<hostname>") PORT(7500) USER("ADMIN") PASSWORD("xxxxx")
Failover is enabled, connected server <hostname>:7500 is not the right one, we need to connect to primary