Operating System - HP-UX
1823240 Members
3371 Online
109648 Solutions
New Discussion юеВ

Viewing Kernel Configuration

 
SOLVED
Go to solution
nibble
Super Advisor

Viewing Kernel Configuration

hi guys,
is there any other way in viewing the kernel configuration or the OS configuration of ux11.11 aside from SAM?

thanks...
4 REPLIES 4
Hein van den Heuvel
Honored Contributor
Solution

Re: Viewing Kernel Configuration


Hi there,

This is the Tru64 Unix forum, not hp-ux.
Be sure to look for the most appropraite forum before submitting a question.
Also, please try teh 'search' function before writing. That may safe you (and us) time.

On Tru64 you would use 'sysconfig'

On hpux 11.23 you use 'kctune' on 11.11 also?

You can also look straight into the kernel with commands like:

echo "lockable_mem/D" | adb /stand/vmunix /dev/kmem

hth,
hein.




nibble
Super Advisor

Re: Viewing Kernel Configuration

oh..sorry..thanks anyways
Colin Topliss
Esteemed Contributor

Re: Viewing Kernel Configuration

But the answer anyway is:

kmtune
This (without arguments) will display all settings.

You can use:
kmtune -q
to extract a particular setting.

You can also use kmtune to set certain parameters without having to reboot (only dynamic parameters can be changed on the fly like this). Take a look at the man page.

Regards

Col.
Steven E. Protter
Exalted Contributor

Re: Viewing Kernel Configuration

kmtune can set dynamic parameters and be used the change parameters in the system file. Then you can take these steps and compile a kernel, moving it to production.

#cd /stand
#cp vmunix vmunix.old
#cp system system.old
#cd build
#/usr/lbin/system/system_prep -s system

Edit system file and make changes here as per ur require ment. Imeand addition/Deletion of devices. Then
#mk_kernel -s system
For more information see the man page of mk_kernel

Now one new kernel will be created in /stand/buil directory. Copy this to original location
#cd /stan/build
#cp vmunix_test /stand/vmunix
#cp system /stand

Now reboot the system . In case rebuilding was not successfull, Boot thru /stand/vmunix.old and recover kernel.

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