HP MSA 2040 CLI Reference Guide
create schedule 57
Example Create schedule Sched1 that runs Task1 for the first time on March 1, 2012; runs daily between
midnight and 1:00 AM; and runs for the last time in the morning of January 1, 2013:
# create schedule schedule-specification "start 2012-03-01 00:01, every 1 days,
between 12:00 AM and 1:00 AM, expires 2013-01-01 1:00 AM" task-name Task1 Sched1
Success: Command completed successfully. (Sched1) - The schedule was created.
(2012-01-20 15:48:01)
Create schedule Sched2 that runs Task2 for the first time on March 1, 2012, and on the first
weekday of each month, with no expiration:
# create schedule schedule-specification "start 2012-03-01 00:01 only first
weekday of month" task-name Task2 Sched2
Success: Command completed successfully. (Sched2) - The schedule was created.
(2012-01-20 15:46:16)
Try to create Sched3 with a start time outside the “between” range:
# create schedule schedule-specification "start 2012-01-14 4:15 PM between 12:00
AM and 12:00 PM" task-name Task3 Sched3
Error: create schedule: (Sched3) - The specified start time must be within the
range specified with the 'between' parameter. (2012-01-20 15:46:08)
See also • delete schedule
• set schedule
• show schedule-details
• show schedules
• show task-details
• show tasks