Hi ,
How do we get the number of warnings in the current run of the job ?
We tried with
dsjob -logsum -type WARNING <project> <job> | grep -c WARNING
It gives no of warnings in the whole lot of jobs present in the director.
We want the number of warnings in the log of the current job ran .
No of warning in the current job run
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Hello Archana,
first you need to find out the latest job control event ID.
you can use the below command
dsjob -logsum -type STARTED -max 2 DSProj DSJobName
it will give you two even id, just subtract them and use the result in the below command to get the count of warning messages in the current run of the ds job.
dsjob -logsum -max [Result] DSProj DSJobName | grep warning |wc -l
first you need to find out the latest job control event ID.
you can use the below command
dsjob -logsum -type STARTED -max 2 DSProj DSJobName
it will give you two even id, just subtract them and use the result in the below command to get the count of warning messages in the current run of the ds job.
dsjob -logsum -max [Result] DSProj DSJobName | grep warning |wc -l
Regards,
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.