Operating System - HP-UX
1833771 Members
2225 Online
110063 Solutions
New Discussion

Re: Change Kernel Parameter using scripts

 
Sushil Singh_1
Advisor

Change Kernel Parameter using scripts

Hi All,
Just wondering if anyone new about documentation as how to change kernel parameters without using SAM.

Thanks All
Sushil Singh
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Change Kernel Parameter using scripts

Hi:

You can do this with 'kmtune'. See the man pages for more information.

Regards!

...JRF...
Stefan Farrelly
Honored Contributor

Re: Change Kernel Parameter using scripts

Simlpy use a script to create you /stand/system file to what values you want then build the kernel. If it builds ok then youre done.

Use the /usr/lbin/system_prep command to first create your new /stand/system file from the currently running kernel, then edit it as required, then build the new kernel.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Helen French
Honored Contributor

Re: Change Kernel Parameter using scripts

You can change the values with "kmtune" command. Read man pages of:
# kmtune
# kmupdate
# mk_kernel
# config

etc.
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: Change Kernel Parameter using scripts

For 10.x
========
# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system
==> This is where you make your kernel modification.
# /usr/sbin/mk_kernel -s ./system
# mv /stand/system /stand/system.prev
# mv /stand/vmunix /stand/vmunix.prev
# mv /stand/build/system /stand/system
# mv /stand/build/vmunix_test /stand/vmunix
# shutdown -ry 0

For 11.x
========
# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# kmtune -S /stand/build/system -s =
==> Do man kmtune for more variations.
# /usr/sbin/mk_kernel -s ./system
# mv /stand/system /stand/system.prev
# mv /stand/build/system /stand/system
# kmupdate
# shutdown -ry 0