#!/bin/sh # name: host03_checkdisk # # checkdisk_net, host02_checkdisk, and host03_checkdisk scripts # check predictive disk failure on the hosts. # # Described in the BigAdmin submitted tech tip: # http://www.sun.com/bigadmin/content/submitted/net_sys_autocheck.jsp # DISKERROR=/net/host02/report/host03_diskerror.txt PATH=/usr/bin; export PATH if iostat -En | egrep "Media Error: 1|Predictive Failure Analysis: 1" > /dev/null then echo "host03 Disk Error:\n" > $DISKERROR echo "Use iostat -En to diagnose\n" >> $DISKERROR iostat -En | egrep "Media Error: 1|Predictive Failure Analysis: 1" >> $DISKERROR fi ############################################################################## ### This script is submitted to BigAdmin by a user of the BigAdmin community. ### Sun Microsystems, Inc. is not responsible for the ### contents or the code enclosed. ### ### ### Copyright Sun Microsystems, Inc. ALL RIGHTS RESERVED ### Use of this software is authorized pursuant to the ### terms of the license found at ### http://www.sun.com/bigadmin/common/berkeley_license.jsp ##############################################################################