/build/static/layout/Breadcrumb_cap_w.png

KACE report in SQL

I have the following report that gives me info on a patching schedule. I'm trying to add in system discription and last logged on user. I'm not great with SQL but i'm getting errors. I this due to pulling from the schedule?



select M.NAME as NAME, M.IP as IP_ADDRESS, KT.PHASE as STATUS, Concat('Patched: ', PS.PATCHED,' , ','Not Patched: ',  PS.NOTPATCHED,' , ','Detect Failures: ',  PS.DETECT_FAILURES) as PATCH_RESULTS, PS.LAST_RUN as DATE 

from MACHINE M

left join PATCHLINK_SCHEDULE_MACHINE_STATUS PS on PS.MACHINE_ID = M.ID

left join PATCHLINK_SCHEDULE PSS on PSS.ID = PS.PATCHLINK_SCHEDULE_ID

left join KBSYS.KONDUCTOR_TASK KT on KT.KUID = M.KUID

where PSS.DESCRIPTION = 'Deploy-Adobe Patching'

and KT.TYPE = PSS.KONDUCTOR_TASK_TYPE

ORDER BY KT.PHASE


0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
I was using Machine.User_logged and machine.system_description and I needed to shorten Machine to M
Posted by: dschraplau 5 years ago
Senior White Belt
0

Top Answer

I figured it out. I was using Machine.User_logged and machine.system_description and I needed to shorten Machine to M

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