mkcatalog.sh.html

### extract.sh
### 

WC_PROFILE=/opt/WAS9/AppServer/profiles/MyCo
WAS_HOME=/opt/WAS9/AppServer
WC_HOME=/opt/WCS70

RPT=/home/wasadmin/vreports

sname=`hostname`
qtime=`date +"%b %e, %Y %r"`
echo "$sname - $qtime - extract.sh starting... "


cat /dev/null > $RPT/${sname}_extract_status.txt 


### This file is too big to write to html
### Search indexer chokes
#$RPT/bin/header_rpt.sh $sname extract.sh    > $RPT/${sname}_extract.txt
#echo "
"                   >> $RPT/${sname}_extract.txt

if [ -f $WC_PROFILE/bin/wsadmin.sh ]
then
    cd /home/wasadmin/vreports/bin
    echo "$WC_PROFILE/bin/wsadmin.sh -jython -f extract.py"        >> $RPT/${sname}_extract.txt 2>&1
    $WC_PROFILE/bin/wsadmin.sh -username wcs7infra -password foo -jython -f extract.py >> $RPT/${sname}_extract.txt 2>&1
else
    echo "$sname - $qtime - wsadmin.sh is not installed on $sname" >> $RPT/${sname}_extract.txt
fi

qtime=`date +"%b %e, %Y %r"`
if [ -f /home/wasadmin/vreports/bin/WC_MyCo_config.properties ]
then
    cat /home/wasadmin/vreports/bin/WC_MyCo_config.properties       >> $RPT/${sname}_extract.txt
else
    echo "$sname - $qtime - extract.sh could not create WC_MyCo_Config.properties" >> $RPT/${sname}_extract.txt
fi

#echo "
" >> $RPT/${sname}_extract.txt #echo " " >> $RPT/${sname}_extract.txt #echo " " >> $RPT/${sname}_extract.txt qtime=`date +"%b %e, %Y %r"` echo "$sname - $qtime - extract.sh complete"