Automatically assign a TEM Client a relay at installation time

Hello, Can someone help me understand the purpose of putting this line in the clientsettings.cfg

IP:http://relay.domain.com:52311/bfmirror/downloads/

If I already have these lines:

__RelayServer1=http://relay.domain.com:52311/bfmirror/downloads/
__RelayServer2=http://relay2.domain.com:52311/bfmirror/downloads/
__RelaySelect_Automatic=0

The information on this link suggests that you need both

http://www-01.ibm.com/support/docview.wss?uid=swg21505838

I have never used the “Relay IP:” or “IP:” syntax in the clientsettings.cfg because the __RelayServer1, __RelayServer2 __RelaySelect_Automatic always worked for me. It was my understanding that the “Relay IP” or “IP” will set __RelayServer1, __RelayServer2 to the given value and set __RelaySelect_Automatic to 0. Is that correct?

Would the addition of lines starting with “Relay IP" or “IP” be redundant if __RelayServer1, __RelayServer2 __RelaySelect_Automatic also exist?

Yes, they would essentially be redundant. They are remnants from older versions that did not allow specifying any arbitrary Client Setting. Including the specific Client settings of interest within the clientsettings.cfg file should be sufficient.

Is one method preferred over the other?

I’d suggest defining the settings by their names in the clientsettings.cfg rather than leveraging “Relay IP” or “IP”.

1 Like

The Relay IP/IP are just there to make sure the __RelaySelectAutomatic setting is also placed as if you set only the other the client will attempt an automatic relay selection and may end up trying to go to the root server

If you place all the settings you are doing the same thing

2 Likes

If the client can only reach a particular relay and can’t reach the root server, then that relay just needs to be set somewhere so that the client knows about it during install.

I created a script that does this by setting the failover relay to the relay given.

The script works for Windows, Mac, and Linux. It is located here: https://github.com/jgstew/tools/blob/master/CMD/install_bigfix_universal.bat

If you want to force it to use a particular relay, but it can reach other relays, then you will need to set more settings (like above), which you can do using my script and provide your own clientsettings.cfg file. You technically don’t need my script, but it is handy… unless you are doing this on linux, then you do need something like my script, or you have to set the settings differently than with a clientsettings.cfg file.