The command schedule:list
generates only list of all schedules, but does not give the date of the next run.
Example:
./fglcmd.sh -usr foglight -pwd <password> -cmd schedule:list
Output is always a list containing 3 fields like this:
------------------------------------
ID: f1b056b0-7b6c-4c06-9cc2-f37c12a87e92
Name: NAME
Description: DESCRIPTION
From the Reports > Manage Reports dashboard it is possible to enable the Next Execution Time column to view the next start time for a scheduled report.
The following groovy script displays the times of the previous and next run of the schedules, but not necessarily any specific reports.
result = ""; server.get("ScheduleService").getAllSchedules().each { result += "id: "+ it.id + "\n"; result += "name: "+ it.name + "\n"; result += "description: "+ it.description + "\n"; result += "next: "+ new java.util.Date(it.nextIncludedTime) + "\n"; result += "previous: "+ new java.util.Date(it.schedule.getPreviousIncludedTime(System.currentTimeMillis())) + "\n"; result += "\n"; } return result;
This script can be run from the command line or from the Script Console.
Example results:
id: a74dc804-4b42-4589-be5f-0aab6ca568d3© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center