1834414 Members
1823 Online
110067 Solutions
New Discussion

Re: tcp/ip parameter

 
SOLVED
Go to solution
Gabriele FACCHINI
Frequent Advisor

tcp/ip parameter

Hi all i find a tcp/ip parameter in hp-UX 11.00 or 11i like sun solaris "udp_max_buf" [Controls how large send and receive buffers (in bytes) can be for a UDP socket].

Thanks a lot.
Gabriele
Gabriele Facchini
13 REPLIES 13
Stefan Farrelly
Honored Contributor

Re: tcp/ip parameter

socket_udp_rcvbuf_default - Sets the default receive buffer size
socket_udp_sndbuf_default - Sets the default send buffer size

You can see all the tcp settings with;
ndd -h supported
or
ndd -h unsupported
Im from Palmerston North, New Zealand, but somehow ended up in London...
RAC_1
Honored Contributor

Re: tcp/ip parameter

socket_udp_rcvbuf_default
socket_udp_sndbuf_default

Also check ndd -h supported and
ndd -h unsupported
There is no substitute to HARDWORK
Gabriele FACCHINI
Frequent Advisor

Re: tcp/ip parameter

Hi, thanks for replay.
How can i see the value of this parameters?

thanks
Gabriele
Gabriele Facchini
sparky_2
Frequent Advisor

Re: tcp/ip parameter

Hi,
Try "ndd -get "
Stefan Farrelly
Honored Contributor

Re: tcp/ip parameter

ndd -h socket_udp_rcvbuf_default

Shows its current value. Use -set to set it. See man ndd. To make it permanent you need to add it into /etc/rc.config.d/nddconf
Im from Palmerston North, New Zealand, but somehow ended up in London...
Fabio Ettore
Honored Contributor

Re: tcp/ip parameter

Hi Gabriele,

# ndd -get /dev/udp socket_udp_rcvbuf_default

should help you.

Best regards,
Ettore
WISH? IMPROVEMENT!
Fabio Ettore
Honored Contributor

Re: tcp/ip parameter

...and how to set it to a new value:

# ndd -set /dev/udp socket_udp_rcvbuf_default

Best regards,
Ettore
WISH? IMPROVEMENT!
Gabriele FACCHINI
Frequent Advisor

Re: tcp/ip parameter

Hi Stefan how can i modify the value of these parameters?
I try with these command with no results:
ndd -set /dev/udp socket_udp_rcvbuf_default
ndd -set /dev/tcp socket_udp_rcvbuf_default
ndd -set /dev/arp socket_udp_rcvbuf_default
ndd -set /dev/ip socket_udp_rcvbuf_default
thanks
Gabriele
Gabriele Facchini
Fabio Ettore
Honored Contributor

Re: tcp/ip parameter

this parameter is about udp protocol...

# ndd -get /dev/udp socket_udp_rcvbuf_default

to get and

# ndd -set /dev/udp socket_udp_rcvbuf_default 131060

131060 is an example, anyway it is a numeric value.
Otherwise useful would be to know what message gets 'ndd -set /dev/udp socket_udp_rcvbuf_default ' that you are trying...

Best regards,
Ettore
WISH? IMPROVEMENT!
Gabriele FACCHINI
Frequent Advisor

Re: tcp/ip parameter

Hi Mr Rossi, you try to execute this command on a server and you verify if it works.

By
Gabriele
Gabriele Facchini
Stefan Farrelly
Honored Contributor
Solution

Re: tcp/ip parameter

Use;

ndd -set sockets socket_udp_rcvbuf_default

That works for me.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Stefan Farrelly
Honored Contributor

Re: tcp/ip parameter

The sockets arg (instead of /dev/tcp or /dev/udp etc.) doesnt list on my manpage for ndd but it is valid. It doesnt seem to work in /etc/rc.config.d/nddconf is you set TRANSPORT to sockets (instead of tcp/udp etc.) so you must do it manually after reboot or create your own system startup job to set it on reboot.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Fabio Ettore
Honored Contributor

Re: tcp/ip parameter

Mr Facchini,
If

# ndd -set /dev/udp socket_udp_rcvbuf_default

doesn't obtain any output, it means that it worked! You can verify it in this way:

# ndd -set /dev/udp socket_udp_rcvbuf_default
and immediately launch
# echo $?

If it returns 0 means that it worked.
Otherwise that I asked you is about what output you obtain when you launch that command.

Anyway Stefan suggested you another command, does it work?

Best regards,
Ettore
WISH? IMPROVEMENT!