Operating System - HP-UX
1848892 Members
5754 Online
104038 Solutions
New Discussion

ndd operation failed - invalid argument

 
SOLVED
Go to solution
Richard I Curtis
Frequent Advisor

ndd operation failed - invalid argument

Hi,
I am trying to list tcp_status so I can kill some CLOSE_WAIT sessions caused by a broken application..
When I try to get the values, it fails with "operation failed, invalid argument"..

ctr3 #ndd -get /dev/tcp ?|grep tcp_status
tcp_status (read only)
ctr3 #ndd -get /dev/tcp tcp_status
operation failed, Invalid argument
ctr3 #

Am I missing a trick here?
6 REPLIES 6
Tim Nelson
Honored Contributor

Re: ndd operation failed - invalid argument

What version of HPUX ? Old OS ??

What patch/version of ndd ? Need a patch ??

Richard I Curtis
Frequent Advisor

Re: ndd operation failed - invalid argument

Its 11i (11.11) with the Jun 07 patch bundle applied.

The only patch that matches the operation failed, invalid argument error is PHNE_37671 although it does not mention my specific case - I guess it is worth a look.

Should my command above work correctly or am I making a mistake somewhere?
Tim Nelson
Honored Contributor

Re: ndd operation failed - invalid argument

I get the same error on my 11.11 servers, command works on 11.23.

So it is not just you ;)

James R. Ferguson
Acclaimed Contributor
Solution

Re: ndd operation failed - invalid argument

Hi Richard:

This works OK for me on 11.11 with December 2007 GOLDAPP & GOLDBASE bundles. I don't have PHNE_37671, but I do have PHNE_35351.

Regards!

...JRF...
Richard I Curtis
Frequent Advisor

Re: ndd operation failed - invalid argument

I have neither of those patches so will apply the most recent one when I can get a downtime and if that doesnt solve it, will have to log a call with the response centre.

Thanks for the replies.
rick jones
Honored Contributor

Re: ndd operation failed - invalid argument

How about simply using "kill" against the broken application. (I've never really liked tcp_discon*... :)

ISTR some issues with streams message sizes and the ability of ndd to report a full tcp_status. Some web searching might find the specifics - would hae thought that contemporary 11.11 patches would be OK, but perhaps some tuning is still in order.
there is no rest for the wicked yet the virtuous have no pillows