Operating System - HP-UX
1752463 Members
5819 Online
108788 Solutions
New Discussion юеВ

Re: Scripting kernel parameters and rebuilds

 
SOLVED
Go to solution
dantaylor_1
New Member

Scripting kernel parameters and rebuilds

I have an bunch of N and L class development boxes that get re-ignited from time to time. These boxes all need to have kernel parameters changed when re-imaged for a particular application that runs on them.

I have searched the docs, but can't find a clearly documented method whereby I could script some of the static and dynamic parameters to change, and kick off a kernel rebuild.

I am familiar with the methods of tuning HPUX kernel parameters via SAM and dynamic parms using kmtune.

Is there concealed doco regarding this anywhere or a knowlegable soul that could shed some light on this area for me please.

4 REPLIES 4
Tim Nelson
Honored Contributor
Solution

Re: Scripting kernel parameters and rebuilds

execute manual commands in script

#!/usr/bin/ksh
kmtune -s SHMEMMAX=10240000
kmtune -s OTHERS=SOMETHING
mk_kernel
kmupate

Throw in a backup copy of the current kernel if you want then reboot.
inventsekar_1
Respected Contributor

Re: Scripting kernel parameters and rebuilds

Craig,
for 11.23, kmtune is an obsolete command that is replaced by kctune(1M).

instead of kmtune use kctune without -s paramater.
http://docs.hp.com/en/B2355-60105/kctune.1M.html

lot of changes are there in kernel tunning. check the docs.hp.com for 11.23 docs.
Be Tomorrow, Today.
dantaylor_1
New Member

Re: Scripting kernel parameters and rebuilds

Forgot to mention OS is 11i v1.
V.Manoharan
Valued Contributor

Re: Scripting kernel parameters and rebuilds

Hi Craig ,
you can use the same kumtune and kmupdate commands. except of kcweb in 11v1.
regards.
V.manoharan