What methods are available to determine which server in a UCCX cluster currently is the Master and which server is the Slave?
Can you check the following API from the wallboard servers,
http://<Unified CCX server IP address>/uccx/isDBMaster
This is how it is been documented in UCCX administration guide,
Let me know if this is the information, you are looking for.
If you want the UCCX first node always to be the master, you need to restart the Engine (or server) on the UCCX second node so that the first Node becomes the Primary.
Reference - UCCX 8.5 failover and fallback | Contact Center | Cisco Support Community | 5926 | 11617996
Thanks and Regards,
Thanks for the answer. But this is no't the answer to the question.
I'm looking for a way to programmaticly, using API's, determine which server is currently master.
Is there an API available? Or is there a field in the DB we can query? Or, ....
We don't have any configuration API at present, to know the mastership details. The only way to identify the mastership is from the UCCX serviceability page.
Thanks for the response. I already thought so.
The reason for us asking is the following. We are building a wallboard application and need a way to figure out when to switch to the other server. It happens every now and then that the role switches from server A to server B (due to short network issues or whatever) without the server actually going down.
We have been playing with querying the database for logged-in agents but that also doesn't work all the time (a slave can have a logged-in agent, apparently).
Is there a clever way (from data in the DB as there is no API) to determine the master server?
Exactly what we are looking for!
Doesn't work for 10.x, it's possible know in 10.x who is the master?
I thought of another alternative way to figure out which server is master!
Create a Dummy HTTP Trigger.
Do a request to this trigger/page from your application.
If you get an HTTP redirect to the active server then the request was made to the Slave server
If you do not get an HTTP redirect then the request was made to the Master server.
I am not so much of a programmer and I am struggling with the same issue, I have one customer with multiple wallboards on a HA install, and do not want to manually update the reference to the active DSN.
Having read the above, are you able to share some sample code with me?
With the information in this threat you should be able to figure something out. The logic is spelled out. No developers at didata?
The easiest way is to run the command "utils service list" in CLI.
At the very bottom you will see Primary Node = true or false
Retrieving data ...