[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Commands Reference, Volume 5

savecore Command

Purpose

Saves a system dump.

Syntax

savecore { [ -c ] [ -d ] [ -f ] } DirectoryName SystemName

Description

The function of the savecore command is to save a system dump and is usually run at system startup.

The savecore command checks to see that you have a recent dump and that there is enough space to save it. The system dump is saved in the DirectoryName/vmcore.n file, and the system is saved in the DirectoryName/vmunix.n file. The n variable is specified in the DirectoryName/bounds file. If this file does not exist, it is created with a default of 0, and the n variable uses this value. With each subsequent dump, the n variable is increased by 1.

The savecore command also checks to see if the current dump was compressed. If so, then it is copied to a file named DirectoryName/vmcore. n.Z, where .Z is the standard indication that a file is compressed.

Note: This applies to AIX 4.3.2 and later.

If the system dump was from a system other than /unix, the name of the system must be supplied as SystemName.

Note: The savecore command saves only the current dump and the dump prior to the current one.

Flags

-c Marks the dump invalid (not recent), but does not copy it.
-d Copies only the dump. It does not copy the system.
-f Copies the dump even if it appears to be invalid.

Examples

  1. To copy the dump (not the system) to DirectoryName, enter:
    savecore -d DirectoryName
  2. To copy the dump even if it is invalid, enter:
    savecore -f -d DirectoryName
  3. To mark the dump invalid, enter:
    savecore -c
  4. To copy the dump and the system, enter:
    savecore -d DirectoryName SystemName

Related Information

The crash command, sysdumpdev command, and sysdumpstart command.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]