Alerts & Labels
I want to make an alert that reminds users of policies to shut down their computer @ night, but I only want machines to get this alert if their uptime exceeds a certain number of days. What is the best way to go about this?
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
airwolf
14 years ago
Posted by:
lindsamw
14 years ago
Posted by:
RichB
14 years ago
Posted by:
lindsamw
14 years ago
This is helpful, but strangely, at the same time, not helpful! :) I think one comment I would make about this in the kbox features, I shouldn't have to make a script to check uptime on my own, when the kbox stores this data. So my plan so far, is to write a autoit script that checks the uptime, if it exceeds a certain value, write a reg key, have the kscript check that regkey, display a alert if criteria is met. That sound ok?
ORIGINAL: RichB
ORIGINAL: lindsamw.
Using a KScript, can I make a machine a member of a label that gets an alert pushed to it? I would prefer to use the kbox alert messages for standardization.
Yes!
Posted by:
airwolf
14 years ago
You have to do this with scripting because even though the value for "uptime" is stored in inventory, it's only as accurate as the last check-in time. So, if your check-in interval is 4 hours, your uptime would be up to 4 hours off. A situation could arise where a user has rebooted since the last check-in, but the KBOX still shows inaccurate uptime (whatever reported at the last check-in). Does this make sense? Using a script allows you to query uptime when the script runs - giving you live accurate data.
You COULD use the uptime listed in inventory to add machines to a label and apply a script to shutdown their systems, but I wouldn't recommend it.
You COULD use the uptime listed in inventory to add machines to a label and apply a script to shutdown their systems, but I wouldn't recommend it.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.