Hi
For retrieving daily backups from XOS encoder devices I need 260 scheduled tasks for each XOS device.
I made an Excel with all the needed information to make the scheduled task per device.
I was wondering if anybody already automatically made scheduled tasks based on a list from Excel?
Thanks in advance!
Kind regards
Justien
Hi Justien,
In the question below you can find an example to create a scheduled task programmatically:
automation – create schedule tasks
In your script, you will need to parse the Excel file. For each row available in the file you could create a scheduled task using the example above.
Small question, does it need to be a Excel file? If possible, try to collect this information in a CSV file. Parsing a CSV file does not require extra libraries.
Hope it helps.
Hi Miguel, thank you for your comment. We will consider the different options brought up. But maybe better to not use this since it’s an internal call and it is not officially supported?
Hi Justien,
In this case, I believe the answer from Leander is the best approach for your use case. In that way you don’t need to build your own automation scripts.
Hi
Thank you all for the help, it indeed seems to work fine in the following way of using one scheduled task that calls an automation script that iterates across all the devices of a CI Type that then again calls the subscript that generates the actual backups. We are going to use two scheduled tasks depending on the view because the devices are running on two different DMAs, but compared to 260 tasks in the beginning, this seems acceptable to me. 😉