load_notify.sh - Sends email when a volume needs to be imported or loaded
∕opt∕SUNWsamfs∕examples∕load_notify.sh
prg_name
pid
log_level
msg_no
vsn
SUNWsamfs
The ∕etc∕opt∕SUNWsamfs∕scripts∕load_notify.sh
script is called by the appropriate media-changer daemon
when a requested volume is not in a library, is
not marked unavailable, and the attended
state is set
to yes
.
Appropriate media-changer daemons
include sam-genericd
, sam-stkd
, sam-cloudd
,
and so on. For more information on the media-changer daemons,
see the sam-robotsd
(1m) man page.
By default, this script sends email to root
with the following message:
Oracle HSM needs VSN vsnxxx manually loaded or imported. Check preview display.
To enable this feature,
copy ∕opt∕SUNWsamfs∕examples∕load_notify.sh
to ∕etc∕opt∕SUNWsamfs∕scripts∕load_notify.sh
and
modify it to take the desired action for your installation.
This script accepts the following arguments:
The name of the program that is calling this script.
The process ID of the program that is calling this script.
Log priority level.
An integer number such
that 0
≤ log_level ≤ 7
.
0
is highest priority, and 7
is lowest priority.
The message number as found in the message catalog.
The volume serial name (VSN) identifier of the volume that needs to be imported or loaded.
∕opt∕SUNWsamfs∕examples∕load_notify.sh