Re: Kill TCP session



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: Kill TCP session
    ... it provides options to kill session. ... Best Regards ... Check out a utility called lsof - to the best of my knowledge it isn't ...
    (comp.unix.solaris)
  • Proving OpenSSH 3.4p1 is using /dev/urandom (Solaris 9 ossh Vs OpenBSD ossh)
    ... I've had my battles with using a randomness generator under Solaris. ... Over the years while compiling up OpenSSH I've used AndiRAND, egd, ... OpenSSH ... However lsof does not show it being used as above. ...
    (Focus-SUN)
  • 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)
  • Re: lsof - no TCP/UDP/IP information available
    ... Kernel data structure changes mean you have to recompile utilities like lsof. ... Daniel L. McDonald - Solaris Security & Networking Engineering ... 35 Network Drive Burlington, MA |"rising falling at force ten ...
    (comp.unix.solaris)