tunrestore Command
The tunrestore command is used to restore all the parameters from a file.
tunrestore -R | [-r] -f filename
For
example, the following will change the current values for all tunable
parameters present in the file if ranges, dependencies, and incremental
parameter rules are all satisfied. tunrestore -f mytunable
tunrestore -f /etc/tunables/mytunable
In case of problems,
only the changes possible will be made.tunrestore -r -f mytunable
If
changes to parameters of type Bosboot are detected, the user
will be prompted to run the bosboot command.tunrestore -R
Any problem found or change made
is logged in the /etc/tunables/lastboot.log file. A new /etc/tunables/lastboot file
is always created with the list of current values for all parameters.
Any change to restricted tunables from their default values will cause
the addition of an error log entry identifying the list of these modified
tunables.If filename does not exist, an error message displays. If the nextboot file does not exist, an error message displays if -r was used. If -R was used, all the tuning parameters of a type other than Bosboot will be set to their default value, and a nextboot file containing only an info stanza will be created. A warning will also be logged in the lastboot.log file.
Except when -r is used, parameters requiring a call to bosboot and a reboot are not changed, but an error message is displayed to indicate they could not be changed. When -r is used, if any parameter of type Bosboot needs to be changed, the user will be prompted to run bosboot. Parameters missing from the file are simply left unchanged, except when -R is used, in which case missing parameters are set to their default values. If the file contains multiple entries for a parameter, only the first entry will be applied, and a warning will be displayed or logged (if called with -R).