Question on cyclic job writing to GAS on NOTOK:

Tools and several solutions to manage Control-M products
Post Reply
User avatar
jarnsbarger
Nouveau
Nouveau
Posts: 3
Joined: 08 Oct 2010 12:00

Question on cyclic job writing to GAS on NOTOK:

Post by jarnsbarger » 08 Oct 2010 1:36

Hello,
I have a few cyclic jobs that run every 5 mins, picks up log files and moves them to a safe folder. If there is, or is not a log file to pick up, the job simply resets for its next run. However, if there isn't a log file, it writes an entry into the GAS; That fills up rather fast from alerts that we do not worry about.

On to my question:
Is there a way to prevent a job from writing its NOTOK alert to the GAS?


Sorry if this has been asked before, and thank you for your time.

JPaul

Post by JPaul » 08 Oct 2010 9:58

Hello,
Did You think about to use the On/Do option of the steps tab?
The simpliest way would be to code: On NOTOK - Do OK,
but if the script returns a certain compstat for the particular situation, it would be more elegant to use perhaps something like: On COMPSTAT=3 - Do OK.
Hope this shows you the way how to...

Greetings!

User avatar
brownbag
Nouveau
Nouveau
Posts: 161
Joined: 11 Oct 2007 12:00
Location: Melbourne

Question on cyclic job writing to GAS on NOTOK:

Post by brownbag » 08 Nov 2010 1:10

If you are trying to suppress the default 'Ended NOTOK' message that occurs when any job fails, you can do this by changing the EM system parameter ‘AlertOnAbend’ to ‘0’ (default = '1').

If it is just this job you are worried about, it is best to look for the specific message relating to the log file and then if that is found, set the job to OK.
So just use:
On Statement = "*", Code = "*log file not found*" (or whatever is suitable).
Do OK

Post Reply