ndd /dev/tcp help


 
Thread Tools Search this Thread
Operating Systems Solaris ndd /dev/tcp help
# 1  
Old 05-06-2009
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
Code:
netstat | grep TestServices

it pulls all the connections active for those ports
so right now I have 10 clients connected but posted only 3
Code:
Server1.TestServices Client1.testdomain.com.1874 64633 0 64240 0 ESTABLISHED

Code:
Server1.TestServices Client2.testdomain.com.2483 64633 0 64240 0 ESTABLISHED

Code:
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
Code:
ndd -set /dev/tcp tcp_ip_abort_interval 800

and
Code:
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

Last edited by deaconf19; 05-06-2009 at 08:21 AM..
# 2  
Old 05-07-2009
BigAdmin Submitted Tech Tip: A Tool to Drop TCP Sessions for the Solaris OS: tcpdrop sounds like it might do what you are after?

Last edited by TonyFullerMalv; 05-07-2009 at 08:29 PM..
# 3  
Old 05-09-2009
Quote:
Originally Posted by deaconf19
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
Code:
netstat | grep TestServices

it pulls all the connections active for those ports
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.

Last edited by jlliagre; 05-09-2009 at 06:47 AM..
# 4  
Old 05-09-2009
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to set timeout for dev/tcp while checking hostname and port?

I have a command to check the status of hostname and port number, echo > /dev/tcp/hostname/80 echo $? 0 success case echo > /dev/tcp/hostname/809999 I got the output ------------------- connection timed out It took almost 4 minutes to time out,,, how can I set it to 10 seconds? my... (2 Replies)
Discussion started by: sam@sam
2 Replies

2. Shell Programming and Scripting

Automating partitioning setup of /dev/sda on /dev/sdc

Objective: To recreate the partitioning setup of /dev/sda on /dev/sdc How would I parse the below information and initialize variables (an array?) that can be used to build sgdisk commands in a script, regardless of the number of partitions? Something along the lines of: sgdisk -n... (12 Replies)
Discussion started by: RogerBaran
12 Replies

3. Solaris

Too much TCP retransmitted and TCP duplicate on server Oracle Solaris 10

I have problem with oracle solaris 10 running on oracle sparc T4-2 server. Os information: 5.10 Generic_150400-03 sun4v sparc sun4v Output from tcpstat.d script TCP bytes: out outRetrans in inDup inUnorder 6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies

4. Solaris

Lun remove, stuck in /dev/dsk and /dev/rdsk

So, we removed a LUN from the SAN and the system is refusing to remove the references to it in the /dev folder. I've done the following: devfsadm -Cv powermt -q luxadm -e offline <drive path> luxadm probe All those commands failed to remove the path. The drive stills shows up as <drive... (13 Replies)
Discussion started by: DustinT
13 Replies

5. Solaris

ndd -set /dev/tcp tcp_host_param

Following command was set up in startup script on Solaris 8 servers - improved network transfers of files from one server to the another (doubled transfer speed). ndd -set /dev/tcp tcp_host_param '10.140.20.10 sendspace 279600 recvspace 279600 timestamp 1' Now they are getting a new server... (15 Replies)
Discussion started by: RTM
15 Replies

6. SCO

/dev/inet/tcp not listening in SCO 6.

While in SCO Openserver 5.0.7, Sybase listened to /dev/inet/tcp, the same is not working in SCO Openserver 6. The Network card is however active and pinging fine. What can be the reason? What is the way out? An early response will be appreciated. Thank you Regards TCG (2 Replies)
Discussion started by: thecobolguy
2 Replies

7. Solaris

ndd matters

Hi, I would like to know whether there is any config file that i can refer to for the result of 'ndd -get /dev/tcp tcp_time_wait_interval'? When i man 'ndd', there is one statement which is -> Each driver chooses which parameters to make visible using ndd. Does it answering my question above... (3 Replies)
Discussion started by: honmin
3 Replies

8. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

9. Solaris

ndd help

Hi Guys, I need help with ndd. I was going through network FAQ but i have more questions then answers regarding ndd. #ndd -set /dev/hme instance 0 #ndd -set /dev/hme adv_100fdx_cap 1 #ndd -set /dev/hme adv_100hdx_cap 0 #ndd -set /dev/hme adv_10fdx_cap 0 #ndd -set /dev/hme adv_10hdx_cap 0... (2 Replies)
Discussion started by: nitinkgoud
2 Replies

10. IP Networking

ndd and le1

I am trying to set an interface to 100/Full, but the command I use are getting rejected. I think it is the last argument, but I don't know how to find the correct values. I am trying to use the following script, but change hme to le . echo "Setting hme interface 1: 100mb/full-duplex..." ... (2 Replies)
Discussion started by: bbrandeb49
2 Replies
Login or Register to Ask a Question