Users Guide

Table 27. List Schedule Optional Command Parameter
Parameter Argument Description
--name schedule-name Specifies the name of the scheduled operation.
Examples: Listing Schedules
This section includes examples of listing schedules with verbose output and listing schedules that are enabled in a cron job.
Example 1: Listing Schedules with Verbose Output
In addition to listing all enabled schedules and showing the command that created the schedule, verbose2 mode also displays the Object ID
that uniquely identifies the Smart Copy set.
# asmcli list schedule -vv
========================================================
Schedules
========================================================
Name: hourly-schedule
Source: /source/VolB
Type: snapshot
Count: 0 (limit 24)
ObjectId: 9-930983-8f4e82980-90bc0ea549ea2096
Command: asmcli create schedule --keep 24 --type snapshot --source
/source/VolB
Name: user-hourly-schedule
Source: /source/VolA
Type: snapshot
Count: 0 (limit 12)
ObjectId: 8-7340fd-7d4c571c2-c33a43ffcda4df82
Command: asmcli create schedule --keep 12 --type snapshot --source
/source/VolA
2 schedules found.
Example 2: Listing Multiple Schedules Enabled in a Cron Job
ASMCLI scheduled operations can be easily incorporated into scripts or cron jobs and enabled. In this example, the schedule named 15
min retains four Smart Copies before deleting the oldest.
# asmcli list schedule
========================================================
Schedules
========================================================
Name: 15min
Command: asmcli create schedule --keep 4 --output error --retry-count 12
--comment "Test schedule cron: 15 minutes" --type snapshot --collection test1
Name: hourly
Command: asmcli create schedule --keep 12 --output error --retry-count 12
--comment "Test schedule cron: hourly" --type snapshot --collection test1
Name: test2
Command: asmcli create schedule --retry-wait 60 --comment "Test schedule test2" --type
snapshot --collection test2
Name: test3
Command: asmcli create schedule --keep 0 --type snapshot --collection
test3
4 schedules found.
# crontab -l
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin
Auto-Snapshot Manager Command Line Interface
81