Gathers the core file.
The snapcore command gathers the core file, program, and libraries used by the program and compresses the information into a pax file. The file can then be downloaded to disk or tape, or transmitted to a remote system. The information gathered with the snapcore command is required to identify and resolve a problem with the application.
The snapcore command checks for available space in the /tmp/snapcore directory, the default directory for snapcore command output. You can write the output to another directory by using the -d flag. If there is not enough space to hold the snapcore command output, you must expand the file system.
Each execution of the snapcore command creates a new archive file. The archive file is named snapcore_$pid.pax. Use the -r flag to remove the previously created archive file. This command uses $pid (pid of the snapcore command) to create a unique name file and preserve any previously created archives.
Specify the full path name for core and program. If the program name is not specified, snapcore reads the program name from the core file and searches for the location in directories contained in the PATH variable.
Item | Description |
---|---|
-dDir | Identifies the optional snapcore command output directory (/tmp/snapcore is the default). |
-r | Removes snapcore command output from the /tmp/snapcore directory. |
snapcore -r<core file name> <program name>
The pax file is created in /tmp/snapcore directory.
snapcore -d<dir name> <core file name> <program name>
The pax file is created in <dirname>/tmp/snapcore directory.
snapcore -r
Item | Description |
---|---|
/usr/sbin/snapcore | Contains the snapcore command. |
/tmp/snapcore | Contains core file archive. |