#!/bin/sh
#
# $Id: dev_down.sh,v 1.6.16.1 2006/02/08 20:02:17 jdunn Exp $

#    SAM-QFS_notice_begin
#
#      Solaris 2.x Sun Storage & Archiving Management File System
#
#      Copyright (c) 2006 Sun Microsystems, Inc.
#      All Rights Reserved.
#
#      Government Rights Notice
#      Use, duplication, or disclosure by the U.S. Government is
#      subject to restrictions set forth in the Sun Microsystems,
#      Inc. license agreements and as provided in DFARS 227.7202-1(a)
#      and 227.7202-3(a) (1995), DRAS 252.227-7013(c)(ii) (OCT 1988),
#      FAR 12.212(a)(1995), FAR 52.227-19, or FAR 52.227-14 (ALT III),
#      as applicable.  Sun Microsystems, Inc.
#
#    SAM-QFS_notice_end


#	/etc/opt/SUNWsamfs/scripts/dev_down.sh - Take action in the
#		event a device is marked down by SAM.
#
#	arguments:	$1:	caller
#	                $2:	caller's pid
#	                $3:	logging level
#	                $4:	message catalog number
#	                $5:	device identifier
#
# Change the email address on the following line to send email to
# the appropriate recipient.
/usr/ucb/mail -s "SAM-FS Device downed" root <<EOF
`date`
SAM-FS has marked the device $5,
as down or off.  Check device log.
EOF

