/build/static/layout/Breadcrumb_cap_w.png

K1000 Report Critical Patches with un-patched systems by number

This is a follow up report to my post yesterday, K1000 Report of Critical Patches deployed grouped by Vendor

I wanted the detail as well to delve into our delivery issues and make sure we are patching as effectively as possible.

Here is what I came up with:

Title: Patches with un-patched systems by number of un-pactched systems

Category:Patching

Description: Lists Critical Patches grouped by vendor ordered by most requiring patch.

Output Types: HTML: CSV: TEXT:

SQL Select Statement:
Select P.VENDOR AS 'Crtitical Patches by Vendor',
P.TITLE as TITLE,
COUNT(CASE WHEN S.STATUS='NOTPATCHED' THEN S.MACHINE_ID END) as UNPATCHED
from PATCHLINK_MACHINE_STATUS S, MACHINE, KBSYS.PATCHLINK_PATCH P, PATCHLINK_PATCH_STATUS PS
where
MACHINE.ID = S.MACHINE_ID and
PS.PATCHUID = P.UID and
S.PATCHUID = P.UID and
P.IMPACTID like "Critical" and
P.IS_SUPERCEDED = 0 and
PS.STATUS=0 and
S.STATUS='NOTPATCHED'
group by P.UID
order by P.VENDOR, UNPATCHED DESC

Break on Columns: Crtitical Patches by Vendor


Comments

  • Tried and got error listed below..

    ===============================

    mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SQL Select Statement:
    Select P.VENDOR AS 'Crtitical Patches by Vendor',
    P.TIT' at line 1] in EXECUTE(
    "SQL Select Statement:
    Select P.VENDOR AS 'Crtitical Patches by Vendor',
    P.TITLE as TITLE,
    COUNT(CASE WHEN S.STATUS='NOTPATCHED' THEN S.MACHINE_ID END) as UNPATCHED
    from PATCHLINK_MACHINE_STATUS S, MACHINE, KBSYS.PATCHLINK_PATCH P, PATCHLINK_PATCH_STATUS PS
    where
    MACHINE.ID = S.MACHINE_ID and
    PS.PATCHUID = P.UID and
    S.PATCHUID = P.UID and
    P.IMPACTID like "Critical" and
    P.IS_SUPERCEDED = 0 and
    PS.STATUS=0 and
    S.STATUS='NOTPATCHED'
    group by P.UID
    order by P.VENDOR, UNPATCHED DESC LIMIT 0") - trouble-shooter 11 years ago
    • Do you have a MySQL tool to test the query? what version of Kbox Server are you running?

      This is built against the 5.3.47927 schema.

      Scott - sklauminzer 11 years ago
    • I know I am coming to the party 5-years too late, but the first thing I noticed was that "Critical" was spelled "Crtitical" in a couple of places. I corrected this before testing the report and it works okay on my end. - cwhiteUSSC 5 years ago
This post is locked
 
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