Gaurav Batta has published this nice script to restart the OEM agent when it has failed:

$ cat
agent_status=`ps -ef|awk '{print $8}'|grep agent10g/bin/emagent`

if [[ -z $agent_status ]]
$AGENT_HOME/bin/emctl start agent
echo Agent started on server `hostname` at `date`
echo Agent is running fine on server `hostname` at `date`

It is running every 30min.
crontab –l

00,30 * * * * /home/oemagent/ >> /home/oemagent/agent_status.log

One Response so far.

  1. Durga says:

    The really very helpful article, Thank you for sharing

    Oracle Fusion SCM Online Training

Powered by Blogger.

Page Views

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