/build/static/layout/Breadcrumb_cap_w.png

Patch Report

I would like a patch report to send to application owners detailing to them what patches are detected as not patched for their servers so I would need something like this:

SELECT MACHINE.NAME AS COMPUTER_NAME,
KBSYS.PATCHLINK_PATCH.TITLE AS PATCH_TITLE, PATCHLINK_MACHINE_STATUS.STATUS AS PATCH_STATUS, LABEL.NAME AS LABEL_NAME FROM (PATCHLINK_MACHINE_STATUS, LABEL, KBSYS.PATCHLINK_PATCH, MACHINE,
MACHINE_LABEL_JT,PATCHLINK_PATCH_STATUS)
WHERE PATCHLINK_MACHINE_STATUS.STATUS = 'NOTPATCHED'
and PATCHLINK_PATCH_STATUS.STATUS = 0
and PATCHLINK_MACHINE_STATUS.PATCHUID=KBSYS.PATCHLINK_PATCH.UID
and MACHINE.ID = PATCHLINK_MACHINE_STATUS.MACHINE_ID
and LABEL.ID=MACHINE_LABEL_JT.LABEL_ID
and MACHINE.ID=MACHINE_LABEL_JT.MACHINE_ID
and is_app=1 /*Select only Application Patches*/ and LABEL.NAME="Stake Holder - application owners name" /*Only show patches for label "Stake Holder - Name"*/ and Vendor like "%Microsoft%" /*Select only Microsoft as the Vendor*/ and KBSYS.PATCHLINK_PATCH.TITLE not like "%autorun%"
and KBSYS.PATCHLINK_PATCH.TITLE not like "%windows malicious software%"
order by KBSYS.PATCHLINK_PATCH.TITLE, MACHINE.NAME

I would like to add to this only active patches. Can anyone help.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: dchristian 13 years ago
Red Belt
2
Hey Caper,

I think this will work for you.

SELECT MACHINE.NAME AS COMPUTER_NAME,
KBSYS.PATCHLINK_PATCH.TITLE AS PATCH_TITLE,
PATCHLINK_MACHINE_STATUS.STATUS AS PATCH_STATUS,
LABEL.NAME AS LABEL_NAME
FROM PATCHLINK_MACHINE_STATUS,
LABEL,
KBSYS.PATCHLINK_PATCH,
MACHINE,
MACHINE_LABEL_JT,
PATCHLINK_PATCH_STATUS
WHERE PATCHLINK_MACHINE_STATUS.PATCHUID=KBSYS.PATCHLINK_PATCH.UID
and MACHINE.ID = PATCHLINK_MACHINE_STATUS.MACHINE_ID
and LABEL.ID=MACHINE_LABEL_JT.LABEL_ID
and MACHINE.ID=MACHINE_LABEL_JT.MACHINE_ID
and PATCHLINK_PATCH_STATUS.PATCHUID = KBSYS.PATCHLINK_PATCH.UID
and Vendor like "%Microsoft%" /*Select only Microsoft as the Vendor*/
and KBSYS.PATCHLINK_PATCH.TITLE not like "%autorun%"
and KBSYS.PATCHLINK_PATCH.TITLE not like "%windows malicious software%"
and KBSYS.PATCHLINK_PATCH.IS_APP =1 /* 0 for OS 1 for App */
and PATCHLINK_MACHINE_STATUS.STATUS = 'NOTPATCHED'
and PATCHLINK_PATCH_STATUS.STATUS = 0
and LABEL.NAME='Stake Holder - application owners name' /*Label to look for*/
ORDER by KBSYS.PATCHLINK_PATCH.TITLE, MACHINE.NAME
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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