subscribe iconSubscribe to this information

snap command

Purpose

Gathers system configuration information.

Syntax

snap [-general] [-dev DeviceName]

snap script1 "script2 arg1 arg2" ...

Description

The snap command gathers system configuration information and compresses the information into a pax file (snap.pax.Z). The file can then be transmitted to a remote system. The information gathered with the snap command may be required to identify and resolve system problems.

At least 8 MB of temporary disk space is required to collect all system information, including contents of the error log.

Flags

-dev OutputDevice Copies the compressed image onto the specified device.
-general Gathers general system information which is a subset of the system configuration information

Exit Status

See Exit status for Virtual I/O Server commands.

Examples

  1. To gather all system configuration information, enter the following command:
    snap
    The output of this command is written to the users home directory.
  2. To gather general system configuration information, including the output of the lslpp -hBc command, enter the following command :
    snap -general -dev /dev/rfd0

    Output is written to the /tmp/ibmsupt/general/lslpp.hBc and /tmp/ibmsupt/general/general.snap files. The final snap output is copied to /home/<User>/snap.pax.Z. This command also writes the system information to a removable diskette.

  3. To run the scripts foo1, foo2 and foo3. where foo1 takes no argument, foo2 takes three arguments and foo3 takes one argument, type the following"
    snap  foo1 "foo2 -x -y 3" "foo3 6" foo4

    Output is written to /tmp/ibmsupt/snapscripts/foo1, /tmp/ibmsupt/snapscripts/foo2 and /tmp/ibmsupt/snapscripts/foo3 assuming the destination directory is the default, /tmp/ibmsupt.

Files

snap.pax.Z


Send feedback | Rate this page

Last updated: Fri, Oct 30, 2009