작성자 : 최원규
Document Type : RCEN
OS & Ver :
Date : 2007년 02월 14일
Document Id : 20070214741804
Category1 : HP-UX
Category2 : Networking
QUESTION:
ndd로 fin_wait_2 를 지울때 "invalid argument" message나올때
ANSWER:
/usr/bin/ndd -get /dev/tcp tcp_status
-> operation failed, Invalid argument
이럴때는 kernel parameter중 STRMSGSZ parameter를 0으로 setting하면 문제가 해결되나 system을 rebooting해야 합니다.
이때 rebooting하지 않고 지울수 있는 방법은 tcp_discon_by_addr 를 사용하면 됩니다. 만약 여기서도 같은 error가 발생하면 위의 kernel parameter를 바꾸고 rebooting하는 방법밖에는 없습니다.
사용예제 입니다.
tcp_discon_by_addr
TCP session disconnection by address.
Local IP: 192.1.2.3 (0xc0010203)
Local Port: 1024 (0x0400)
Remote IP : 192.4.5.6 (0xc0040506)
Remote Port: 2049 (0x0801)
$ ndd -set /dev/tcp tcp_discon_by_addr "c00102030400c00405060801"
Document Type : RCEN
OS & Ver :
Date : 2007년 02월 14일
Document Id : 20070214741804
Category1 : HP-UX
Category2 : Networking
QUESTION:
ndd로 fin_wait_2 를 지울때 "invalid argument" message나올때
ANSWER:
/usr/bin/ndd -get /dev/tcp tcp_status
-> operation failed, Invalid argument
이럴때는 kernel parameter중 STRMSGSZ parameter를 0으로 setting하면 문제가 해결되나 system을 rebooting해야 합니다.
이때 rebooting하지 않고 지울수 있는 방법은 tcp_discon_by_addr 를 사용하면 됩니다. 만약 여기서도 같은 error가 발생하면 위의 kernel parameter를 바꾸고 rebooting하는 방법밖에는 없습니다.
사용예제 입니다.
tcp_discon_by_addr
TCP session disconnection by address.
Local IP: 192.1.2.3 (0xc0010203)
Local Port: 1024 (0x0400)
Remote IP : 192.4.5.6 (0xc0040506)
Remote Port: 2049 (0x0801)
$ ndd -set /dev/tcp tcp_discon_by_addr "c00102030400c00405060801"