ndd /dev/tcp help

Solaris 10 server (SunOS 5.10 Generic_137137_09)

I have a services file configured in /etc in there windows clients connect to my server on port 6034-6037
when I do the following

netstat | grep TestServices

it pulls all the connections active for those ports
so right now I have 10 clients connected but posted only 3

Server1.TestServices Client1.testdomain.com.1874 64633 0 64240 0 ESTABLISHED
Server1.TestServices Client2.testdomain.com.2483 64633 0 64240 0 ESTABLISHED
Server1.TestServices Client3.testdomain.com.1886 64633 0 64240 0 ESTABLISHED

I need to kill only these ESTABLISHED clients that relate to these ports only

I did the following

ndd -set /dev/tcp tcp_ip_abort_interval 800

and

ndd -set /dev/tcp tcp_keepalive_interval 15000

I hoped this would set the interval to send a reset at 800ms or lessen the keep alive but the connections are still there as ESTABLISHED. Am I looking at this the wrong way or what I am trying to do is not what i posted.

Please help to point me in the right direction this is sort of affecting out class

BigAdmin Submitted Tech Tip: A Tool to Drop TCP Sessions for the Solaris OS: tcpdrop sounds like it might do what you are after?

It doesn't. You can't have a single name matching a range of ports in /etc/services.
You need to set something like TestService1, TestService2 and so on and grep TestService to achieve what you want.

in /etc my services file has TestService1 TestService2 for what my software is doing it connects to port 6043 for all connections related to TestService1 when you preform a specific action with that software.

Thanks Tony for the link