# Fetching system tags from other gateway

**URL:** <https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656>\
**Category:** Ignition\
**Tags:** python, ignition80, vision, scripting, perspective\
**Created:** [December 15, 2022, 9:24am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656 "2022-12-15T09:24:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [December 15, 2022, 9:24am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/1 "2022-12-15T09:24:18Z")

</div>

Hello all,  
I have a small query. Is it possible to fetch the system tags from another gateway and show it in a vision/ perspective application?  
case: I have 3 gateways as A, B, and C-- I want to show the system tags from B&C in A. a dedicated project will be available in A server. How we can do this?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 15, 2022, 9:34am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/2 "2022-12-15T09:34:39Z")

</div>

Assuming they're in the same gateway network, the simplest solution would be to make reference tags to the system tags you're interested in, in a provider that's accessible from the other gateways.

For example:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/1/515023143b6be3ccd21181151f5c32915c0632da.png)

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [December 15, 2022, 9:40am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/3 "2022-12-15T09:40:45Z")

</div>

Thank you for the fast response.

What if it is in a different Gateway network, how we can do this? can you give a little bit more information on the above-mentioned method as well?

Mainly if it is in another gateway network, how we can do that?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 15, 2022, 10:00am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/4 "2022-12-15T10:00:55Z")

</div>

If they're in a different network, I'm not sure if there's an 'easy' solution, but you could set up an API with webdev to fetch the data you need.

Concerning the method described above, it's a really simple one.  
Gateways B and C each have their system tags.  
You'll need another provider on each of them, that will be accessible from A (set up remote tag providers on A). On that provider, create a reference tag for each system tag you need.  
And that's it. The reference tags will be accessible from A and you can use them for whatever your needs are (I'm assuming some sort or hypervision/monitoring ?)

Now, I'd probably wait a bit for other people to comment on that method, maybe there's a better way of doing this. But that's what I came up with when I had the need of monitoring several gateways from one central point.

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [December 15, 2022, 10:06am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/5 "2022-12-15T10:06:17Z")

</div>

Thanks, I will check on that. But do you have any suggestions for which different network, How do I need to start with? Like any message handler from any project on the other gateway, create a gateway script in there to send some data from there to my project. Is this what you are saying? Do you have any reference that I can check with or a little bit more details on achieving the same?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 15, 2022, 10:10am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/6 "2022-12-15T10:10:00Z")

</div>

I don't think messages will work if your gateways are on different gateway networks. You'll need to go through something they can all access - like an API.

Is there any reason you can't put your gateways on the same network ?

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [December 15, 2022, 10:13am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/7 "2022-12-15T10:13:34Z")

</div>

Yes, it's in a different location. I was not able to use it as one. I need to connect to some other network to connect with those.  
A== my location  
B= another location(needs rerouting to access this which is locally placed)  
C= another location(needs rerouting to access this which is locally placed)

correct me if I'm wrong on this concept.

Can you provide me with any examples on how to do the API call or how to do that in there?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 15, 2022, 10:22am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/8 "2022-12-15T10:22:14Z")

</div>

Being in another location doesn't prevent your from using a gateway network.

Check the gateway network configuration on the gateway page:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/1/2101dfe383a32b4d2e0586be5719363eede600c0.png)

Now, if the different gateways aren't related in any way and you just want to make a new project to monitor them internally, a GAN might not be a good idea... But frankly, I'll let more competent people answer that.

I've never used the webdev module, so I'm really not sure how it works, but creating API endpoints shouldn't be too hard.

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [December 15, 2022, 11:06am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/9 "2022-12-15T11:06:24Z")

</div>

Sure, I will also wait for someone to respond on the same. Meanwhile I will check your resolutions as well.

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [December 19, 2022, 7:21am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/10 "2022-12-19T07:21:25Z")

</div>

I guess, nobody has a solution to this, can u please give me more info on the same gateway network? how I can make use of that or do you have any sample codes/ links that I can refer to?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [December 19, 2022, 8:25am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/11 "2022-12-19T08:25:19Z")

</div>

There's no code involved.

To understand how this works, open a designer, and check its tag providers.  
You should have at least the `system` provider, and potentially other ones.  
Now, the goal is to copy the data you need from `system`, to a provider that is accessible where you need it.  
The simplest way is to use reference tags, but I think you'll need a provider on each gateway from which you need to get system data. In that provider, create the tags you need, make them be reference tags, and make them point at the system data.  
Now, on the gateway where you want to use that data, configure a remote tag provider, use the one where the reference tags are, and you're done.

If you don't want to make tag providers for all those gateways, I guess you could use gateway event scripts, on a timer or something, to copy the system data to one common tag provider.

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [December 22, 2022, 8:44am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/12 "2022-12-22T08:44:42Z")

</div>

Thank you, this is working, but here comes the catch, a gateway in another network. Can somebody guide me on that? I have 2 more gateway which is outside of the gateway network. I want to bring them also to the same architecture.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 22, 2022, 1:38pm UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/13 "2022-12-22T13:38:28Z")

</div>

You will have to create an API in those gateways with WebDev, and poll them (with `httpClient()`) from the central gateway.

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [December 26, 2022, 3:31am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/14 "2022-12-26T03:31:20Z")

</div>

Thank you, can you please provide me with an example or any links or any info regarding how to achieve this? or Can you please explain how we can incorporate the same?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 26, 2022, 3:59pm UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/15 "2022-12-26T15:59:03Z")

</div>

I don't have an example handy, but there are numerous related discussions on this forum.

[https://forum.inductiveautomation.com/search?q=webdev%20tag](https://forum.inductiveautomation.com/search?q=webdev%20tag)

---

<div class="post-metadata">

**Author:** ![John\_S1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@John\_S1](https://forum.inductiveautomation.com/u/John_S1)\
**Post date:** [December 27, 2022, 9:23am UTC](https://forum.inductiveautomation.com/t/fetching-system-tags-from-other-gateway/67656/16 "2022-12-27T09:23:47Z")

</div>

Thank you, I will check on the same. Really appreciate that.
