Operating System - HP-UX
1832235 Members
2453 Online
110041 Solutions
New Discussion

how to modify more than one kernel parameter at the same time?

 
SOLVED
Go to solution
leelangco_1
Frequent Advisor

how to modify more than one kernel parameter at the same time?

i want to modify more than kermel parameter at the same time ,but i do not want to use sam.is there a feasible procedure(script) to complete this task?thank you.
3 REPLIES 3
Luk Vandenbussche
Honored Contributor
Solution

Re: how to modify more than one kernel parameter at the same time?

Edit in the file /stand/system

When this is done, execute

mk_kernel
kmupdate

reboot your server
Steven E. Protter
Exalted Contributor

Re: how to modify more than one kernel parameter at the same time?

Shalom,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=105739

More complete procedures.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Doug O'Leary
Honored Contributor

Re: how to modify more than one kernel parameter at the same time?

hey;

Primarily depends on your OS level. Check http://www.olearycomputers.com/ll/hpkernel.html for a checklist for 11.11 and below. 11.23 made kernel updates much easier.

Regardless which version, though, you can create a datafile of your kernel parms and values then loop through it with a simple inline loop:

11.11: Assumes you followed the directions in the checklist. ${system} is the /stand/build/system file.

cat ${file} | while read p v
do
kmtune -s ${p}=${v} -S ${system}
done

Follow the rest of the checklist for kmupdate/reboots

11.23:

cat ${file} | while read p v
do
kctune ${p}=${v}
done

Reboot if necessary.

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html