System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

killing tcp/ip connections on hpux 11i

 
SOLVED
Go to solution
Highlighted
Super Advisor

killing tcp/ip connections on hpux 11i

Dear Sirs,

If we want to kill tcp/ip connections on various ports (one port) then how to kill them ?

Thanks,
Shiv
7 REPLIES 7
Highlighted
Honored Contributor
Solution

Re: killing tcp/ip connections on hpux 11i

Killing or disconnecting the port is not good idea. You should stop the process that is using that port.

You can check which port is being used by which processes.

netstat -an

lsof -i tcp:80
lsof -i udp:123
There is no substitute to HARDWORK
Highlighted
Honored Contributor

Re: killing tcp/ip connections on hpux 11i

Stopping tcp/ip connection will not solve the problem. It will come to an end on completly stopping that specific process.

Find the process id with lsof tool and kill it. It will solve the problem.

hth.
Easy to suggest when don't know about the problem!
Highlighted
Honored Contributor

Re: killing tcp/ip connections on hpux 11i

hi,

tcp/ip connections may have been created by many different processes. Some of which might be very important for your system to be running.

As mentioned above, it would be wiser to individually stop the processes using the normal procedures..

hepe this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Highlighted
Honored Contributor

Re: killing tcp/ip connections on hpux 11i

You cant kill a TCP connection on a port, what you could do is, close all apps running with that TCP, close the resposncible server or restart the machine .

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Highlighted
Honored Contributor

Re: killing tcp/ip connections on hpux 11i

hi,

tcp/ip connections may have been created by many different processes. Some of which might be very important for your system to be running.

As mentioned above, it would be wiser to individually stop the processes using the normal procedures..

hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Highlighted
New Member

Re: killing tcp/ip connections on hpux 11i

study
Highlighted
Honored Contributor

Re: killing tcp/ip connections on hpux 11i

Hi Shiv

You may download lsof from following site:

http://hpux.connect.org.uk/hppd/cgi-bin/search?package=on&description=on&term=lsof

lsof will provide info on processes involved with tcp ports. They may be selectively killed

Regards
Mahesh