HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)
c
coreadm(1M) coreadm(1M)
NAME
coreadm - core file administration
SYNOPSIS
coreadm [-g pattern][-I pattern][
-e option][-d option]
coreadm -P {enabledisable}[pid...]
coreadm -p pattern [pid...]
coreadm -p pattern -E command [arguments]
coreadm [pid...]
DESCRIPTION
The coreadm command is used for user space application core file management by specifying the name
and the location of core files for abnormally terminating processes. See core(4).
The command can be used to control system wide and process specific core file placement. The path and
pattern is used by the operating system when generating a core file.
The first form shown in SYNOPSIS can be used to control system wide core file settings or specify a pat-
tern for init(1M). System administration privilege is required to change global core file settings. Global
core file setting, including the setting for init(1M), is preserved across system reboot.
Non-privileged users can change per-process core file settings for processes owned by that user. The real or
the effective user ID of the calling process must match the real or the saved user ID of the receiving pro-
cess unless the effective user ID of the calling process is a user who as appropriate privileges.
A core file name pattern is a normal file system path name with embedded variables, specified with a lead-
ing
% character, that are expanded from values in effect when a core file is generated by the operating sys-
tem. An expanded pattern over MAXPATHLEN will be truncated to MAXPATHLEN .
The possible pattern variables are:
%p process ID
%xp Process ID in hex
%u effective user-ID
%xu effective user-ID in Hex
%g effective group-ID
%xg effective group-ID in Hex
%c thread’s CPU number when the core file was created
%f executable file name, up to a maximum of MAXCOMMLEN characters
%n system node name (uname -n)
%t time-stamp (in UTC time format)
%% literal %
Options
The following options are supported for coreadm:
-d option...
-e option... Disable (-d) or enable (-e) the specified core file option. The -d and -e options can only
be exercised with root privilege.
The valid options for -d and -e are:
global Allow (or disallow) core dumps using the global core pattern.
process Allow (or disallow) core dumps using the per-process core pattern.
global-setid Allow (or disallow) core dumps using the global core pattern for setid
processes.
proc-setid Allow (or disallow) core dumps using the process core pattern for
setid processes.
-g pattern Set the global core file name pattern to pattern. The pattern must start with an absolute
path name which exists and can contain any of the special % variables described in the
DESCRIPTION section. This option can only be exercised by the super-user.
-I pattern This is identical to specifying a per-process pattern only that the setting is applied to
init(1M) and is preserved across reboot.
126 Hewlett-Packard Company − 1 − HP-UX 11i Version 3: February 2007