clear FIN_WAIT_2 connections on HP-UX


    root@hpux# netstat -an |grep FIN
      ... note processes in FIN_WAIT_2
    root@hpux# ndd -get /dev/tcp tcp_fin_wait_2_timeout   # record this
    0
    root@hpux# ndd -set /dev/tcp tcp_fin_wait_2_timeout 30000   # ms? = 30s
    root@hpux# ndd -get /dev/tcp tcp_fin_wait_2_timeout
    30000
    root@hpux# netstat -an |grep FIN
      ... note still have processes in FIN_WAIT_2
    root@hpux# sleep 30
    root@hpux# netstat -an |grep FIN
      ... should be gone now, or very soon
    root@hpux# ndd -set /dev/tcp tcp_fin_wait_2_timeout 0
    root@hpux# ndd -get /dev/tcp tcp_fin_wait_2_timeout
    0
    root@hpux#


source: http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1222372512715+28353475&threadId=1031869
http://www.google.com/search?q=tuning+tcp+parameters+in+hp-ux
date: 09/26/2008