save_core.sh - Oracle HSM sam-robotsd
(1m) exception notification script
∕etc∕opt∕SUNWsamfs∕scripts∕save_core.sh
prg_name
pid
severity
msg_no
msg
SUNWsamfs
The
∕etc∕opt∕SUNWsamfs∕scripts∕save_core.sh
script is executed by sam-robotsd
(1m) after it encounters abnormal
or exceptional events. A site-specific version of this script can be
substituted in the installed location.
This script labels core files and prevents existing core files from
being overwritten as more are generated.
As released,
∕etc∕opt∕SUNWsamfs∕scripts∕save_core.sh
renames the sam-robotsd
(1m) child core
files to include the program name, process ID, and date.
The sam-robotsd
(1m) daemon executes
∕etc∕opt∕SUNWsamfs∕scripts∕save_core.sh
with the following arguments:
The name of the program that is calling this script.
The process ID of the program that is calling this script.
A keyword that identifies the severity and the
syslog
level of the event. The keywords are as follows:
emerg
, alert
, crit
, err
, warning
,
notice
, info
, and debug
.
The message number as found in the message catalog.
The text of the translated message string. This script expects this message to be in a 2-field format. The first field indicates the program that caused the core dump. The second field is the process ID of the program that caused the core dump.