schedule list
Lists the schedules on the cluster.
Syntax
- CLI
-
maprcli schedule list [ -cluster <cluster> ] [ -output terse|verbose ] [ -sortby ]
- REST
Request Type GET Request URL http[s]://<host>:<port>/rest/schedule/list[?<parameters>]
Parameters
Parameter |
Description |
---|---|
cluster |
The cluster on which to run the command. |
output |
Specifies whether the output should be terse or verbose. |
sortby |
Specifies one of the following attributes to sort the list of
schedules by: scheduleid ,
schedulename , schedulerulefrequency ,
scheduleruledate , scheduleruletime ,
scheduleruleminutes , scheduleruleretaintime ,
scheduleinuse . By default, the list of schedules sorted by
schedulename . |
Output
A list of all schedules on the cluster. See Schedule Objects for more information.
Sample Output
# maprcli schedule list
id name inuse rules
1 Critical data 0 ...
2 Important data 0 ...
3 Normal data 0 ...
Examples
List schedules:
- CLI
-
# maprcli schedule list -json { "timestamp":1531004445284, "timeofday":"2018-07-07 04:00:45.284 GMT-0700 PM", "status":"OK", "total":4, "data":[ { "id":4, "name":"Automatic Tiering Scheduler", "inuse":0, "description":"Automatic Scheduler for EC and Cold Tier: It uses internal policies to schedule the task", "rules":{ } }, { "id":1, "name":"Critical data", "inuse":0, "rules":[ { "frequency":"hourly", "retain":"24h" }, { "frequency":"daily", "time":0, "retain":"7d" }, { "frequency":"weekly", "date":"sun", "time":0, "retain":"12w" } ] }, { "id":2, "name":"Important data", "inuse":0, "rules":[ { "frequency":"daily", "time":6, "retain":"24h" }, { "frequency":"daily", "time":12, "retain":"24h" }, { "frequency":"daily", "time":18, "retain":"24h" }, { "frequency":"daily", "time":0, "retain":"7d" }, { "frequency":"weekly", "date":"sun", "time":0, "retain":"4w" }, { "frequency":"monthly", "date":"1", "time":0, "retain":"2m" } ] }, { "id":3, "name":"Normal data", "inuse":0, "rules":[ { "frequency":"daily", "time":0, "retain":"7d" }, { "frequency":"weekly", "date":"sun", "time":0, "retain":"4w" }, { "frequency":"monthly", "date":"1", "time":0, "retain":"2m" } ] } ] }
- REST
-
# curl -k -X GET 'https://abc.sj.us:8443/rest/schedule/list' --user mapr:mapr {"timestamp":1531004578264,"timeofday":"2018-07-07 04:02:58.264 GMT-0700 PM","status":"OK","total":4,"data":[{"id":4,"name":"Automatic Tiering Scheduler","inuse":0,"description":"Automatic Scheduler for EC and Cold Tier: It uses internal policies to schedule the task","rules":{}},{"id":1,"name":"Critical data","inuse":0,"rules":[{"frequency":"hourly","retain":"24h"},{"frequency":"daily","time":0,"retain":"7d"},{"frequency":"weekly","date":"sun","time":0,"retain":"12w"}]},{"id":2,"name":"Important data","inuse":0,"rules":[{"frequency":"daily","time":6,"retain":"24h"},{"frequency":"daily","time":12,"retain":"24h"},{"frequency":"daily","time":18,"retain":"24h"},{"frequency":"daily","time":0,"retain":"7d"},{"frequency":"weekly","date":"sun","time":0,"retain":"4w"},{"frequency":"monthly","date":"1","time":0,"retain":"2m"}]},{"id":3,"name":"Normal data","inuse":0,"rules":[{"frequency":"daily","time":0,"retain":"7d"},{"frequency":"weekly","date":"sun","time":0,"retain":"4w"},{"frequency":"monthly","date":"1","time":0,"retain":"2m"}]}]}