Operating System - HP-UX
1836872 Members
2079 Online
110110 Solutions
New Discussion

ndd is not working with "tcp_status"

 
SOLVED
Go to solution
RAJESH GANGADHARAN
Regular Advisor

ndd is not working with "tcp_status"

Hi,
I am facing an intermittent problem with ndd along with "tcp_status" option, Some times it is giving me the output and some time it is giving following error

root@myserver:>ndd -get /dev/tcp tcp_status
operation failed, Invalid argument.

From one of the thread I found there is a fix for this on ARPA patch, but I already installed the same (PHNE_29887) and kernet parm "STRMSGSZ" is 65535. Can any one suggest a solution for this

I am having HP-UX 11i with MCSG 11.15

Thanks in adv
Raj
Let the choices you make today be the choices you can live with tomorrow.
2 REPLIES 2
Dave Olker
Neighborhood Moderator
Solution

Re: ndd is not working with "tcp_status"

Hi Raj,

Does your system have many TCP connections when the ndd command fails?

# netstat -an | wc -l

If the number of connections is more than ~400 then ndd likely won't be able to fit all of the connection information in a single STRMSGSZ object.

As far as I know, the only solution to this is to either increase STRMSGSZ above 64K or to set it to 0 (unlimited). If you change STRMSGSZ to 0 does the ndd command work?

Regards,

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
RAJESH GANGADHARAN
Regular Advisor

Re: ndd is not working with "tcp_status"

Thanks Dave, It's working now.
Let the choices you make today be the choices you can live with tomorrow.