oof, I don't have that handler logic anymore.
But it would be a pretty simple handler using the query back up tol step:
Query Backup
This System tool determines whether or not a CIC server is part of a switchover environment and whether or not it is a backup server. It does this by examining the machine on which it is running. Use this tool to have a handler decide whether it should perform functionality only on the primary server or backup server. For example, you might not want to have the handler send an email if running on the backup server. This tool allows you to build a patch in a handler that is dependent on the server being either primary or backup.
Inputs
Maximum time to wait for response (In seconds)
Enter the number of seconds to wait before the backup server query fails.
Outputs
Backup
This Boolean value is:
TRUE if the CIC Server is a backup server.
FALSE If the CIC Server is a primary server.
Exit Paths
Success
This exit path indicates that the CIC server is in a switchover environment. The Backup output flag can either be TRUE or FALSE.
Failure
This exit path indicates that the server is not part of a switchover environment.
Then write the server name where ever you want to pull it from, DB, Registry, txt file etc etc.
------------------------------
ryan hedlund
------------------------------
Original Message:
Sent: 02-10-2022 22:11
From: Monika Jain
Subject: Schedule Switchover
Hi Ryan,
could you please send me some details on this. we are trying to automate this process through ansible and do need a cli command to perform switchover.
could you also send me the handler to help us see what option is better.
thanks
Monika
------------------------------
Monika Jain
Moneris Solutions Corporation
Original Message:
Sent: 09-22-2016 00:38
From: Ryan Hedlund
Subject: Schedule Switchover
Awooster
You can use the switchoverctrlU.exe and do a switchover that way.
Honestly I would use a handler to check what server is primary firing off a timer initiator and then checking for primary vs backup and then running the command. As it can be run on any server but the command must be sent from the back up.
Command line is:
SwitchoverCtrlU.exe /immediate /notifier= "NAME OF BACKUP SERVER"
PM me i can send you a handler that basically does this, you would only need to change the initiator and add any additional logic you may want.