# Automically changing gateway device connections for a backup

**URL:** <https://forum.inductiveautomation.com/t/automically-changing-gateway-device-connections-for-a-backup/57703>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [March 28, 2022, 9:08am UTC](https://forum.inductiveautomation.com/t/automically-changing-gateway-device-connections-for-a-backup/57703 "2022-03-28T09:08:31Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [March 29, 2022, 1:55am UTC](https://forum.inductiveautomation.com/t/automically-changing-gateway-device-connections-for-a-backup/57703/5 "2022-03-29T01:55:36Z")

</div>

Do your device hostnames show up in the tag tree under device diagnostics folder?

> [@system.device.getDeviceHostname?](https://forum.inductiveautomation.com/t/system-device-getdevicehostname/12460/2):
>
> If you browse to your device with the OPC Browser you will see that it contains a Diagnostics folder. Within the Diagnostics folder is a tag that contains the hostname. You can drag this tag into the Tag Browser and then read the value in your script with the system.tag.read() function.

---

_[View the full topic](https://forum.inductiveautomation.com/t/automically-changing-gateway-device-connections-for-a-backup/57703)._
