System Administration Guide: Advanced Administration

Expanded Core File Names

If a global core file directory is enabled, core files can be distinguished from one another by using the variables described in the following table.

Variable Name 

Variable Definition 

%d

Executable file directory name, up to a maximum of MAXPATHLEN characters

%f

Executable file name, up to a maximum of MAXCOMLEN characters

%g

Effective group ID 

%m

Machine name (uname -m)

%n

System node name (uname -n)

%p

Process ID 

%t

Decimal value of time(2) 

%u

Effective user ID 

%z

Name of the zone in which process is executed (zonename)

%%

Literal % 

For example, if the global core file path is set to:

/var/core/core.%f.%p

and a sendmail process with PID 12345 terminates abnormally, it produces the following core file:

/var/core/core.sendmail.12345