Gaurav Batta has published this nice script to restart the OEM agent when it has failed:
$ cat agent_check.sh
#!/usr/bin/ksh
#
agent_status=`ps -ef|awk '{print $8}'|grep agent10g/bin/emagent`
if [[ -z $agent_status ]]
then
$AGENT_HOME/bin/emctl start agent
echo Agent started on server `hostname` at `date`
else
echo Agent is running fine on server `hostname` at `date`
fi
It is running every 30min.
crontab –l
00,30 * * * * /home/oemagent/agent_check.sh >> /home/oemagent/agent_status.log
The really very helpful article, Thank you for sharing
Oracle Fusion SCM Online Training
The blog was absolutely fantastic! Lot of information is helpful in some or the other way. keep sharing
Oracle Fusion Financials Online Training
Oracle Fusion HCM Online Training
Oracle Fusion SCM Online Training
Nice Blog Really excellent information and thank you for giving your valuable information
Big Data and Hadoop Online Training
Big Data Hadoop Training
Hyderabad
Very good article, very nice information, thanks for sharing.
Regards
Tirupati darshan online booking
Tirupati darshan online booking
Tirupati package from Bangalore
Best Tirupati package from Bangalore
Tirupati darshan package from Bangalore
Tirupati tour package from Bangalore