HP 3PAR OS 3.1.3 Command Line Interface Reference

The following example creates a scheduled task that will run every hour on the hour ("0 * * *
*") and will create a read-only (-ro) snapshot of sample_vv, that will expire in two hours (-exp
2h). The created snapshot will be named sample_vv_set.HH.MMM where HH and MM refer to
the hour and minute that the snapshot was created (@vvname@.@H@.@M@):
cli% createsched "createsv -ro -exp 2h @vvname@.@H@.@M@ vv" "0 * * * *" sv_task
The following example creates a scheduled task which will create a consistent group snapshot.
The read-only snapshots will be created from the volume set: dbora (see CLI Help -sub
objectsets) that will expire in two hours (-exp 2h) and the snapshots will be named using the
pattern @vvname@.@s@ (volume name specified in the set, with the epoch in seconds appended).
The task will be named snap_odbora_set and run every hour on the hour during the working
hours from 8am to 5pm ("0 8-17 * * *"):
cli% createsched "createsv -ro -exp 2h @vvname@.@s@ set:dbora" "0 8-17 * * *"
sv_dbora_task
The following example creates a scheduled task which will create a consistent group snapshot for
a single virtual volume:
createsched "createsv -ro -exp 2h @vvname@.@s@ vvname" "0 * * * *" snap_large_tpvv_a
Add a comment with spaces to createsv by surrounding the comment with escaped double
quotes:
createsched "createsv -ro -exp 2h -comment \"Comment with spaces\" @vvname@.@H@.@M@
vv" "0 * * * *" sv_task
NOTES
The <taskschedule> string has five fixed fields: minute, hour, day-of-month, month,
day-of-week.
To avoid spikes in resource utilization, it is recommended to spread out scheduled task start
times as much as possible. Createsched can predict out to 30 days when the newly
scheduled task exceeds the recommended number of scheduled task starts per minute. When
this is detected, user confirmation is requested to continue creating the schedule. To skip this
detection and confirmation, use the -f option.
Fields are separated by spaces. The allowed values for the fields are:
Allowed ValuesField
0-59Minute
* or 0-23Hour
* or 1-31Day-of-Month
* or 1-12Month
* or 0-6 (0 is Sunday)Day-of-Week
Scheduling on February 29 is not supported.
Lists are allowed. A list is a set of numbers (or ranges) separated by commas. Examples:
1,2,5,9, “0-4,8-12.
createsched 121