- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- KEEPALIVE enabled??
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 05:01 AM
09-15-2003 05:01 AM
KEEPALIVE enabled??
I am using 3rd party software running in HP-UX 11. As I do not have access to the source code, how do I find whether the KEEPALIVE is enabled or not..?
Any answers are much appreciated....
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 05:29 AM
09-15-2003 05:29 AM
Re: KEEPALIVE enabled??
ndd -h supported|grep -i keepalive
tcp_keepalive_detached_interval - Send keepalive probes for detached TCP
tcp_keepalive_interval - Interval for sending keepalive probes
see manpage for ndd, you can then see these values. I would check them on a system boot before your app is started, then start your app and check again if theyve been changed (by your app).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 05:52 AM
09-15-2003 05:52 AM
Re: KEEPALIVE enabled??
Well , I am aware that ndd command is used to change tcp parameters changes and nddconf for tcp parameters changes during reboot. But even though this value is changed, the KEEPALIVE has to be enabled first inorder to use the changes. Though in application we have setsockopt to enable Keepalive and set the interval, I do not have access to the code. So finding out how can it be enabled outside the application.
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 05:54 AM
09-15-2003 05:54 AM
Re: KEEPALIVE enabled??
Not an expert, but maybe this could help.
Recently I needed to add KEEPALIVE "feature" to my monitoring application, and I tested it by pulling the network cable ( client side ).
Before the KEEPALIVE setting, when pulling the network cable my application never noticed that. By adding KEEPALIVE setting in my C program ( in HP-UX ) and VB program ( in windows ), that sort of events are now detected. So, try to pull the network cable, and wait ( the default value in HP-UX is 7.200 secs, if I remember correctly ) to see if the connection still remains active or not.
Only an idea.
Are you experiencing disconnections due to inactivity?
Hope this helps.
Kind regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 06:10 AM
09-15-2003 06:10 AM
Re: KEEPALIVE enabled??
The client connects to server through load balancer(a virtual machine). It is multithreaded environment in client side and 3rd party software used in the server. We traced through Ethereal and found that after certain period, Load balancer disconnects from the server. But ports in server are still alive. So I thought I can introduce KEEPALIVE in Server side, but as it is 3rd party,not sure how to set the keepalive enable.
from
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 06:32 AM
09-15-2003 06:32 AM
Re: KEEPALIVE enabled??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 06:56 AM
09-15-2003 06:56 AM
Re: KEEPALIVE enabled??
I tried to set params using ndd and then using nddconf. But Keepalive does not work...I see the ports are still alive in server.. So thats why I try to find out how it can be enabled....?
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 04:21 AM
09-16-2003 04:21 AM
Re: KEEPALIVE enabled??
Uh oh, app must do the setsocketopt() to enable SO_KEEPALIVE, as the man page indicates. This is code within the application that needs to do this. The application is also responsible for any polling of clients. You cannot do this from outside the application space e.g. with ndd.
If you want to verify the socket options, you can do so by examining socket.h programmatically.
Hope that helps,
-> Brian Hackley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 08:02 AM
09-16-2003 08:02 AM
Re: KEEPALIVE enabled??
Thanks for your answers. what about inet subsystem, will that help in enabling KEEPALIVE outside the application??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 09:05 AM
09-16-2003 09:05 AM
Re: KEEPALIVE enabled??
The other way would be to take a packet trace while the application was idle for at least tcp_keepalive_interval time units.
I _suppose_ that with enough knowledge of the datastructures and a lot of help from q4 one could look at the socket structures, but that probably aught to happen under the close personal supervision of an HP support type.
I'd start with the tusc trace. ftp://ftp.cup.hp.com/dist/networking/tools/