Skip to content

Shell script for stopping and starting App server/PSUNX

July 15, 2010

This script can be scheduled with cronjob for auto reboot and cache clear for PeopleSoft Application server and Process schedular

#!/bin/ksh

. /export/home/pshrs1/.profile

DATE=`date +%m%d%y%H%M%S`

PS_HOME=/pshrs1/hrms

export PS_HOME

TUXDIR=/pshrm2/tuxedo81

export TUXDIR

echo `date` ” Stopping and starting hrs1 Application server…”

cd /pshrs1/hrms/appserv

psadmin -c shutdown -d hrs1 > /pshrs1/hrms/appserv/APPLOG/Stop_$DATE.log

psadmin -p stop -d HRS1 >> /pshrs1/hrms/appserv/APPLOG/Stop_DATE.log

sleep 10

echo `date` ” Clearing cache for Application server”

rm -rf /pshrs1/hrms/appserv/hrs1/CACHE/*

sleep 20

psadmin -c boot -d hrs1 > /pshrs1/hrms/appserv/APPLOG/Start_$DATE.log

psadmin -p start -d HRS1 >> /pshrs1/hrms/appserv/APPLOG/Start_$DATE.log

Advertisements

From → PeopleSoft

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: