on 12-26-2014 6:56 PM
Hi All,
Could you please clarify the below question.
1. We are planning to keep old jobs of a job definition along with OUTPUT files for 45 days. We want to keep job history(like start and end times) without output files for 2 years.Please advise how can we acheive this?
2. If I specify 45 days in the keep clause of each and every job definition. Is it going to delete only the old jobs along with job output files or is it going to delete complete job history greater than 45 days?.
3. Is it ok to specify the keep clause on a job chain instead on the child jobs or do I need to specify keep clause for child jobs too?
4. Instead of specifying 45 days in the keep clause of each and every job definition, how can I do this system wide?. Please advise.
Thank you in advance.
Regards,
Ramana
Hi All,
Is there anyone here who knows how to set Keep Amount via script.
I'm trying to modify keep clause of thousand jobs but no idea on how to get keep amount value and set it to jobs.
Advance thanks!
regards, Alyssa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alyssa,
Dont change all your definitions. Just introduce a global keep clause.
1) Create a Job Definition called System_Defaults_System: save and close
2) Open it again, set the required Keep Clause
Done, the System_ProcessKeepClauses maintenance job will take this setting in consideration.
Regards Gerben
No it is not this job that does this. The System_Defaults_System is only used for configuration, as mentioned above, the System_ProcessKeepClauses job will do the actual work. But as that is running every 15 minutes by default (look at job filter All Maintenance Jobs), there is nothing more you have to do.
Note that only jobs in an END (Completed, Killed, Unknown, Canceled, Error) state are removed. All other jobs (Waiting, Held, Console etc) will have to be set to an endstate first before they can be removed by the system.
Regards Gerben
thanks
Nanda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nanda,
Thank you so much for clearing my questions.
In my previous project, Our redwood team used to keep old jobs of a job definition along with OUTPUT files for 30 days and the job history(like start and end times) without output files for 1 years. I am not sure how they did it. I thought there should be some kind of mechanism to do it. To let you know we are using M33.92 version of CPS.
Regards,
Ram
Hi Ramana,
How did you do this one?. We are also in the same situation where we have to keep old jobs of a job definition along with OUTPUT files for 2 months and the job history(like start and end times) without output files for 2 years.
We are using M33.90 version.
Experts, can you please advise on this.
Regards,
Chandu
Hello Chandu
There are several solutions available. You can implement the Archiver Module which will also provide you with an archive of the output files as well.
Another option would be to sign up with Redwood Intelligence which provides you with a full datawarehouse and dashboard of all your job history including trend analysis.
Regards Gerben
Hi Chandu,
Since it is not possible to apply different keep clauses on jobs and output files out of the box, there is always gonna be extra cost. Your time, for example, also costs your company money.
If you do not want to go with the archiving or Redwood Intelligence solutions, you could create a job definition that you schedule daily at off-peak times that deletes the output files of jobs older than x days.
There are examples on scn of how to query the datamodel using executeObjectQuery for jobs with specific start times. If you then look into the API documentation at classes Job and JobFile, you should be all set. It does require some basic Java programming skills.
Regards,
HP
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.