How can we add RESTRICT_FORCE_STARTJOB attribute in BOX job, also I tried to add the same in cmd job but after that i cannot force_start it when it was not running, could you please help in this?
RESTRICT_FORCE_STARTJOB is an WAAE instance-level setting/variable that tells the Scheduler to restrict running multiple instances of a job while the job is in STARTING, RUNNING, WAIT_REPLY (i5/OS) or SUSPENDED statuses. It affects jobs and boxes alike.
Could you please clarify how you added this variable in a cmd job? Did you use the envvars attribute? If yes, then that is not how this variable is to be set.
If you'd want RESTRICT_FORCE_STARTJOB to be set, then append the following line to either the $AUTOUSER/autosys.sh.`hostname` profile file or to the /etc/init.d/waae_sched.$AUTOSERV script, and restart the Scheduler service (unicycle waae_sched.$AUTOSERV).
RESTRICT_FORCE_STARTJOB=1; export RESTRICT_FORCE_STARTJOB
I hope it helps.
Thank you for posting your question. Could you please tell me what product this is related to, so that I may move this question to the correct product community?
Sorry I forgot that, this is related to Autosys and we are using CA workload Control center 11.3 version application.
Thank you Chandru for your response,
I have set the RESTRICT_FORCE_STARTJOB=1 to the profile attribute.
My sample Jil file :
insert_job: XXXXXXX.AUTO_CHECK job_type: cmdmachine: XXXXXXXowner: omkmax_run_alarm: 0alarm_if_fail: yavg_runtime: 90508date_conditions: ytimezone: GMTdays_of_week: su,mo,tu,we,th,fr,sastart_times: "09:00"profile: RESTRICT_FORCE_STARTJOB=1std_out_file: /opt/CA/WorkloadAutomationAE/logs/agent_test.outstd_err_file: /opt/CA/WorkloadAutomationAE/logs/agent_test.errcommand: /home/scripts/om.sh
That's incorrect use of the variable. Please see previous response for the correct implementation procedure.
Thanks & Regards,
Okay, Thanks Chandru
I have one question, Is this utility would work in 11.3 version?
Correct the variable and the eem methods work in 11.3.6 SP6Cum1
Nothing in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.
Confidentiality Note: This message is intended only for the person or entity to which it is addressed. It may contain confidential and/or privileged material. Any review, transmission, dissemination or other use, or taking of any action in reliance upon this message by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this message in error, please contact the sender and delete it from your computer.
Yes the varaiable RESTRICT_FORCE_STARTJOB works in the 11.3 version also.
Hi Om Knaugo,
Just want to reiterate the following.
1. The RESTRICT_FORCE_STARTJOB is not a attribute which can be set in the Job definition
2. The RESTRICT_FORCE_STARTJOB is an environment variable which needs to be set in a profile script of the user who starts the scheduler service. It can also be added to the $AUTOUSER/machine name scripts as mentioned above which are called into the user profile. The idea is that the environment needs to be set when the service is started.
3. The RESTRICT_FORCE_STARTJOB is a global setting for all the jobs in the autosys instance and is not specific to a particular job.
4. The RESTRICT_FORCE_STARTJOB prevents the jobs being force started when the previous run has not yet completed.
Thank You very much Darryl for your prompt response. Above details will help us a lot.
Do remember to mark the response that answered your query as correct.
use eem to restrict it at the job level per user
Retrieving data ...