HP MSA2324sa HP StorageWorks 2300 Family Modular Smart Array CLI reference gui - Page 38

create schedule, August|September|October |November|December

Page 38 highlights

create schedule Description Schedules a task to run automatically. Syntax create schedule schedule-specification "specification" task-name task-name schedule-name Parameters schedule-specification "specification" Defines when the task will first run, and optionally when it will recur and expire. You can use a comma to separate optional conditions. Dates cannot be in the past. • start mm/dd/yyyy hh:mm [AM|PM] If neither AM nor PM is specified, a 24-hour clock is used. If you use the between condition, below, the start time must be in the between range. Optional conditions: • every # minutes|hours|days|weeks|months|years • between hh:mm [AM|PM] and hh:mm [AM|PM] • only any|first|second|third|fourth|fifth|last|#st|#nd|#rd|#th weekday|weekendday|Sunday|Monday|Tuesday|Wednesday|Thursday|Friday |Saturday of year|month|January|February|March|April|May|June|July |August|September|October |November|December • count # • expires mm/dd/yyyy hh:mm [AM|PM] task-name task-name The task to run. The name is case sensitive. schedule-name A name for the new schedule. The name is case sensitive, cannot include a comma, double quote, or backslash, and can have a maximum of 32 bytes. A name that includes a space must be enclosed in double quotes. Example Create schedule Sched1 that runs Task1 for the first time on March 1, 2007; runs daily between midnight and 1:00 AM; and runs for the last time in the morning of January 1, 2008: # create schedule schedule-specification "start 3/1/2007 00:01, every 1 days, between 12:00 AM and 1:00 AM, expires 1/1/2008 1:00 AM" task-name Task1 Sched1 Success: Command completed successfully. - The schedule was created. Create schedule Sched2 that runs Task2 for the first time on March 1, 2007, and on the first weekday of each month, with no expiration: # create schedule schedule-specification "start 3/1/2007 00:01 only first weekday of month" task-name Task2 Sched2 Success: Command completed successfully. - The schedule was created. See also • show schedules • show task-details • show tasks 38 Alphabetical list of commands

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

38
Alphabetical list of commands
create schedule
Description
Schedules a task to run automatically.
Syntax
create schedule
schedule-specification "
specification
"
task-name
task-name
schedule-name
Parameters
schedule-specification "
specification
"
Defines when the task will first run, and optionally when it will recur and expire. You can use a
comma to separate optional conditions. Dates cannot be in the past.
start
mm
/
dd
/
yyyy
hh
:
mm
[AM|PM]
If neither
AM
nor
PM
is specified, a 24-hour clock is used. If you use the
between
condition,
below, the start time must be in the between range.
Optional conditions:
every
#
minutes|hours|days|weeks|months|years
between
hh
:
mm
[AM|PM] and
hh
:
mm
[AM|PM]
only any|first|second|third|fourth|fifth|last|
#
st|
#
nd|
#
rd|
#
th
weekday|weekendday|Sunday|Monday|Tuesday|Wednesday|Thursday|Friday
|Saturday of year|month|January|February|March|April|May|June|July
|August|September|October |November|December
count
#
expires
mm
/
dd
/
yyyy
hh
:
mm
[AM|PM]
task-name
task-name
The task to run. The name is case sensitive.
schedule-name
A name for the new schedule. The name is case sensitive, cannot include a comma, double quote, or
backslash, and can have a maximum of 32 bytes. A name that includes a space must be enclosed in
double quotes.
Example
Create schedule
Sched1
that runs
Task1
for the first time on March 1, 2007; runs daily between
midnight and 1:00 AM; and runs for the last time in the morning of January 1, 2008:
# create schedule schedule-specification "start 3/1/2007 00:01, every 1 days,
between 12:00 AM and 1:00 AM, expires 1/1/2008 1:00 AM" task-name Task1 Sched1
Success: Command completed successfully. - The schedule was created.
Create schedule
Sched2
that runs
Task2
for the first time on March 1, 2007, and on the first
weekday of each month, with no expiration:
# create schedule schedule-specification "start 3/1/2007 00:01 only first
weekday of month" task-name Task2 Sched2
Success: Command completed successfully. - The schedule was created.
See also
show schedules
show task-details
show tasks