/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Create a KScript to run on all machines daily. The script should check the uptime of the system and act accordingly.
Answered 02/04/2010 by: airwolf
Tenth Degree Black Belt

Please log in to comment
0
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.
Answered 02/04/2010 by: lindsamw
Orange Senior Belt

Please log in to comment
0
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!
Answered 02/04/2010 by: RichB
Second Degree Brown Belt

Please log in to comment
0
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!

Answered 02/05/2010 by: lindsamw
Orange Senior Belt

Please log in to comment
0
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.
Answered 02/05/2010 by: airwolf
Tenth Degree Black Belt

Please log in to comment