#!/usr/bin/bash
#########################################
######### TESTING SCRIPT#######
########## SUN CLUSTER Info##############
#####VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
echo "From:chittibabu.oracle@gmail.com" >"/tmp/output1"
echo "To:chittibabu.oracle@gmail.com">>"/tmp/output1"
echo "Subject:SUNCLUSTER CONFIGURATION INFO: TESTNODE1 & TESTNODE 2(testdgrg) ">>"/tmp/output1"
echo "Content-type: text/html">>/tmp/output1
echo "<html>">>"/tmp/output1"
echo "<body>">>"/tmp/output1"
echo "<table width=100%>">>"/tmp/output1"
echo "<tr bgcolor="#00FF00"><pre>" >>/tmp/output1
/usr/cluster/bin/clrg status testdbrg >>"/tmp/output1"
echo "</pre></tr>" >>/tmp/output1
echo "<tr bgcolor="#D8BFD8"><pre>" >>/tmp/output1
/usr/cluster/bin/clrs status -g testdbrg >>"/tmp/output1"
echo "</pre></tr>" >>/tmp/output1
echo "<tr bgcolor="#D2B48C"><pre>" >>/tmp/output1
/usr/cluster/bin/clrg show -v testdbrg >>"/tmp/output1"
echo "</pre></tr>" >>/tmp/output1
echo "</table>" >>"/tmp/output1"
echo "</body>">>"/tmp/output1"
echo "</html>">>"/tmp/output1"
cat "/tmp/output1"|mail chittibabu.oracle@gmail.com
>"/tmp/output1"
#########################################
######### TESTING SCRIPT#######
########## SUN CLUSTER Info##############
#####VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
echo "From:chittibabu.oracle@gmail.com" >"/tmp/output1"
echo "To:chittibabu.oracle@gmail.com">>"/tmp/output1"
echo "Subject:SUNCLUSTER CONFIGURATION INFO: TESTNODE1 & TESTNODE 2(testdgrg) ">>"/tmp/output1"
echo "Content-type: text/html">>/tmp/output1
echo "<html>">>"/tmp/output1"
echo "<body>">>"/tmp/output1"
echo "<table width=100%>">>"/tmp/output1"
echo "<tr bgcolor="#00FF00"><pre>" >>/tmp/output1
/usr/cluster/bin/clrg status testdbrg >>"/tmp/output1"
echo "</pre></tr>" >>/tmp/output1
echo "<tr bgcolor="#D8BFD8"><pre>" >>/tmp/output1
/usr/cluster/bin/clrs status -g testdbrg >>"/tmp/output1"
echo "</pre></tr>" >>/tmp/output1
echo "<tr bgcolor="#D2B48C"><pre>" >>/tmp/output1
/usr/cluster/bin/clrg show -v testdbrg >>"/tmp/output1"
echo "</pre></tr>" >>/tmp/output1
echo "</table>" >>"/tmp/output1"
echo "</body>">>"/tmp/output1"
echo "</html>">>"/tmp/output1"
cat "/tmp/output1"|mail chittibabu.oracle@gmail.com
>"/tmp/output1"