/build/static/layout/Breadcrumb_cap_w.png

Report to show when a machine is connected and the last reboot is greater than x days?

Hello

I have a MYSQL report (see below) that I created using 2 exsisting reports that I have but, cant get the last machine reboot date to show up on the report. Any help or guidenance for this very much appreciated.

Thanks

 

SELECT MACHINE.IP, SC.CLIENT_CONNECTED, MACHINE.NAME AS SYSTEM_NAME, USER_LOGGED FROM MACHINE  LEFT JOIN KBSYS.SMMP_CONNECTION SC ON MACHINE.KUID = SC.KUID 

WHERE SC.CLIENT_CONNECTED LIKE '1'

AND (LAST_REBOOT < DATE_SUB(NOW(),INTERVAL 7 day)) ORDER BY LAST_REBOOT


0 Comments   [ + ] Show comments

Answers (1)

Posted by: dugullett 10 years ago
Red Belt
1

Add LAST_REBOOT.

SELECT MACHINE.IP, SC.CLIENT_CONNECTED, MACHINE.NAME AS SYSTEM_NAME, USER_LOGGED, LAST_REBOOT

FROM MACHINE

LEFT JOIN KBSYS.SMMP_CONNECTION SC ON MACHINE.KUID = SC.KUID

 

WHERE SC.CLIENT_CONNECTED LIKE '1'

 

AND (LAST_REBOOT < DATE_SUB(NOW(),INTERVAL 7 day)) ORDER BY LAST_REBOOT

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