Quantcast
Channel: Symantec Connect - Backup and Recovery - Discussions
Viewing all articles
Browse latest Browse all 6307

Reporting - success & post failed jobs

$
0
0
I need a solution

Hi

I need some help with creating query.

I need report that ll give me input status by policy name... 

 - if job is successfully finished

 - if job is still runing

 - if job was repeated and how it was repeated (manually or automatic) and then if it was successful or failed

 - and if posible if it was successful job to check if it was done within RPO time.

I would need for one week separately for each day.

My query till now:

SELECT domain_Job.policyName AS "Policy Name",

CASE WHEN (UTCBigintToNOMTime(domain_Job.endTime)-(UTCBigintToNOMTime(domain_Job.startTime))<0 THEN "running"
ELSE "end"
AS "Status",

CASE WHEN domain_Job.statusCode in (0,1) AND status="end" THEN "success"
WHEN domain_Job.statusCode in (0,1) AND status="running" THEN "run"
ELSE "failed"
END AS "End status"

FROM domain_job
WHERE datediff(day,UTCBigintToNOMTime(domain_Job.startTime),CURRENT DATE)<=7
AND datediff(day,UTCBigintToNOMTime(domain_Job.startTime),CURRENT DATE)>=0
AND domain_Job.type=0
AND domain_Job.isValid=1;

Thanks for any help ;)


Viewing all articles
Browse latest Browse all 6307

Trending Articles