Operating System - HP-UX
1847840 Members
5463 Online
104021 Solutions
New Discussion

Re: listing net tunable parameters on HP-UX 11i

 
SOLVED
Go to solution
Anna Fong
Advisor

listing net tunable parameters on HP-UX 11i

On HP-UX 10.20, I could list net tunable parameters and values with `nettune -l`

How to do same with ndd for HP_UX 11i? (entire list of values, not individually)

TIA,
Anna
5 REPLIES 5
Bill Hassell
Honored Contributor
Solution

Re: listing net tunable parameters on HP-UX 11i

According to the man page, there isn't any method to get all the parameters. So you can create a script that contains the names of the parameters and insert the device file in front of each parameter. Then read each line and feed it to ndd, something like this:

for TUNE in $(ndd -h | awk '{print $1}'|grep -e upd_ -e ip_ -e raw_ -e arp_ -e tcp_ )
do
echo
echo "$(tput bold)$TUNE"
DEV=$(echo $TUNE | cut -f 1 -d_)
eval "ndd -get /dev/$DEV $TUNE"
done


Bill Hassell, sysadmin
aparna challagulla
Valued Contributor

Re: listing net tunable parameters on HP-UX 11i

Hi Anna,

#ndd -h supported
#ndd -h unsupported

HTH
aparna
If you don't have time to do it right you must have time to do it over
Bruno Ganino
Honored Contributor

Re: listing net tunable parameters on HP-UX 11i

Try Command #ndd -h

Take a look at the man pages for the ndd command. For example the command:
# ndd -l | more
will list all the parameters used by tcp , ip , udp etc. Then, for example, you can check a current value:
# ndd -get /dev/tcp tcp_conn_request_max
or make a change:
# ndd -set /dev/tcp tcp_conn_request_max 100

P.S.
on 10.20, the equivalent (nettune) parameter is so_qlimit_max , but only if you
have patch PHNE_8421 If so you'll be able to manipulate the size of the socket queue length as follows:
# nettune -s so_qlimit_max X (Where 1 < X < 8192).


For Tunable Kernel
http://docs.hp.com/hpux/onlinedocs/TKP-90203/TKP-90203.html

HTH
Bruno
Torino (Turin) +2H
Anna Fong
Advisor

Re: listing net tunable parameters on HP-UX 11i

Thanks to everyone who replied, especially Bill!

My version of Bill's script below.

Some of the ndd tunable parameters don't seem to have a device file though and caused errors. Anyone know how to fix this?

For example,
# ndd -get /dev/socket socket_qlimit_max
ndd: couldn't push module 'socket', Invalid argument
#

------------------------------------------



for TUNE in $(ndd -h supported | awk '{print $1}'|grep -e ip_ -e tcp_ -e udp_ -e
rawip_ -e arp_ -e tcp_ -e socket_ -e ip6_ -e rawip6_ | grep -v _status | grep -
v _hash | grep -v _report )
do
echo
echo "$(tput bold)$TUNE"
DEV=$(echo $TUNE | cut -f 1 -d_)
eval "ndd -get /dev/$DEV $TUNE"
done


Anna Fong
Advisor

Re: listing net tunable parameters on HP-UX 11i

For sockets, hidden deep in this thread --
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=33500

Haven't found how to list values for other undocumented device names (ip6, rawip6, ipsec)