How to find devices that need to be rebooted?

Is there a way to create a list of devices showing the last reboot date/time and if a reboot is pending?  I can see this information on each device detail, but I really don't want to manually look at every device in my environment to find which ones need to be rebooted.  Since this information does show up on each device's patches tab, I assume it can be reported on but I'm just not finding these fields.

Parents Reply Children
  • 0   in reply to 

    Having asked before, there is Not a way within normal ZENWorks reporting options.  That would be a great Idea.

    One needs to do that direct DB query that those links describe, as Craig figured it out. 

    This prompted me to write them up a bit cleaner as follows.

    If you are using the ZCM internal DB, then you can use DBeaver for your queries  Just grab the Free Community Edition
    and then follow KM000001612   to configure it.

      For the other DBs you'd likely best be using their tools, and if you made such a choice, largely have the skills to map this out on it.

    Then perform the following query:

    select zdeviceex.rebootpendingsince rebootpendingsince , zzenobject.path from zdeviceex join zzenobject on zzenobject.zuid=zdeviceex.zuid order by rebootpendingsince asc;

    ________________________

    Andy of KonecnyConsulting.ca in Toronto
    Please use the "Like" and/or "Verified Answers" as appropriate as that helps us all.