[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 5

tunsave Command

Purpose

Saves current tunable parameter values to a file in the /etc/tunables directory.

Syntax

tunsave [ -a | -A ] -f | -F Filename [ -d Description ]

Description

The tunsave command saves the current state of tunable parameters in a file.

If Filename does not already exist in the /etc/tunables directory, a new file is created. If it already exists, an error message prints unless the -F flag is specified, in which case, the existing file is overwritten.

Flags

-a Saves all tunable parameters, including those who are currently set to their default value. These parameters are saved with the special value DEFAULT.
-A Saves all tunable parameters, including those who are currently set to their default value. These parameters are saved numerically, and a comment, # DEFAULT VALUE, is appended to the line to flag them.
-d Description Specifies the text to use for the Description field. Special characters must be escaped or quoted inside the Description field.
-f Filename Specifies the name of the tunable file where the tunable parameters are saved. If Filename already exists, an error message prints. The Filename is relative to /etc/tunables.
-F Filename Specifies the name of the tunable file where the tunable parameters are saved. If Filename already exists, the existing file is overwritten. The Filename is relative to /etc/tunables.

Examples

  1. To save all tunables different from their default value into /etc/tunables/mytunable, type:
    tunsave -f mytunable
  2. To save all tunables, including those who are currently set to their default value, but replace the default values with the special value DEFAULT, type:
      tunsave -a -f mytunable 
  3. To save all tunables, including those who are currently set to their default value using all numerical values, but flag the default vaules with the comment DEFAULT VALUE, type:
     tunsave -A -f mytunable  

Files

/usr/bin/tunsave Contains the tunsave command.
/etc/tunables Contains all the saved files.

Related Information

The schedo Command, vmo command, ioo command, no command, nfso command, tuncheck Command, tundefault Command, and tunrestore Command.

Tunables File Format in AIX 5L Version 5.2 Files Reference.

Kernel Tuning in AIX 5L Version 5.2 Performance Tools Guide and Reference.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]