/build/static/layout/Breadcrumb_cap_w.png

Report for patches on a certain machine

I wanted to know what the script would need to look like if I just wanted to run a report on one machine in particular (ex. DC) and show all the patches on that machine and what patches are missing. If it could also show the date it was patched then that would be awesome as well!!

 

Thanks in advance guys!!


0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: dugullett 12 years ago
Red Belt
5

Something like this? DEPLOY_STATUS_DT is when Kace deployed. STATUS_DT will be when it was patched other than Kace. Not for sure will work best for you.

Replace DC% with your machine name. 

SELECT PP.TITLE, STATUS, DEPLOY_STATUS_DT AS DATE_PATCHED

FROM PATCHLINK_MACHINE_STATUS P

JOIN KBSYS.PATCHLINK_PATCH PP ON PP.UID = P.PATCHUID

JOIN MACHINE M ON M.ID = P.MACHINE_ID

WHERE M.NAME LIKE 'DC%'

ORDER BY STATUS DESC

Don't be a Stranger!

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

Sign up! or login

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