Master-backup status

Hi, does anyone know if there's a script available to check the master-backup redundancy status?

There are system tags available, [System]Gateway/Redundancy/IsMaster should give you the status you're looking for.

Thanks for the reply. Found it. Thanks again

Be aware that scripts do not run on the inactive gateway in a redundant pair.

Sorry to revive this old thread, but I was naively assuming we could use isMaster value change to trigger some event (I am resynching some results that write to a datacenter replicated Postgres server in the event our on prem servers go down). The tag simply goes to an errored state and never runs.

What is the right way to trigger application-level, rather than DB level synchs like this? Using isMaster seemed the most straightforward way to do this, but it is not working the way I thought. I am confused why the tag value would not persist or be syched when switching between master and backup and vice versa.

Events are scripts. See my comment just above yours.