Is there a way to setup schedule to reboot machines which are pending reboot after patching on the K1000?
For patching we cannot use force reboot due to the multiple shifts we have. I push patches but I want to schedule reboots for like 1 or 2 in the morning. Any way to create some sort of smart label and schedule to accomplish this?
I'm working on getting my networking team to setup Wake On LAN so I can change my patching schedules but until that is done I need another way to make sure patches are getting done and machines are being rebooted.
Answers (1)
Create a smart label with this SQL query and have a reboot script run against that label on the same day(s) as you run patching but at 2AM...make sure you set a delay on the shutdown -r (Restart) command as per this Solution Article: http://www.kace.com/support/resources/kb/solutiondetail?sol=SOL111291 select NAME, IP, LAST_SYNC, UPTIME from MACHINE join KBSYS.KONDUCTOR_TASK KT on KT.KUID = MACHINE.KUID and KT.TYPE like 'patch%' and KT.PHASE ='reboot pending' order by MACHINE.NAME
Create a smart label with this SQL query and have a reboot script run against that label on the same day(s) as you run patching but at 2AM...make sure you set a delay on the shutdown -r (Restart) command as per this Solution Article: http://www.kace.com/support/resources/kb/solutiondetail?sol=SOL111291
select NAME, IP, LAST_SYNC, UPTIME from MACHINE join KBSYS.KONDUCTOR_TASK KT on KT.KUID = MACHINE.KUID and KT.TYPE like 'patch%' and KT.PHASE ='reboot pending' order by MACHINE.NAME
Comments:
-
Thanks! - petelanglois 11 years ago
-
I am unable to locate the option to Create a smart label with this SQL query? Please help! - bnerison 10 years ago
You would most likely need to do some custom sql work to get the label to identify the machines that are pending reboot. There is a report in the patching category that shows computers pending reboot you could use some of that code. - Timi 11 years ago