Gathers system configuration information.
snap [ -a ] [ -A ] [ -b ] [ -c ] [ -D ] [ -f ] [ -g ] [ -G ] [ -i ] [ -k ] [ -l ] [ -L ][ -n ] [ -N ] [ -p ] [ -r ] [ -s ] [ -S ] [ -t ] [ -o OutputDevice ] [ -d Dir ] [ -v Component ]
The snap command gathers system configuration information and compresses the information into a tar file. The file can then be downloaded to disk or tape, or transmitted to a remote system. The information gathered with the snap command may be required to identify and resolve system problems.
Note: Root user authority is required to execute the snap command.
Use the snap -o /dev/rfd0 command to copy the compressed image to diskette. Use the snap -o /dev/rmt0 command to copy the image to tape.
Approximately 8MB of temporary disk space is required to collect all system information, including contents of the error log. If you do not gather all system information with the snap -a command, less disk space may be required (depending on the options selected).
The snap -g command gathers general system information, including the following:
The output of the snap -g command is written to the /tmp/ibmsupt/general/general.snap file.
The snap command checks for available space in the /tmp/ibmsupt directory, the default directory for snap command output. You can write the output to another directory by using the -d flag. If there is not enough space to hold the snap command output, you must expand the file system.
Each execution of the snap command appends information to previously created files. Use the -r flag to remove previously gathered and saved information.
Attention: If bosboot -k was used to specify the running kernel to be other than /unix, the incorrect kernel will be gathered. Make sure that /unix is , or is linked to, the kernel in use when the dump was taken.
-dDir | Identifies the optional snap command output directory (/tmp/ibmsupt is the default). |
-f | Gathers file system information. |
-g | Gathers the output of the lslpp -hBc command, which is required to recreate exact operating system environments. Writes output to the /tmp/ibmsupt/general/lslpp.hBc file. Also collects general system information and writes the output to the /tmp/ibmsupt/general/general.snap file. |
-G | Includes predefined Object Data Manager (ODM) files in general information collected with the -g flag. |
-i | Gathers installation debug vital product data (VPD) information. |
-k | Gathers kernel information |
-l | Gathers programming language information. |
-L | Gathers LVM information. |
-n | Gathers Network File System (NFS) information. |
-N | Suppresses the check for free space. |
-oOutputDevice | Copies the compressed image onto diskette or tape. |
-p | Gathers printer information. |
-r | Removes snap command output from the /tmp/ibmsupt directory. |
-s | Gathers Systems Network Architecture (SNA) information. |
-S | Includes security files in general information collected with the -g flag. |
-t | Gathers Transmission Control Protocol/Internet Protocol (TCP/IP) information. |
-vComponent | Displays the output of the commands executed by the snap command. Use this flag to view the specified name or group of files.
Note: Press the Ctrl-C key sequence to interrupt the snap command. A prompt will return with the following options: press the Enter key to return to current operation; press the S key to stop the current operation; press the Q key to quit the snap command completely. |
snap -aThe output of this command is written to the /tmp/ibmsupt directory.
snap -c
snap -g -o /dev/rfd0Output is written to the /tmp/ibmsupt/general/lslpp.hBc and /tmp/ibmsupt/general/general.snap files. This command also writes the system information to a removable diskette.
The crash command, errpt command, lslpp command, sysdumpdev command, sysdumpstart command.