# Gateway script to change settings of gateway

**URL:** <https://forum.inductiveautomation.com/t/gateway-script-to-change-settings-of-gateway/3889>\
**Category:** Ignition\
**Created:** [January 20, 2012, 1:42pm UTC](https://forum.inductiveautomation.com/t/gateway-script-to-change-settings-of-gateway/3889 "2012-01-20T13:42:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![focus-eng](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@focus-eng](https://forum.inductiveautomation.com/u/focus-eng)\
**Post date:** [January 20, 2012, 1:42pm UTC](https://forum.inductiveautomation.com/t/gateway-script-to-change-settings-of-gateway/3889/1 "2012-01-20T13:42:54Z")

</div>

Hello everyone,

is it possible to write a gateway script to change settings of the gateway.  
For example change the ip address of a configured device.

Regards  
Sascha

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 20, 2012, 4:13pm UTC](https://forum.inductiveautomation.com/t/gateway-script-to-change-settings-of-gateway/3889/2 "2012-01-20T16:13:26Z")

</div>

No, there are no scripting functions right now to modify settings on the gateway. We have thrown around the idea here to create a bundle of scripting functions to modify devices, SQLTags, database connections and more on the gateway. I don’t know when we will have these functions.

---

<div class="post-metadata">

**Author:** ![focus-eng](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@focus-eng](https://forum.inductiveautomation.com/u/focus-eng)\
**Post date:** [January 20, 2012, 9:03pm UTC](https://forum.inductiveautomation.com/t/gateway-script-to-change-settings-of-gateway/3889/3 "2012-01-20T21:03:47Z")

</div>

Hi Travis,

i see that ignition uses the HSQL for the internal database, i was trying to connect to it with 3rd party software, but don’t know what the password for SA actually is. i know a sort of key is specified in the settings.properties file but it still wouldn’t let me log on.  
Thought i could have done it that way.

Anyways, i was wondering, Since Ignition uses HSQL and has the java hsql jar file in its library could one not use this within a script to change the setting for instance of the Devices Hosname / ip address.  
I know one can import some of the java functions in a script and use them so one should be able to use the hsql java driver thats in the ignitions lib folder.

I know it’s a long shot but really need a feature of being able to change the ip address of a configured device dynamically.

Kind regards  
Sascha

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 20, 2012, 9:16pm UTC](https://forum.inductiveautomation.com/t/gateway-script-to-change-settings-of-gateway/3889/4 "2012-01-20T21:16:40Z")

</div>

That is a good observation. However, only one application can connect to the local HSQL database at a time which is Ignition. It wouldn’t be hard using the Module SDK to make a module that includes scripting functions to modify the internal database.

---

<div class="post-metadata">

**Author:** ![focus-eng](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@focus-eng](https://forum.inductiveautomation.com/u/focus-eng)\
**Post date:** [January 20, 2012, 9:22pm UTC](https://forum.inductiveautomation.com/t/gateway-script-to-change-settings-of-gateway/3889/5 "2012-01-20T21:22:34Z")

</div>

Hi Travis,

Looks like i’ll have to get the module sdk up and running then to get this working.  
Bit of a long winded process to get this device thing sorted.  
I thought one could access all java items within ignition that are part of ignition.

Maybe i got this idea wrong then.

Any hints / advice on getting this module with a script function to be able to change the Hostname / IP of a given configured device?

Kind Regards  
Sascha
