Absent Member.. JasonCantrell Absent Member..
Absent Member..
151 views

[OO Tip] Keeping TCP connection alive when terminated by load balancers

Problem:

After an hour of inactivity the Secure Shell (SSH) connections are terminated by the load balancers. If a script is running on the target server this will also terminate. Is there a setting to keep the SSH session alive?

 

Solution:

Please contact OO Support for assistance with this question as there is a suggested workaround but not a certified solution. Please mention this KB article.

 

Link to the document here:

http://support.openview.hp.com/selfsolve/document/KM1456301

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Labels (2)
0 Likes
2 Replies
Absent Member.. jphaag Absent Member..
Absent Member..

Re: [OO Tip] Keeping TCP connection alive when terminated by load balancers

Hello,

 

I encountered the same problem, but it concerns in my case tcp connection.

A Bladelogic job is launched by a ras? and when the RAS receive the answer of Bladelogic, He tries to return the response to Central, but the LB has terminated the session.

How to force Central to send a TCP keep alive probe to inform LB not to terminate the session considered as inactive by LB ?

What was the workaroud suggested for this case ?

Thanks for your answer.

Jean-Philippe HAAG

0 Likes
Absent Member.. molinabro1 Absent Member..
Absent Member..

Re: [OO Tip] Keeping TCP connection alive when terminated by load balancers

A suggested workaround would be to add parallel steps where the command is being executed in one lane.  The other lane is using a loop to send a bogus command to the server (like: echo test > /dev/null) to keep the connection alive.

 

For this to work, the closeSession input needs to be set to false in all iterations of SSH Command on the two lanes.

 

Steps are as follows:

1. SSH Shell logon
2. Parallel Split Step
3. SSS Command
4. SSH Shell Logoff



Ed Molina
HP Cloud Solution Support Engineer

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution. Also, if you liked this post please consider providing Kudos on the left side.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.