Traditionally,application core dumps leave an image with the filename "core". If the same application core dumps again, the previous core image will simply be overwritten with the same filename "core".
For unique file naming, based on the then process id, AIX has a facility to enable unique application core dumps. This can be useful if a situation arises whereby an application is regularly core dumping. Successive core dump images can then be retained for more comprehensive debugging.
To set uppersistent unique naming for core dumps in 5.3 or 6.1 AIX, run the chcore command:
e.g.
#lscore
compression:off
pathspecification: on
corefilelocation: /corefiles
namingspecification: off <<<
# chcore -non
#lscore
compression:off
pathspecification: on
corefilelocation: /corefiles
namingspecification: on <<<
As a result of the chcore command, subsequent core dumps will have the following naming convention:
core.pid.ddhhmmss,where:
pid is ProcessID
dd is Day of the month
hh is Hours
mm is Minutes
ss is Seconds
e.g.
-rw-r--r-- 1root system 389223 Feb 20 17:40 core.20136.20234026
-rw-r--r-- 1root system 180423 Feb 20 17:40 core.20138.20234059
-rw-r--r-- 1root system 221923 Feb 10 14:20 core.10138.20202033
Similarly, the default application core dump location can be set (persistently):
# chcore -l/tmp