tuncheck Command
The tuncheck command is used to validate a file.
tuncheck [-r|-p] -f filename
The following is an example of how to
validate the /etc/tunables/mytunable file for usage on current values.
tuncheck -f mytunable
The following is an example of how to validate the
/etc/tunables/nextboot file or my_nextboot file for usage during reboot. Note that the
-r flag is the only valid option when the file to check is the nextboot file.tuncheck -r -f nextboot
tuncheck -r -f /home/bill/my_nextboot
All parameters in the nextboot or my_nextboot file are checked for range, and
dependencies, and if a problem is detected, a message similar to: "Parameter X is out of
range
" or "Dependency problem between parameter A and B
" is issued. The
-r and -p options control the values used in dependency checking for parameters not
listed in the file and the handling of proposed changes to parameters of type Incremental,
Bosboot, and Reboot.
Except when used with the -r option, checking is performed on parameter of type Incremental to make sure the value in the file is not less than the current value. If one or more parameters of type Bosboot are listed in the file with a different value than its current value, the user will either be prompted to run bosboot (when -r is used) or an error message will display.
Parameters having dependencies are checked for compatible values. When one or more parameters in a set of interdependent parameters is not listed in the file being checked, their values are assumed to either be set at their current value (when the tuncheck command is called without -p or -r), or their default value. This is because when called without -r, the file is validated to be applicable on the current values, while with -r, it is validated to be used during reboot when parameters not listed in the file will be left at their default value. Calling this command with -p is the same as calling it twice; once with no argument, and once with the -r flag. This checks whether a file can be used both immediately, and at reboot time.