Is it possible to change a Thread’s protocol properties via the command line?
For example, we periodically copy our Live site to Test and then change the outbound IP information to send data to test servers rather than live servers.
Ian, the NetConfig is a normal text file located at $HCISITEDIR/NetConfig. You should be able to use any text editor to find and replace. And of course you can write scripts to do that, too. Obviously, you’re going to want to back up the file first. 🙂
I don’t know what platform you are on, but have you tried using the /etc/hosts file to name your IP addresses?
Then in the NetConfig you use the name.
If you have 2 different platforms for Test and Prod, you will have 2 different /etc/hosts file.
Each of those could then have the same name but different IP addresses. The NetConfig would not need to change because the thread protocols will reference the same name – the /etc/hosts file will resolve the name to the appropriate IP address.
This can also be done using DNS but some find that less reliable or harder to evaluate.
The same can be done for ports if you use different ports for test and production (some do to assist in preventing errors).
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.
Author
Replies
Viewing 1 reply thread
The forum ‘Cloverleaf’ is closed to new topics and replies.