Operating System - HP-UX
1833785 Members
2676 Online
110063 Solutions
New Discussion

ndd options and binary location

 
SOLVED
Go to solution
Jdamian
Respected Contributor

ndd options and binary location

hi

I was checking the script used to set up the loopback interface (/sbin/init.d/net.init) and found the following lines:

#
# set transport stack tunable parameters
#
if [[ -x /usr/bin/ndd ]]; then
/usr/bin/ndd -a
if (($? != 0)); then
print "ERROR: Failed to set ndd tunable parameters" >&2
rval=$ERROR
fi

My main question is

what is the -a option ? it is not found in manual pages.

I checked ndd exists in /usr/bin ... why ? why is not located in /usr/sbin ? ndd manual pages do reside under man1m tree.
3 REPLIES 3
T G Manikandan
Honored Contributor

Re: ndd options and binary location

Looks like -a option is for "all".

/usr/sbin contains all administrative commands.

Commands which are used by all users are placed in /usr/bin.
Sunil Sharma_1
Honored Contributor
Solution

Re: ndd options and binary location

Hi,

ndd -a set all transport stack tunable parameters to their default value.

why ndd is situated in /usr/bin ? i really don't know.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Fabio Ettore
Honored Contributor

Re: ndd options and binary location

Hi,

ndd -a is un-documented option used to set default values for tunable parameters.

/usr/sbin contains essential commands for O.S., /usr/bin contains more used commands. For example vgexport and vgimport (under /usr/sbin) are more critical commands than who and whoami commands(under /usr/bin).

I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!