cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple saprouter processes on the same host

benoit-schmid
Contributor
0 Kudos

Hello,

I would like to have two saprouter on the same linux box.

One would be dedicated to my client gui and the other process would be for the snc oss connections.

If I do so, I could change the snc certificate without restarting the process for the sap gui.

Then the gui would not be disconnected.

1. Is this configuration possible (2 saprouters in the same box)?

2. What does happen when you run saprouter -n or saprouter -s?

Thanks in advance for your answer.

Accepted Solutions (1)

Accepted Solutions (1)

JPReyes
Active Contributor
0 Kudos

First, I can see why you would like 2 routers but I think you can easily get away with one, simply mark with comments in your saprouttab what connections are for whom and filter the logs for traceability.

I never had the need to install two routers in the same box... lets assume you do and it works in different ports.

the option -s will let you specify a port so that should be an issue, also if you run them as services then you could stop and start the services manually.

with the -n option I think saprouter it will depend, most likely will choose either the local saprouttab (while standing in the directory itself) or the one located in the PATH populated on the ENV Varible. Maybe you can install them so they run with different users.

Now, this is all hypothetically speaking

Regards

Juan

benoit-schmid
Contributor
0 Kudos

Hello Juan,

Just to ensure that I understand well, I would like to ask you the following questions.

> the option -s will let you specify a port so that should be an issue, also if you run them as services then you could stop and start the services manually.

Basically what you are saying is that saprouter -s -S 3298

should stop only the saprouter that binded tcp port 3298

and it should not stop the one that binded the tcp port 3299.

Am I right?

> with the -n option I think saprouter it will depend, most likely will choose either the local saprouttab (while standing in the directory itself) or the one located in the PATH populated on the ENV Varible. Maybe you can install them so they run with different users.

If I keep the same Unix userid, which env variable. should I set

to select the saprouter binded on tcp port 3298 rather than the one binded on 3299?

Thanks in advance for your answer.

Former Member
0 Kudos

No need to env anything

Stop the router on 3298:

sidadm> saprouter -s -S 3298

If you are using virtual hosts/adresses then also add -H <virtual_hostname> when starting and stopping the router.

Cheers Michael

JPReyes
Active Contributor
0 Kudos

Basically what you are saying is that saprouter -s -S 3298

should stop only the saprouter that binded tcp port 3298

and it should not stop the one that binded the tcp port 3299.

Am I right?

In theory Yes

If I keep the same Unix userid, which env variable. should I set

If you keep the same UID theres no point in maintaining a variable.

Regards

Juan

benoit-schmid
Contributor
0 Kudos

Hello Michael,

No need to env anything

>

> Stop the router on 3298:

>

sidadm> saprouter -s -S 3298

Would saprouter -n -S 3298 cause the config reload of ONLY the process that binded the tcp port 3298

and NOT the reload of the other process that binded 3299?

If yes, would the process reuse the config file path provided when started

or the one in current working directory as Juan said?

> If you are using virtual hosts/adresses then also add -H <virtual_hostname> when starting and stopping the router.

I prefer avoiding multiple ip addresses on the same host.

Thanks in advance for your answers.

Former Member
0 Kudos

Would saprouter -n -S 3298 cause the config reload of ONLY the process that binded the tcp port 3298

and NOT the reload of the other process that binded 3299?

Yes, absolutely.

If yes, would the process reuse the config file provided when started

or the one in current working directory as Juan said?

It would use the saprouttab that was specified at the start and not the one from the current directory, i just tested it... but i used -R <full_path>/saprouttab

I prefer avoiding multiple ip addresses on the same host.

Ok, i was thinking of a dedicated saprouter host sitting in a DMZ. Or you have a HA saprouter in place. But as discussed here, if you keep things simple, you are always save

Cheers Michael

Answers (2)

Answers (2)

benoit-schmid
Contributor
0 Kudos

Hello,

I have one more question.

What does happen if your run saprouter -n or -s without specifying -S 3298?

Does it run the cmd for both processes or for none?

Thanks in advance for your answers.

JPReyes
Active Contributor
0 Kudos

What does happen if your run saprouter -n or -s without specifying -S 3298?

Runs the command using default port 3299

benoit-schmid
Contributor
0 Kudos

What does happen if your run saprouter -n or -s without specifying -S 3298?

>

> Runs the command using default port 3299

Thanks Juan,

Now I just have to close the thread

sunny_pahuja2
Active Contributor
0 Kudos

Hi,

I don't think so that you can run 2 saprouter process on same machine as both will use 3299 port which is not possible.

Thanks

Sunny

benoit-schmid
Contributor
0 Kudos

Hello,

Hi,

>

> I don't think so that you can run 2 saprouter process on same machine as both will use 3299 port which is not possible.

>

> Thanks

> Sunny

Binding another tcp port is not a problem.

You can specify 3298 with -S option.

You could also have two ip addresses in your machine and bind each sap router to a specific ip address.

But I do not like to assign several ip to servers as you end up with unnecessary firewall and routing complexity.

My concern and the reason of this thread is more related to the behavior of saprouter commands,

especially with -n ans -s options.

Regards,