HP-UX HB v13.00 Ch-07 - Kernel Configuration

HP-UX Handbook Rev 13.00 Page 21 (of 33)
Chapter 07 Kernel Configuration
October 29, 2013
Create a user defined tunable
not possible
kctune u
_mytunable=256
Modules
Load a module
kmadmin L module
kcmodule module=loaded
Unload a module
kmadmin U module
kcmodule module=unused
Query a module
kmadmin Q module
kcmodule -v module
Print status of all modules
kmadmin -s
kcmodule
Print detailed status of all
modules
kmadmin -S
kcmodule -v
Print all static modules
kmadmin -k
kcmodule
Add, delete or update module
kminstall
no longer needed
(Un-)register module with the
running kernel
kmmodreg
no longer needed
List all modules
kmsystem (no options)
kmcmodule
Set module to configured and
loadable.
kmsystem -c y -l y
module
kcmodule module=loaded
Set module to configured and
not loadable.
kmsystem -c y -l n
module
kcmodule module=static
Set module to unconfigured.
kmsystem -c n module
kcmodule module=unused
Query module state
kmsystem -q module
kcmodule -v module
Configure a loadable module
mk_kernel -M
no longer needed
Path to running kernel
(/stand/vmunix)
kmpath (no options)
kcpath -x
Name of running kernel
(vmunix)
kmpath -k
kcpath -b
Path to current kernel function
set directory (/stand/dlkm)
kmpath -c
kcpath -d
Mark kernel/configuration for
next boot
kmupdate kernel
kconfig -n
configuration
Procedure to modify the kernel configuration
If you like to modify only a few tunables or modules use kctune or kcmodule respectively:
# kctune nproc=1000
# kcmodule krm=loaded
If tunables/modules are dynamic you’re done, else you need to reboot to take the new effect.
In order to perform many changes at once, e.g. apply tunable settings from another system do the
following:
1) Export the current kernel configuration to a file:
# kconfig -e system_config
* The current configuration (including any changes being held for
next boot) has been exported to /root/system_config.
NOTE: The obsolete system_prep script has been rewritten to incoke kconfig -e