본문 바로가기
HP-UX/Network

[HP-UX] HP-UX 11i FIN_WAIT 관련 대응 방법

by 레이루이 2008. 5. 1.
반응형
[ FIN_WAIT_TIMER 확인 ]
ndd -get /dev/tcp tcp_fin_wait_2_timeout
[ FIN_WAIT_TIMER 설정값]
 단, 서버 Reboot 시 설정값 없어짐.
ndd -set /dev/tcp tcp_fin_wait_2_timeout 60000
[ nddconf file ]
/etc/rc.config.d/nddconf reboot 시 없어지기 때문에 conf file 수정하면
TRANSPORT_NAME[0]=tcp
# NDD_NAME[0]=tcp_keepalive_interval
# NDD_VALUE[0]=3600000

[ FIN_WAIT connection 삭제 command ]
ndd tcp_discon_by_addr 10.227.90.57.1205
 
[ script ]
/usr/bin/ndd -get /dev/tcp tcp_status | grep FIN_WAIT_2 | awk '{ printf "ndd -set /dev/tcp tcp_discon 0x%sn",$1 }' > /tmp
/finw2
/sbin/chmod 700 /tmp/finw2
/usr/bin/ksh -x /tmp/finw2

[ tcp address 추출시 Command ]
/usr/bin/ndd -get /dev/tcp tcp_status | grep FIN_WAIT_2
반응형