Hello,
does anyone havea shell script to check the status of the OEM Agent running on a solaris 10 box?
Basically, I am rubbish at scripting, but I'd like a procedure which will
do the following:
1) cd into this directory '/u01/app/oracle/product/10.2.0/agent10g/bin
2) perform a command 'emctl status agent'
3) The status will either say Agent is running or not running
4) if the Agent is running - then I would like that in an output file, called
agent_running.log if not running - then an output file called agent_not_running.log
I could schedule this job via cron on a hourly basis
I know it appears quite simple, but like I said I am not too great on shell scripting
Thanks in advance