Determine whether you want to set a per-process or global core file and select one of the following:
Set a per-process file name pattern.
$ coreadm -p $HOME/corefiles/%f.%p $$ |
Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
Set a global file name pattern.
# coreadm -g /var/corefiles/%f.%p |