Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

no output displayed while running ndd command.

madhuca-
Occasional Advisor

no output displayed while running ndd command.

Hi,

 

 

When I run below command

 

netstat -an | grep -i portno

 

I got  some status which are in fin_wait state.

 

Now I want to kill those in fin_wait status.

 

When I check with below command,no ouput is displayed.


#ndd -get /dev/tcp tcp_status | grep [ip address]

 

I too checked with

 

#ndd -get /dev/tcp tcp_status | grep [port no]

 

ndd -get /dev/tcp tcp_status | grep -i fin_wait

 

ndd -get /dev/tcp tcp_status |grep -e state -e FIN_WAIT | awk '{print $1}'

 

 

I don't recieve any output to disconnect the fin_wait session.

 

 

Regards

 

Madhu

 

 

P.S. This thread has been moved from HP-UX > System Administration to HP-UX > networking. - Hp Forum Moderator

 

 

3 REPLIES
Patrick Wallek
Honored Contributor

Re: no output displayed while running ndd command.

What do you see when run 'ndd get /dev/tcp tcp_status' by itself without any of your greps?  Do you see what you're looking for?

 

If you are searching for IP addresses, you wi ll likely have to make sure all IP octets are 3 digits (pad with zeros if needed) like 100.005.025.200.

 

 

Bill Hassell
Honored Contributor

Re: no output displayed while running ndd command.

You might also verify FIN_WAIT states with netstat:

 

# netstat|grep -i fin
tcp        0      0  atl1.49152             atl2.49157              FIN_WAIT_2
tcp        0      0  atl1.49156             atl1.63505              FIN_WAIT_2

 

 

 

 



Bill Hassell, sysadmin
madhuca-
Occasional Advisor

Re: no output displayed while running ndd command.

HI,

 

What do you see when run 'ndd get /dev/tcp tcp_status' by itself without any of your greps?  Do you see what you're looking for?

 

NO,, I don't get the information what i am looking for.

 

#ndd -get /dev/tcp tcp_status
operation failed, Invalid argument

 

then how can i find the hexa decimal number to disconnect the session. 

 

# ndd -set /dev/tcp tcp_discon 0xxxxx

 

regards

 

Madhu