Re: Kill TCP session



Thank You Brian for your answer.

I use lsof to print connexion, pid and process name but i don't think that
it provides options to kill session.

I will check again.

Thanks a lot

Best Regards
Rahan


"Brian Mac" <mcnamarabrian@xxxxxxxxx> a écrit dans le message de
news:1154344476.033799.252300@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Rahan,

Check out a utility called lsof - to the best of my knowledge it isn't
included with Solaris. It will list open files, including network
connections. The difference between it and netstat is that lsof will
list the PID . Here is a helpful (albeit brief) page that shows what
can be done with lsof:

http://www.akadia.com/services/lsof_intro.html

In your case, you could run something like:

lsof -iTCP@HostnameOrIPAddress:PortNumber

Thanks!
Brian

rahan wrote:
Hi,

kill is used to kill process.

How it's possible to kill a tcp session btw client and solaris server
without killing process ?

So, i have some tcp connexion to the application running on my solaris
server, and i need to know how it's possible to kill session btw one
client and my server.

Thank You very much for your help

Best Regards
Rahan



.



Relevant Pages

  • Re: Help, everything on the screen is blue!
    ... It was back to normal after I exit lsof. ... PID no. to kill if you knew which program to look for. ... Modify settings or unsubscribe at: ...
    (Ubuntu)
  • Re: Help, everything on the screen is blue!
    ... If you had tried lsof, it would tell you the process ... PID no. to kill if you knew which program to look for. ... but the way you follow instructions ... put the nvidia card back in it and turn it back ...
    (Ubuntu)
  • SUMMARY: Kill a weblogic process holding a port open
    ... lsof was indeed the tool I needed. ... Kill a weblogic process holding a port open ... available for download on Sun's Freeware site. ...
    (SunManagers)
  • Re: Kill TCP session
    ... Check out a utility called lsof - to the best of my knowledge it isn't ... It will list open files, ... kill is used to kill process. ... How it's possible to kill a tcp session btw client and solaris server ...
    (comp.unix.solaris)