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.