What is the simplest way to find the stat server that is 'Primary' from composer

We have a warm stand-by backup in place but there are times during disaster recovery when the designation of stat servers changes from Primary to Backup.

So server A starts as primary and server B starts as backup, but then after a restart server B becomes the primary.

How can I determine which stat server is primary ? Is there some sort of operation from URS that can be used ?

The option is in CIM/CME…

thanks for your response, but I was hoping for some way to get this value from an ecma script variable or something so I could assmble a target on the fly like:

var primaryStatServer = something; var target = 'myagentgroup@'+primaryStatServer;

Thanks for the expansion/clarification. Take a close look at your configuration - if you don’t intend an auto-restart with a switchover/back to “Server B” as the Primary, there are options for that. If you want to re-designate “Server B” as the Primary on failover, there are also options for that.

Otherwise, I think you might need to look at DNS failover solutions/options as opposed to “on the fly” config. Products like “F5”, “KEMP”, etc. are a good place to start.