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

8 Responses so far.

  1. Durga says:

    The really very helpful article, Thank you for sharing

    Oracle Fusion SCM Online Training

  2. Sravani says:

    I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.

    Oracle Fusion HCM Online Training

  3. sushma says:

    Hey Really Thanks for sharing the best information regarding category, hope you will write more great blogs.
    Oracle Fusion Financials Online Training

  4. harsha says:

    Really thanks for sharing such a wonderful blog.
    Oracle Fusion Financials Online Training

  5. Thank you for sharing such a nice and interesting blog and really very helpful article

    Oracle Fusion SCM Online Training

  6. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.

    Oracle Fusion Financials Online Training

  7. Very interesting blog Really excellent information and thank you for giving your valuable information
    Oracle Fusion HCM Online Training

  8. Thank you for sharing such a nice and interesting blog and really very helpful article
    Oracle Fusion SCM Online Training

Powered by Blogger.

Page Views

- Copyright © Emre Baransel - Oracle Blog -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -