Task Scheduler Script only to devices that are online (do not queue)

T
TVTV
PostNL Holding BV

Hello All

When you send a (legacy) script to one or more devices in Mobicontrol, at the bottom you have the option to "Queue messages for offline devices".

I want to make a Profile with a task scheduler which will run a script weekly.
But I do not want it to queue for offline devices. I only want to run the script on online devices.

Is this possible with a task scheduler? Must I add a filter somewere? 
Because I do not have the slider option "Queue messages for offline devices"

3 years ago
Android Scripting
ANSWERS
OA
Ozan Acikalin
3 years ago

As far as i know the task scheduler will not queue the commands. So only the online
devices will run the script.

I use the task scheduler to restart my devices every morning. When i turn on a device
which was offline during that time then it does not restart.

I would recommend you to test it and see if your offline device will execute the script
after coming back online.

N
NTMOD@SOTI
3 years ago

Hi Ozan Acikalin,

Thank you for your response to this post.

Hi TVTV,

Thank you for your post on SOTI Central. You may use Task Scheduler which can be configured in the profile. You can assign this profile to the device group. All devices including the online and offline devices will get this profile installed. The online devices will get the script applied straight away. For the offline devices, the script will be triggered once they become online. Does this process achieve your goal?

Kind Regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

T
TVTV
3 years ago

We are planning a weekly reboot script.

So imagine it will be task scheduled on sunday evenings @ 21:00. (and will run on online devices)

When a device is off on sunday and will be turned on on monday it should NOT immediately run this reboot script when it comes online in Soti.

My question is if this will happen.Ozan Acikalin says the reboot wil not happen.

What I understand from NTMOD is

The reboot will only happen the first time the device receives its profile, and after that only on sundays when online...(Ozans answer)

Can you please clearify? thank you very much.

N
NTMOD@SOTI
3 years ago

Hi TVTV,

I have discussed internally about the ability to send the script to the offline devices. As mentioned previously, that the Task schedule is an option in the Profile. Please find the response below. If you would like further assistance regarding the script, please kindly raise a Support ticket so that we can contact you to get more information.

"We can't send a profile to offline devices and we can't remove a profile from offline devices (Not physically possible). That is why you don't see the "Agent Online" status in the Assignment filter criteria list. Task Scheduler works by sending a script and a schedule to exist on the device. The script executes when the schedule hits. If you have a requirement to only execute the script when the agent is online, use Javascript to execute an "IF" statement that checks to see if the agent is online."

Kind Regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |