Operating System - HP-UX
1828669 Members
2255 Online
109984 Solutions
New Discussion

Forcing shutdown of a socket

 
SOLVED
Go to solution
Stuart Whitby
Trusted Contributor

Forcing shutdown of a socket

Gurus,

I'm trying to set up some hands-on debugging training for some people in my office, and want to force a shutdown of a socket from one side of the connection only. I've done this before, but can't remember how, and can't find anything in the first 4 pages of Google or the ITRC which shows me this.

I know this is not good practice, but I'm specifically trying to break something in order to get people to do some hands-on truss and lsof to identify where the problem is.

Any clues? I know you have to force a shutdown of the socket identifier at (effectively) kernel level, just can't for the life of me remember the commands to find that identifier or kill it.

HP11.00 64 bit, btw.

Cheers,

Stuart.
A sysadmin should never cross his fingers in the hope commands will work. Makes for a lot of mistakes while typing.
3 REPLIES 3
harry d brown jr
Honored Contributor
Solution

Re: Forcing shutdown of a socket

Stuart Whitby
Trusted Contributor

Re: Forcing shutdown of a socket

Bah. Force, disconnect, socket - didn't look for free, port, process.

Thanks Harry :)
A sysadmin should never cross his fingers in the hope commands will work. Makes for a lot of mistakes while typing.
Stuart Whitby
Trusted Contributor

Re: Forcing shutdown of a socket

ndd /dev/tcp/tcp_discon
A sysadmin should never cross his fingers in the hope commands will work. Makes for a lot of mistakes while typing.