In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "what is the dsjob command". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the dsjob command".
Datastage's job can use the dsjob command to call job or get information about job, as well as running reports and logs.
The directory where DataStage is installed, such as C:\ Ascential\ DataStage\ Engine\ bin >
The syntax of dsjob is as follows:
Command Syntax:
Dsjob [- file | [- server] [- user] [- passwod]]
[]
Valid primary command options are:
-run runs job
-stop stops running job
-lprojects lists all the projects in server
-ljobs lists all the job in the specified project
-linvocations lists all the invocation in the specified job
-lstages lists all the stage in the specified job
-llinks lists all the link in the specified job
-projectinfo lists the information of the specified project
-jobinfo lists the information of the specified job
-stageinfo lists the information of the specified stage
-linkinfo lists the information of the specified link
-lparams lists all the parameter of the specified job
-paraminfo lists the information of the specified parameter
-log gets all the logs of job
-logsum gets all the logs of job
-logdetail gets the detailed log of job.
-lognewest
-report gets the detailed log of job.
-jobid
-I looked for the parameters of file, but I didn't find any good explanation. I hope the master can explain it.
-server datastage project name
-user user name
-password password
-primary command
-run
Invalid arguments: dsjob-run
[- mode]
NORMAL is running normally.
RESET reset
VALIDATE verifies whether job is feasible
[- param =]
Set variable value
[- warn]
How many records are warned by warn before job stops running
[- rows]
How many records have rows run before job stops running
[- wait]
How long does wait wait to stop running?
[- opmetadata]
[- disableprjhandler]
[- disablejobhandler]
[- jobstatus]
Status of Jobstatus operation
[- userstatus]
[- useid]
1 dsjob-server 10.240.12.67-user peace.zhao-password Yanzhang0717-run-mode NORMAL sysup1_MPHASIS_1 Sequential
The simplest operation
2 C:\ Ascential\ DataStage\ Engine\ bin > dsjob-server 10.240.12.67-user peace.zhao-password Yanzhang0717-run-mode NORMAL-jobstatus sysup1_MPHASIS_1 Sequential
Waiting for job...
Finished waiting for job
Job Status: (1)
Status code = 1
3 C:\ Ascential\ DataStage\ Engine\ bin > dsjob-server 10.240.12.67-user peace.zhao-password Yanzhang0717-run-mode NORMAL-param input=7.txt-param output=8.txt-j
Obstatus sysup1_MPHASIS_1 Sequential
Waiting for job...
Finished waiting for job
Job Status: (1)
Status code = 1
-stop
Invalid arguments: dsjob-stop [- useid]
Stop a running job
-lprojects
List the job in all server
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-server 10.240.12.67-user peace.zhao-password Yanzhang0717-lprojects
Empty
Study
Sysup1_MPHASIS
Sysup1_MPHASIS_1
Sysup1_MPHASIS_2
Sysup1_MPHASIS_3
Tttt
Up_20090204
Yes
Status code = 0
-lprojects
-ljobs
-linvocations
-lstages
-llinks
-lparams
The function and usage are similar to-lprojects.
-projectinfo gets information about project
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-projectinfo sysup1_MPHASIS_1
Host Name: 10.240.12.67
Project Name: sysup1_MPHASIS_1
Status code = 0
-jobinfo
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-jobinfo sysup1_MPHASIS_1 Sequential
Job Status: RUN OK (1)
Job Controller: not available
Job Start Time: Mon Jul 06 15:04:33 2009
Job Wave Number: 3
User Status: not available
Job Control: 0
Interim Status: NOT RUNNING (99)
Invocation ID: not available
Last Run Time: Mon Jul 06 15:04:42 2009
Job Process ID: 0
Invocation List: Sequential
Status code = 0
-linkinfo
-paraminfo
Same as getting project and job information
-report
Get the report run by job
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-report
Invalid arguments: dsjob-report [- useid] [report type >]
Report type = BASIC | DETAIL | XML
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-report sysup1_MPHASIS_1 Sequential BASIC
* * *
I don't know what to do. I don't know what to do. Sequential.
Date of completion: 2009-07-06 15:26:27
Starting time of the exhibition = 2009-07-06 15:04:33
Thank you for a long time = 2009-07-06 15:04:42
The lost time = 00:00:09
I don't know what to do. I don't know.
Status code = 0
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-report sysup1_MPHASIS_1 Sequential DETAIL
* * *
I don't know what to do. I don't know what to do. Sequential.
Date of completion: 2009-07-06 15:27:00
Starting time of the exhibition = 2009-07-06 15:04:33
Thank you for a long time = 2009-07-06 15:04:42
The lost time = 00:00:09
I don't know. I don't know if it's normal.
Number of input lines: Sequential_File_1.IDENT1, 7768800
The starting time of the train is = 2009-07-06 15:04:36, the end time is = 2009-07-06 15:04:41, and the clock is not available.
Expired time = 00:00:05
Number of rows: DSLink2, 7768800
Number of rows: DSLink2, 7768800
Status code = 0
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-report sysup1_MPHASIS_1 Sequential XML
Status code = 0
Operation of the log
-log writes logs to the specified job
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-log
Invalid arguments: dsjob-log
[- info |-warn]
Log message is read from stdin.
-logsum
Invalid arguments: dsjob-logsum
[- type]
[- max]
[- useid]
Get information about the runtime job
Max gets the most recent record
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-logsum-type INFO-max 10 sysup1_MPHAS
IS_1 Sequential
40 INFO Mon Jul 06 15:01:34 2009
Sequential..Sequential_File_1: I don't know what to do. Sequential..Sequential_File_1: I don't know what to do with the JPN-SJ.
IS users use the command box
41 INFO Mon Jul 06 15:01:34 2009
This is the end of the Sequential..Sequential_File_1.IDENT1 story.
44 INFO Mon Jul 06 15:04:33 2009
Environmental statistics settings: (.)
45 INFO Mon Jul 06 15:04:33 2009
Sequential: NLS JP-JAPANESE,JP-JAPANESE,JP-JAPANESE,JP-JAPANE for other countries
SE,JP-JAPANESE setting
46 INFO Mon Jul 06 15:04:34 2009
Sequential..Sequential_File_1.IDENT1: DSD.StageRun please tell me what to do
Let's start to talk about it. I don't know. I don't know.
47 INFO Mon Jul 06 15:04:34 2009
Sequential..Sequential_File_1.IDENT1: NLS JP-JAPANESE,JP-JAPA for other countries
NESE,JP-JAPANESE,JP-JAPANESE,JP-JAPANESE setting
48 INFO Mon Jul 06 15:04:34 2009
Sequential..Sequential_File_0: I don't know what to do. Sequential..Sequential_File_0: I don't know what to do with the JPN-SJ.
IS users use the command box
49 INFO Mon Jul 06 15:04:34 2009
Sequential..Sequential_File_1: I don't know what to do. Sequential..Sequential_File_1: I don't know what to do with the JPN-SJ.
IS users use the command box
50 INFO Mon Jul 06 15:04:41 2009
Sequential..Sequential_File_1.IDENT1: DSD.StageRun please tell me what to do
Thank you. (.)
52 INFO Mon Jul 06 15:32:32 2009
Dd (...)
Status code = 0
-logdetail
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-logdetail
Invalid arguments: dsjob-logdetail [- useid] []
First event id's first log id
Last event id, last log id.
If last event id is empty, it defaults to the details of first event id
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-logdetail sysup1_MPHASIS_1 Sequential 1
0 11
Event Id: 10
Time: Mon Jul 06 14:38:07 2009
Type: STARTED
User: MPHASISORTC\ peace.zhao
Message:
I don't know what to do. I don't know what to Sequential.
Event Id: 11
Time: Mon Jul 06 14:38:07 2009
Type: INFO
User: MPHASISORTC\ peace.zhao
Message:
I'm sorry, Sequential..Sequential_File_1.IDENT1, I'm sorry, I'm sorry.
-lognewest gets the last log id of the specified log type
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-lognewest
Invalid arguments: dsjob-lognewest [- useid] [
]
Event type = INFO | WARNING | FATAL | REJECT | STARTED | RESET | BATCH
C:\ Ascential\ DataStage\ Engine\ bin > dsjob-lognewest sysup1_MPHASIS_1 Sequential
INFO
Newest id = 52
Status code = 0
Thank you for your reading, the above is the content of "what is the dsjob command", after the study of this article, I believe you have a deeper understanding of what is the dsjob command, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.