Skip to Content

How to connect SUP to relay server

Configuring Farms on Relay Server for connection from SMP

Prerequisite: Relay server is already installed.

You need to add two server farms to the relay server per SMP cluster. One farm will be for Messaging connection and another one for Replication connection. This is done by adding backend farm and backend server sections to the relay server configuration file. The following link provides more information regarding the relay server configuration file.

Example: Adding replication and messaging farms in configuration section

[backend_farm]
enable = yes
id = 1468.MBS
description = 1468 MBS
verbosity = 1
client_security =
backend_security =
active_cookie = no
active_header = no

[backend_farm]
enable = yes
id = 1468.RBS
description = 1468 RBS
verbosity = 1
client_security =
backend_security =
active_cookie = no
active_header = no

Now adding the server nodes for each farm. Please note that each server node in the cluster should be added here per farm. So there will be two "backend_server" entries for each server node of the cluster.

[backend_server]
enable = yes
farm = 1468.MBS
id = Node1
description = 1468.MBS Node 1
mac = !
token = 1234
verbosity = inherit

[backend_server]
enable = yes
farm = 1468.RBS
id = Node1
description = 1468.RBS Node 1
mac = !
token = 1234
verbosity = inherit

An example relay server configuration file is attached.
After updating the configuration file, you must run the relay server specific command line for relay server to start using the new configuration file as given here.

For example you should run the following command in the %SQLANY16%\RelayServer\IIS\BinXX\Server folder for windows IIS based relay server.

rshost -u -f rs.config

Warning: Without running the above command, the relay server will not recognize the new farms defined in the relay server configuration file.

SUP Configuration

Prerequisite: The Relay server is configured as per section above where the Messaging and Replication farms are created and server nodes are configured for the farms.

1. Adding relay server information to SCC

1. Provide the relay server address, ports and relay server URL suffix. Click on next.

   

2. Provide Replication farm ID, Type as Replication and description and click on +. Then Select the entry just created and provide server node id and token and click on + next to token input field.

3. Provide Messaging farm ID, Type as Replication and description and click on +. Then Select the entry just created and provide server node id and token and click on + next to token input field. Then click on next.

4. Click on Finish in the final screen.

2. Configuring the Outbound enabler to connect to Relay server nodes

3. Provide Messaging farm ID, Type as Replication and description and click on +. Then Select the entry just created and provide server node id and token and click on + next to token input field.

3. Provide Replication farm ID, Type as Replication and description and click on +. Then Select the entry just selected and provide server node id and token and click on + next to token input field.

Important note: It is possible to use same relay server farms to connect to different SUP server. For this you need to remove the entries created in above steps and again add these entries from a different server. For easier migration, you must copy the information on each screen before deleting the entries, and use the same information when you are creating the relay server entries in the new server. (Only exception being the SUP server information: host and port that should be the new server).

Application Connection Template configuration

  1. Create new security configuration for application to connect via relay server.
  2. Create new application connection template for connection via relay server and use the security configuration created in step 1. This security configuration must be used on the device registration screen.

3. Provide the connection values as:
Farm ID: Messaging farm id as created in the relay server configuration (See above)

Server Name: Relay server fully qualified name (must be reachable from device)

Port:Relay server port for HTTP

Synchronization Server Host: Relay server fully qualified name (must be reachable from device)

Synchorization Server Port:Relay server port for HTTP

Synchronization Server Protocol: HTTP

Synchronization Server URL Suffix: /ias_relay_server/client/rs_client.dll/<Replication Farm ID as created in the relay server configuration>

Use HTTPS: False

All entries starting with Synchronization is used for synchronization connection. Others are true for how registration connection takes place. These registration connection values should be used on the client registration screen.

This covers the HTTP scenario. For HTTPS related set up look at  http://scn.sap.com/community/crm/mobile/blog/2014/11/24/setting-up-sup-for-https-testing-for-rex

4. Provide the relay server Suffix (the value depends on which virtual folder relay server was installed on the server)

After all the above settings are done, the device should be able to connect to the SUP server via relay server.

Former Member

No comments