1843936 Members
1842 Online
110226 Solutions
New Discussion

Problem

 
SOLVED
Go to solution
Luis Hétor Desachy
Occasional Contributor

Problem

Hi,
ndd -get /dev/tcp tcp_status
returns:
operation failed, Invalid argument

HPUX 11i SD32000
Maybe anyone knows why?

LHDG
Mex.
5 REPLIES 5
Bharat Katkar
Honored Contributor

Re: Problem

It works perfectly with me... is their any typo or control char getting in..

Give it a try once..
Regards
You need to know a lot to actually know how little you know
Dave Olker
Neighborhood Moderator

Re: Problem

Works fine on my 11i box, both as a normal user and root user.

Is it repeatable on your system?

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Patrick Wallek
Honored Contributor

Re: Problem

It works for me as well. Maybe you need to patch ndd?

Here's the what output for my ndd.

# what $(whence ndd)
/usr/bin/ndd:
ndd.c $Date: 2002/04/25 15:52:31 $Revision: r11.11/6 PATCH_11.11 (PHNE_26762)
nddconfig.c $Date: 2002/10/09 04:10:13 $Revision: r11.11/9 PATCH_11.11 (PHNE_27989)
errmsg.c $Date: 2001/04/16 12:04:37 $Revision: r11.11/1 PATCH_11.11 (PHNE_23645)
fatal.c $Date: 2001/04/16 12:05:30 $Revision: r11.11/1 PATCH_11.11 (PHNE_23645)
progname.c $Date: 2001/04/16 12:08:08 $Revision: r11.11/1 PATCH_11.11 (PHNE_23645)
usage.c $Date: 2001/04/16 12:08:27 $Revision: r11.11/1 PATCH_11.11 (PHNE_23645)
warn.c $Date: 2001/04/16 12:08:48 $Revision: r11.11/1 PATCH_11.11 (PHNE_23645)
Luis Hétor Desachy
Occasional Contributor

Re: Problem

I have a two box and in one box works very well and the second box returns: operation failed, Invalid argument

The box are same in configuration.

Maybe anyone knows why?

Dave Olker
Neighborhood Moderator
Solution

Re: Problem

Hello Luis,

Ok, I think I understand why ndd is failing on one of your systems. My guess is you have too many TCP connections for ndd to display and it is exceeding the limits specified by your STRMSGSZ variable.

On a typical system, ndd can display ~400 TCP connections with STRMSGSZ set to 64K. On systems with many more connections, which you can confirm via:

# netstat -an | wc -l

the amount of information required to display the statistics for these connections won't fit into a STRMSGSZ buffer and therefore ndd fails.

The solution for this is to use a higher value for STRMSGSZ, or set this parameter equal to 0 (unlimited).

Please check what value you're using for STRMSGSZ on your systems. Also check how many connections netstat -an reports. If it is more than 400, then this is likely a candidate for STRMSGSZ adjustment.

Hope this helps,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo