/build/static/layout/Breadcrumb_cap_w.png

How do I make a script actually run at a specific time?

I am working on a script to deploy a new piece of software and I have having issues with the reliability of setting a time for the script to be run. I need to deploy an upgrade to some software we are using between 5am and 7am.


The script requires network credentials so the software can be installed off the network and it is currently setup in a .bat file being as it needs to uninstall numerous thing before installing the new version. 


Yesterday I scheduled a test task to run on the ~35 workstations at 5:00 am and when I checked this morning, it ran on a total of 2 workstations at 6:24 am and then the other ~33 workstations at 7:52 am - 2 hrs and 52 min late.


I tried just clicking "run now", and planned on doing that for deployment, but sometimes it would run in 30 seconds, and sometimes it would take 4 hours. 


After setting a schedule, does the device need to check in before it will run?

Is there a better way to do this?

Is there any way to give a script priority over other tasks the appliance might be running?

How long does it normally take for your scripts to kick off? (We have been having discussions with Kace to try and speed things up a bit, they are better now, but scripting still seems slow. )


0 Comments   [ + ] Show comments

Answers (1)

Posted by: Nico_K 2 months ago
Red Belt
0

You do not need to do more (well, except you need to run the script in 2 min on all 500000 endpoints)
As soon as you have the script enabled and have a schedule all nessesary is done.
The endpoints download the script Informations regulary using a preconfigured script 
When the schedule kicks in, the script downloads any changes (and the first time this means all stuff) since the last download and runs the script afterwards.
the example with the 2min and 500000 endpoints would do the same, but due to the huge amoint of downloads (the stufdf is likely not yet replicated to the repl shares) could lead to a timeout so not all systems are reached and prepared for the run.


Comments:
  • Thank you for the comment. I plan on leaving the script on for tomorrow as well to see if the delay involved getting the script copied out to the clients.

    Are you able to have a script run on 500000 clients in 2 minutes? Is this an online kscript or offline? It would make sense that it would run more quickly if all the clients have the resources required to run the script. - ISEKOLD 2 months ago
    • no, this is not possible. this was more or less to show something which is really not possible.
      You always need to keep in mind that the task throughput controls the tasks which run at the same time.
      Offline scripts are better since they are scheduled on client side and don't need an agent connection to the KACE (and dont need to be managed during the run by the appliance) - Nico_K 2 months ago
  • I let the script run again this morning without modifying it, and it took 4 hrs and 31 min to run. I think I am just going to have to do this manually. - ISEKOLD 2 months ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ