/build/static/layout/Breadcrumb_cap_w.png

Compliance Report

Hi All

 

Little help if anyone has done this. I'm trying to create a Patch Compliance Report for a label. Not real good with SQL, any help would be great.

 

Thanks


0 Comments   [ + ] Show comments

Answers (1)

Posted by: jparkins 11 years ago
Second Degree Blue Belt
0

Here is a report that will list patches that have not been patched from a specific label. Just change 'Patch - SOX Windows OS' to your patch label and 'Windows Workstations (All)' to your machine label.

Select MACHINE.NAME as MACHINE_NAME, MACHINE.USER, MACHINE.USER_FULLNAME, SUM(S.STATUS='NOTPATCHED') AS NOT_PATCHED, GROUP_CONCAT(P.TITLE) AS PATCH_NAME
FROM  PATCHLINK_MACHINE_STATUS S,
        MACHINE,
        KBSYS.PATCHLINK_PATCH P,
        PATCHLINK_PATCH_LABEL_JT PL,
        LABEL PATCH_LABEL,
        LABEL MACHINE_LABEL,
        MACHINE_LABEL_JT ML,
        PATCHLINK_PATCH_STATUS PS
WHERE  MACHINE.ID = S.MACHINE_ID
        AND S.PATCHUID = P.UID
        AND PL.PATCHUID = P.UID
        AND PATCH_LABEL.ID = PL.LABEL_ID
        AND ML.MACHINE_ID = MACHINE.ID
        AND MACHINE_LABEL.ID = ML.LABEL_ID
        AND PS.PATCHUID= P.UID
        AND PS.STATUS = '0'
        AND S.STATUS = 'NOTPATCHED'
        AND PATCH_LABEL.NAME IN('Patch - SOX Windows OS')
        AND MACHINE_LABEL.NAME IN ('Windows Workstations (All)')
group by MACHINE_NAME
order by MACHINE_NAME, P.TITLE


Comments:
  • Thanks J will give it a try - terranced 11 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ