tunsave Command

The tunsave command is used to save current tunable parameter values into a file.

The following is the syntax for the tunsave command:
tunsave [-a|-A] -f|-F filename
For example, the following saves all of the current tunable parameter values that are different from their default into the /etc/tunables/mytunable file.
tunsave -f mytunable
If the file already exists, an error message is printed instead. The -F flag must be used to overwrite an existing file.
For example, the following saves all of the current tunable parameter values different from their default into the /etc/tunables/nextboot file.
tunsave -f nextboot
If necessary, the tunsave command will prompt the user to run bosboot.
For example, the following saves all of the current tunable parameters values (including parameters for which default is their value) into the mytunable file.
tunsave -A -f mytunable
This permits you to save the current setting. This setting can be reproduced at a later time, even if the default values have changed (default values can change when the file is used on another machine or when running another version of AIX®).
For example, the following saves all current tunable parameter values into the /etc/tunables/mytunable file or the mytunable file in the current directory.
tunsave -a -f mytunable

tunsave -a -f ./mytunable
For the parameters that are set to default values, a line using the keyword DEFAULT will be put in the file. This essentially saves only the current changed values, while forcing all the other parameters to their default values. This permits you to return to a known setup later using the tunrestore command.