Forum Discussion

jayjay00's avatar
jayjay00
Level 3
9 years ago

Opscenter/netbackup - SQL query to have a weekly report: Policy with start Time and End Time

Hello, The goal is to have a gantt diagramm (made with excel) for the last week that show for each policy the start time and the end time. I found some report on opscenter to have this kind of ...
  • RiaanBadenhorst's avatar
    9 years ago

    Try this

     

    SELECT
    domain_JobArchive.policyname as "Policy",
    domain_JobArchive.statuscode as "Status",
    UTCBigIntToNomTime(domain_JobArchive.startTime) as 'Start Time',
    UTCBigIntToNomTime(domain_JobArchive.endTime) as 'End Time'
    FROM
    domain_jobarchive
    WHERE
    domain_JobArchive.type in (0) AND (domain_JobArchive.parentjobid = domain_JobArchive.id)
    ORDER BY
    'Start Time'