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.
ignition00Asked:
Who is Participating?
 
tfewsterCommented:
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
0
 
omarfaridCommented:
Hi,

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

for more info, please see

http://bama.ua.edu/cgi-bin/man-cgi?ulimit+1

For more info about kernel parameters, please see

http://docs.hp.com/en/939/KCParms/KCparams.OverviewAll.html
0
 
ignition00Author Commented:
Omarfarid,
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

Thanks
0
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.

 
omarfaridCommented:
Hi,

The link below may help in finding what ulimit returns

http://bama.ua.edu/cgi-bin/man-cgi?getrlimit+2
0
 
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
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
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.