Identify the result of a subsequent process crash.

The following information describes the current dump configuration of your server:

Assume that the following command lines have been run on a system:
(root) # coreadm –g $HOME/var/core/%m.core.%f.%t
(non-root) $ coreadm –p core.%f.%p
Identify the result of a subsequent process crash.

The following information describes the current dump configuration of your server:

Assume that the following command lines have been run on a system:
(root) # coreadm –g $HOME/var/core/%m.core.%f.%t
(non-root) $ coreadm –p core.%f.%p
Identify the result of a subsequent process crash.

A.
A copy of a core file will appear in /var/core.

B.
A copy of a core file will appear in the process’ current working directory.

C.
The root copy will include the taskid of the process.

D.
The nonroot copy will include the day of the process crash.

E.
The global format will override the per-process format.

F.
The global core dump is disabled, so a core file will not be saved.

Explanation:
* -p pattern
Set the per-process core file name pattern to pattern for each of the specified process-IDs. The
pattern can contain any of the special % variables
* Variables:
%f, executable file name, up to a maximum of MAXCOMLEN characters
%p, process-ID
* Example. The core file name pattern:
/var/core/core.%f.%p
would result, for command foo with process-ID 1234, in the core file name: /var/core/core.foo.1234
* Example. Setting the core file name pattern
When executed from a user’s $HOME/.profile or $HOME/.login, the following command sets the
core file name pattern for all processes run during the login session:
example$ coreadm -p core.%f.%p $$
$$ is the process-id of the currently running shell. The per-process core file name pattern is
inherited by all child processes.
Note (see synopsis 2 below).
* The coreadm command is used to specify the name and location of core files produced by
abnormally-terminating processes.
SYNOPSIS
coreadm [-g pattern] [-i pattern] [-d option…] [-e option…]
coreadm [-p pattern] [pid…]
coreadm –u
The first form shown in the synopsis can be executed only by the super-user and is used to
configure system-wide core file options, including a global core file name pattern and a perprocess core file name pattern for the init(1M) process.
The second form can be executed by non-privileged users and is used to specify the file name
pattern to be used by the operating system when generating a per-process core file.



Leave a Reply 4

Your email address will not be published. Required fields are marked *


wholesale Nuggets 2014 jerseys

wholesale Nuggets 2014 jerseys

buy Kings and cheap jerseys free shipping by official cheap china Jerseys and wholesale jerseys shop. easy 365-days returns.