Page 1 of 1
Resetting Jobs From Command Prompt
Posted: Fri Jun 29, 2012 5:55 am
by sjordery
Hi,
I am running 100+ instances of a Multi-Instance Sequence job. When I need to reset the aborted jobs , one way to reset them manually one by one via Director. But its a very slow process.
Is there any command line option available to reset the jobs via command line?
Thanks,
Sjordery.
Posted: Fri Jun 29, 2012 7:14 am
by chulett
Yes, one of the dsjob run modes is RESET.
Posted: Fri Jun 29, 2012 9:15 am
by sjordery
Thanks Craig. I will get back to the post after my workout.
Regards,
Sjordery.
Posted: Sat Jun 30, 2012 10:23 am
by sjordery
Hi,
/opt/IBM/InformationServer/Server/DSEngine/bin/dsjob run -mode RESET Project_P1 Test_job1
Upon executing the above command to reset the job Test_job1, I am getting below error.
Invalid/unknown primary command switch.
Command Syntax:
dsjob [-file <file> <domain> <DataStage server> | -domain <domain> -user <user> -password <password> -server <DataStage server>]
<primary command> [<arguments>]
Valid primary command options are:
-run
-stop
-lprojects
-ljobs
-linvocations
-lstages
-llinks
-projectinfo
-jobinfo
-stageinfo
-linkinfo
-lparams
-paraminfo
-log
-logsum
-logdetail
-lognewest
-report
-jobid
-import
Could anyone please send me the right syntax?
Regards,
Sjordery.
Posted: Sat Jun 30, 2012 10:55 am
by pandeesh
i believe it should be:
Code: Select all
/opt/IBM/InformationServer/Server/DSEngine/bin/dsjob -run -mode RESET Project_P1 Test_job1
Posted: Sat Jun 30, 2012 2:25 pm
by chulett
As noted, it doesn't know what "run" is but a careful examination of the valid options listed shows they all start with a dash so "-run".
![Wink :wink:](./images/smilies/icon_wink.gif)