# Is there a way to query the internal gateway database via scripting?

**URL:** <https://forum.inductiveautomation.com/t/is-there-a-way-to-query-the-internal-gateway-database-via-scripting/35994>\
**Category:** Ignition\
**Created:** [June 24, 2020, 5:41pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-query-the-internal-gateway-database-via-scripting/35994 "2020-06-24T17:41:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bob/32/16899_2.png) [@Bob](https://forum.inductiveautomation.com/u/Bob)\
**Post date:** [June 24, 2020, 5:41pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-query-the-internal-gateway-database-via-scripting/35994/1 "2020-06-24T17:41:29Z")

</div>

We wrote our own device driver module using the Ignition SDK and added a table to the Ignition internal database to store connectivity parameters and such.

But now I would like to access some of those parameters when running our Ignition project, mainly the IP Address, to make a separate connection to the device.

Is there a way to do this?

Thank you,  
Bob

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [June 24, 2020, 5:59pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-query-the-internal-gateway-database-via-scripting/35994/2 "2020-06-24T17:59:38Z")

</div>

Just create scripting functions in your module that return the records/values that you want in client/designer scope.

---

<div class="post-metadata">

**Author:** ![Stevenson.Yuan](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@Stevenson.Yuan](https://forum.inductiveautomation.com/u/Stevenson.Yuan)\
**Post date:** [June 24, 2020, 6:11pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-query-the-internal-gateway-database-via-scripting/35994/3 "2020-06-24T18:11:56Z")

</div>

Hey Bob!

I’ll second @jpark recommendation. Since you already have a module providing driver functionality, adding a few scripting functions to retrieve values from the internal database makes sense. You’ll want to be cognizant of the call and leverage RPC’s (remote procedure calls) for client/designer scope calls.

---

<div class="post-metadata">

**Author:** ![Bob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bob/32/16899_2.png) [@Bob](https://forum.inductiveautomation.com/u/Bob)\
**Post date:** [June 24, 2020, 6:26pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-query-the-internal-gateway-database-via-scripting/35994/4 "2020-06-24T18:26:52Z")

</div>

@Stevenson.Yuan & @jpark

A contractor wrote our driver module for us, so I was looking for a way to get the values without having to get in the module code. But what you say makes sense. I’ll jump in there and see what I can do.

Thanks
