Documente Academic
Documente Profesional
Documente Cultură
/bin/sh
#this script is to perform health check to the system.
#########################
# Name:
Health Check Script
#
# Call:
Excecuting the script or cronjob Or By Run it Manually
#
# Purpose:
Perform Hardware Audit & Health check on the system to scan and
exam
#
# Created:
2011-03-20/, Samer Odeh
#
# Revised:
0
#
##########################
#/usr/bin/clear
/usr/bin/echo starting
# The Time and Date
TIME=`date +20%y%m%d `
HOST=`hostname`
OUTPUT_DIR=/tmp/
OUTPUT=$OUTPUT_DIR$HOST.$TIME.out
# Create Output File
/usr/bin/echo Creating output file
/usr/bin/touch $OUTPUT
/usr/bin/echo output file created
/usr/bin/echo
# >> $OUTPUT
############################Health Check###########################
>> $OUTPUT