HP-UX System Administrator's Guide: Configuration Management

# kctune -C "Nightly billing s/w needs execute-on-stack" executable_stack=1
* The automatic 'backup' configuration has been updated.
* The requested changes have been applied to the currently
running configuration.
Tunable Value Expression Changes
executable_stack (before) 0 Default Immed
(now) 1 1
The billing software also uses the kernel Random Number Generator module. Fred
checks and sees that it’s not in use, but since it’s loadable he doesn’t need to reboot to
use it.
# kcmodule -d rng
Module State Cause Notes
Description
rng unused loadable, unloadable
Strong Random Number Generator
He goes ahead and loads the module.
# kcmodule -C "Random Number Generator needed for nightly billing jobs" rng=best
* The automatic 'backup' configuration has been updated.
* The requested changes have been applied to the currently
running configuration.
Module State Cause Notes
rng (before) unused loadable, unloadable
(now) loaded best
(next boot) loaded explicit
Fred saves these new configuration settings under the name night, with a descriptive
title.
# kconfig -C "Settings for nightly billing jobs" -s night
* The currently running configuration has been saved as 'night'.
# kconfig -t night "Nightly billing jobs"
* The title of the configuration 'night' has been set to "Nightly
billing jobs".
Since good isn’t a very helpful name for Susan’s configuration anymore, Fred renames
it to day. He checks the list of configurations to make sure everything looks OK.
# kconfig -r good day
* The configuration 'good' has been renamed to 'day'.
# kconfig
Configuration Title
backup Automatic Backup
day Good configuration for Prophet
installed Initial installation
last_install Created by last OS install
night Nightly billing jobs
Finally, he tries loading first the day configuration, and then the night configuration,
to make sure he can move back and forth at will.
# kconfig -l day
* The automatic 'backup' configuration has been updated.
* The requested changes have been applied to the currently
Kernel Configuration Example 205