Changing thread protocol via the command line

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Changing thread protocol via the command line

  • Creator
    Topic
  • #50463
    Ian Morris
    Participant

    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.

Viewing 1 reply thread
  • Author
    Replies
    • #66196

      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. 🙂

      -- Max Drown (Infor)

    • #66197
      Jim Kosloskey
      Participant

      Ian,

      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.

Viewing 1 reply thread
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,115
Forums
28
Topics
9,290
Replies
34,426
Topic Tags
286
Empty Topic Tags
10