HP-UX: Determin various kernel parameters: max_thread_proc, maxfiles, nproc etc.

HP-UX Superdome:
I need a Korn Shell script that will echo the parameters for the following values:
- max_thread_proc
- Maxfiles
- Nkthread
- Nproc
- Maxdsize

This is probably quite easy if you know how, I don't have a clue.
Who is Participating?
What do you need this info for? `ulimit` shows individual users limits, but the system-wide kernel settings can be shown by kctune (or  it may be kmtune, depending or your version of HP-UX) .

`man k*tune` for more info the command on your system

in ksh, you may use ulimit -a to list process limits.

for more info, please see


For more info about kernel parameters, please see

ignition00Author Commented:
Nice to work with you on another question in the same day :-)

I need some help mathcing up the output from ulimit to the switches:
[domain1636053@ssh ~]$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) 1000
max nice                        (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 8190
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) 1000
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 1000
max rt priority                 (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) 60
max user processes              (-u) 10
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
[domain1636053@ssh ~]$

How do the outputs listed match to the orginal list:
- max_thread_proc
- Maxfiles
- Nkthread
- Nproc
- Maxdsize

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.


The link below may help in finding what ulimit returns

Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup Zone:
Accept tfewster's comment as answer.

Any objections should be posted here in the next 4 days. After that time, the question will be closed.
JustUNIX, Experts Exchange Cleanup Volunteer
Forced accept.

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.