I am trying to find a way to determine the HA pair of an application.
It is easier when the Original Primary is running in the Primary mode, one can simply construct the “CfgApplicationQuery” to read the application related config object.
However, things are not so trivial (at least to me) when the original Backup app is running as Primary. Any idea how to find the Backup app (original primary) in that case?
You might be able to do this with an XPath query.. you can do some quite complex queries with XPath.. if I find time and work it out I’ll update this post