# Backup Gateway System Tags

**URL:** <https://forum.inductiveautomation.com/t/backup-gateway-system-tags/33819>\
**Category:** Ignition\
**Created:** [April 9, 2020, 1:36pm UTC](https://forum.inductiveautomation.com/t/backup-gateway-system-tags/33819 "2020-04-09T13:36:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamad.tayara](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mohamad.tayara](https://forum.inductiveautomation.com/u/mohamad.tayara)\
**Post date:** [April 9, 2020, 1:36pm UTC](https://forum.inductiveautomation.com/t/backup-gateway-system-tags/33819/1 "2020-04-09T13:36:21Z")

</div>

Hi,  
In a redundant system, how to access the Backup gateway System tags from the Master gateway, in order to display the redundancy state for both gateways on a Vision Display.  
Thanks

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 9, 2020, 4:48pm UTC](https://forum.inductiveautomation.com/t/backup-gateway-system-tags/33819/2 "2020-04-09T16:48:50Z")

</div>

You can’t directly retrieve tags from the backup system, because of the way redundancy separates things. However, you _can_ retrieve at least the status using a simple HTTP call to the `/system/gwinfo` route; it’s published for all gateways and contains basic information about the server. The following should work on any recent version of Ignition, and returns a dictionary that can be used to retrieve specific values:

```auto
def getGatewayStatus(gatewayAddress):
	result = system.net.httpGet(gatewayAddress + "/main/system/gwinfo")
	return {k: v for k, v in [item.split("=") for item in [pair for pair in result.split(";") if pair]]}
	
status = getGatewayStatus("http://localhost:8088")

print status['RedundancyStatus'], '-', status['RedundantState']

```

```auto
>>> Master - Unknown

```

---

<div class="post-metadata">

**Author:** ![mohamad.tayara](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mohamad.tayara](https://forum.inductiveautomation.com/u/mohamad.tayara)\
**Post date:** [April 9, 2020, 8:17pm UTC](https://forum.inductiveautomation.com/t/backup-gateway-system-tags/33819/3 "2020-04-09T20:17:04Z")

</div>

Hi, the method works but it seems that there is a problem with the redundancy status: the Synchronization status is good although the backup peer is not connected, is it a bug?  
Thanks

 ![Redundancy](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/88c0fe35be73815896df15950703c305e1d22e2d.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 9, 2020, 8:30pm UTC](https://forum.inductiveautomation.com/t/backup-gateway-system-tags/33819/4 "2020-04-09T20:30:18Z")

</div>

Hm, yeah, that’s probably just an issue on our side where the status isn’t updated while the peer isn’t connected, so it defaults to either ‘Good’ or whatever it was last set to (not sure).

---

<div class="post-metadata">

**Author:** ![Mau89](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mau89/32/20680_2.png) [@Mau89](https://forum.inductiveautomation.com/u/Mau89)\
**Post date:** [January 15, 2021, 7:39am UTC](https://forum.inductiveautomation.com/t/backup-gateway-system-tags/33819/5 "2021-01-15T07:39:42Z")

</div>

Hi, I noticed a similar problem. It happens that the redundancy status is good but the backup does not have the latest changes made. It usually happens that the newly added tags are not present in the backup.
