title: How to detect if keepalive is enabled on TCP socket in AIX and Solaris?
body: <p>I am working on a solution where i am enabling keepalive option on the TCP socket. On linux I am able to see if keepalive is enabled or not using netstat</p>
  
  <p><em>netstat -o -p |grep processid</em></p>
  
  <p>ouput is as follows</p>
  
  <blockquote>
    <p>$ netstat -o </p>
    
    <p>Active Internet connections (w/o servers)</p>
    
    <p>Proto Recv-Q Send-Q Local Address           Foreign Address        State       <strong>Timer</strong><br>
    tcp        0      0 himanshu-laptop.l:46096
    sjc-not16.sjc.dropb:www ESTABLISHED <strong>off (0.00/0/0)</strong><br>
    tcp       38 
    0 himanshu-laptop.l:40156 v-d-1a.sjc.dropbo:https CLOSE_WAIT  <strong>off
    (0.00/0/0)</strong><br>
    tcp       38      0 himanshu-laptop.l:54501
    v-client-5a.sjc.d:https CLOSE_WAIT  <strong>off (0.00/0/0)</strong></p>
  </blockquote>
  
  <p>In command output I see field timer which shows <em>off</em> or <em>keepalive</em>.</p>
  
  <p>But I am not able to get this on AIX and Solaris.
  Want to check how to get this information on AIX and Solaris?</p>