Manages system dumps and live dumps.
dumpctrl -k
dumpctrl -s [-c | -C comp-path-list] [-l | -L comp-alias-list] [-t | -T type_subtype] [-r] [-u]
dumpctrl -qc [-c comp-path-list] [-l comp-alias-list] [-t type_subtype] [-r] [-u] [-p | -P]
dumpctrl [-P] [global_attribute]
dumpctrl [-c comp-path-list] [l comp-alias-list] [-t type_subtype] [-r] [-u] [-n | -p | -P | -x] [per-component_attribute]
The dumpctrl command is used to obtain information about which components are registered for live dumps or system dumps, and to query and change dump characteristics.
Components are specified with the full path name, device logical alias, type or subtype. You can use multiple flags to specify multiple components or component lists.
At least one flag must be given.
Item | Description | ||
---|---|---|---|
-c comp-path-list | Specifies components by path name. Wildcards are allowed. Use -c all to specify all of the components. | ||
-k | Refreshes the list of dumps
of the kernel. This is run every 5 minutes by default. This period
can be changed by editing the crontab for the root user and changing
the entry for /usr/sbin/dumpctrl -k. For more information,
see the crontab command. You need to run the dumpctrl -k command
after adding or removing dumps by hand. If the system is holding any dumps in the heap that it previously could not write to the file system, the system attempts to write those dumps and reclaim their storage space at this time. |
||
-l comp-alias-list | Specifies components by alias. Wildcards are allowed. | ||
-r | Dumps any subcomponents of the specified components. | ||
-q <cmd> | Queries attributes for the
live dump or system dump.
|
||
-qs type shows global system dump attributes. -qs can be used with the -p or -P flag to query global system dump attributes. | |||
-r | Includes components below the specified components in the component hierarchy. | ||
-Rx | Restores dump settings to their defaults. x can be "l" for live dump settings, or "s" for system dump settings. This only resets the global dump settings. Individual components cannot be specified. The -P flag and a bosboot are required to ensure all of these settings remain in effect across a restart. | ||
-t type_subtype | Specifies a component by type_subtype names. | ||
-s | Lists the path names and titles of all live dumps in the dump repository. If components are specified with the -c, -l, or -t flag, the list of dumps shown contains only dumps with the specified components. If components are specified with the -C, -L, or -T flag, the list of dumps shown contains only dumps with the specified failing components. | ||
-C comp-path-list | Specifies components by path name. Wildcards are allowed. The reserved name "all" is also allowed to indicate all components. The -C flag is only valid with the -s flag. | ||
-L comp-alias-list | Specifies components by alias. Wildcards are allowed. The -L flag is only valid with the -s flag. | ||
-T type_subtype | Specifies a component by type_subtype names. The -T flag is only valid with the -s flag. | ||
-u | Includes components above the specified components in the component hierarchy. |
Item | Description |
---|---|
-p | Changes apply only to newly created components, which are RAS infrastructure components created after the dumpctrl command runs. |
-P | Makes the specified changes permanent. Any changes made remain in effect across a restart. If a bosboot is required, a message is produced to this effect. The -P flag applies to component attributes, the global enabling or disabling of live dump, the global live dump level, the enabling or disabling of legacy components, and the system dump device specifications. |
-n | Changes apply to existing components. The -n flag is the default if neither -p nor -P is specified. To apply changes to both current and newly created components, use the -n and -p flags. |
-x | Deletes this persistence specification. The -x flag deletes a permanent (-P) persistence specification. Note that the specification must be specified in the same manner as it was originally specified with the -P flag. |
Recursive-down customizations (specified by the -r flag) take precedence over all other customizations, regardless of the order in which they are specified relative to other non-recursive-down customizations.
For more information about how the various dump attributes interact with persistence, see the live dump and system dump attribute tables in Attributes.
dumpctrl dir=/usr/dumps freespc=20
This
example sets dump directory to /usr/dumps, and the free space
threshold to 20%. Some shortcuts are provided, such as the ldmpon attribute, which is the same as ldmpenable=yes.
If components are given, unrecognized attributes are passed to callbacks of those components using RASCD_DMP_PASS_THROUGH.
The following table lists live dump attributes.
Attribute | Specification | Default value |
---|---|---|
ldmpenable | Specifies whether live dump is enabled. The possible values are yes and no. You can use the ldmpon attribute instead of ldmpenable=yes, and the ldmpoff attribute instead of ldmpenable=no. |
yes See the following note 1 for more information. |
dir | Specifies a live dump directory name. | /var/adm/ras/livedump |
freespc | Specifies live dump free space threshold using a decimal value from 0 to 99. | 25 (means 25%) |
ldmplevel | Specifies the live dump level using a decimal
value from 0 to 9. You can specify the ldmpminimal, ldmpnormal, or ldmpdetail attribute instead of ldmplevel=1, 3, 7 |
3 (normal) See the following note 1 for more information. |
heapsz | Specifies live dump heap size using a decimal value in megabytes. | 0 See the following note 2 for more information. |
duptype | Specifies duplicate dump suppression type.
The following are the possible values:
|
all |
maxfreeze | Specifies the maximum recommended system freeze interval using a decimal number in milliseconds. | 100 ms |
The following table lists system dump attributes.
Attribute | Specification | Default value |
---|---|---|
sdmpenable | Specifies whether system dump is enabled. The possible values are yes and no. You can also specify the sdmpon or sdmpoff instead of sdmpenable=yes or sdmpenable=no. |
yes See the following note 3 for more information. |
legacyenable | Specifies whether dump legacy components are
enabled. The possible values are yes and no. You can also specify the legacyon or legacyoff instead of legacyenable=yes or legacyenable=no. |
yes |
sdmplevel | Specifies the system dump level using a decimal
value from 0 to 9. You can specify the sdmpminimal, sdmpnormal, or sdmpdetail attribute instead of sdmplevel=1, 3, 7 |
3 (normal) See the following note 4 for more information. |
copydir | Specifies a copy directory path name. | /var/adm/ras |
forcecopy | Specifies whether the forcecopy attribute
is enabled. The possible values are yes and no. If a dump must be copied from paging space at boot time, and there is not enough space in the copy directory, you are prompted to copy the dump to removable media if the forcecopy value is yes. If the value is no, the dump is not copied and the system boots normally, although the dump might be lost. |
yes |
keyseq | Specifies whether the key sequences always
cause a dump. The possible values are yes and no. |
no |
primary | Specifies the primary dump device path name. | /dev/hd6 or /dev/lg_dumplv |
secondary | Specifies the secondary dump device path name. | /dev/sysdumpnull |
The following table lists live dump attributes and their persistence.
Attribute | Description | Persistence |
---|---|---|
ldmpenable | live dump enabled | Controlled by persistence flags, bosboot required with the -P flag. |
dir | live dump directory | Takes effect immediately and upon system restart. |
freespc | live dump free space threshold | Takes effect immediately and upon system restart. |
ldmplevel | live dump level | Controlled by persistence flags, bosboot required with the -P flag. |
heapsz | live dump heap size | Takes effect immediately and upon system restart. |
duptype | duplicate dump suppression type | Takes effect immediately and upon system restart. |
maxfreeze | maximum recommended system freeze interval | Takes effect immediately and upon system restart. |
The following table lists system dump attributes and their persistence.
Attribute | Description | Persistence |
---|---|---|
sdmpenable | system dump enabled | Controlled by persistence flags, bosboot required with the -P flag. |
legacyenable | dump legacy components | Takes effect immediately, and upon system restart with the -P flag. No bosboot required with the -P flag. |
sdmplevel | system dump level | Controlled by persistence flags, bosboot required with the -P flag. |
copydir | copy directory | Takes effect immediately and upon system restart. |
forcecopy | brings up the boot time menu if cannot copy | Takes effect immediately and upon system restart. |
keyseq | key sequences always cause a dump | Takes effect immediately and upon system restart. |
primary | the primary dump device | Takes effect immediately, and upon system restart with the -P flag. No bosboot required with the -P flag. |
secondary | the secondary dump device | Takes effect immediately, and upon system restart with the -P flag. No bosboot required with the -P flag. |
The copydir, forcecopy, keyseq, primary, and secondary attributes behave like their sysdumpdev command counterparts specified with the sysdumpdev -d, -D, -k/-K, -p and -s flags. For more information, see the sysdumpdev command in AIX Version 7.1 Commands Reference, Volume 5.
This command returns the following exit values:
Item | Description |
---|---|
0 | Successful completion. |
non-zero | An error occurred. This command fails under the following
conditions:
|
Only the root user can use this command.