Posted on 10-16-2015 06:21 PM
Hey All,
Just wanted to know if there is an easy way to find machines that reboot at a certain time period without pouring thru logs on each machine I have in a Static Group.
Thanks everyone !
Solved! Go to Solution.
Posted on 10-17-2015 10:57 PM
Test this extension attribute (Its 2am when I wrote this EA). Output will be in 24hr format, and when creating a smart group, you may have to add multiple criteria depending on what you are trying to achieve.
#! /bin/sh
lastreboot=`last -1 reboot | awk '{ print $6}'`
echo "<result>$lastreboot</result>"
Posted on 10-17-2015 10:57 PM
Test this extension attribute (Its 2am when I wrote this EA). Output will be in 24hr format, and when creating a smart group, you may have to add multiple criteria depending on what you are trying to achieve.
#! /bin/sh
lastreboot=`last -1 reboot | awk '{ print $6}'`
echo "<result>$lastreboot</result>"
Posted on 10-21-2015 09:03 PM
TY!