VPlex: How to add and modify the schedule job on VPlex
Summary: This article will help you to add and modify the schedule job on VPlex
Instructions
Use the service account credentials to perform this activity
Please follow below instruction to add or modify the schedule jobs.
- Login to the VPlex CLI
service@ManagementServer:~> vplexcli
VPlexcli:/>
- To check the existing “schedule list” run the command "schedule list".
VPlexcli:/> schedule list
[0] * * * * * version --all
[1] 29 15 * * 3 syrcollect
To add a job to the schedule
- To add a new job to the schedule, use the below command:
VPlexcli:/> schedule add -t "<Minute> <Hour> <Day of the Month> <Month> <Day of the week>" -c "new job name"
Where:
<Minute> is (0 - 59)
<Hour> is (0 - 23)
<Day of the Month> is (1 - 31)
<Month> is (1 - 12) where January = 1,...,December = 12
Day of the week - 0-6, Sunday = 0...Saturday = 6
For example, to run the 'cluster summary' command every day at 01:00 AM, execute one of the below commands:
VPlexcli:/> schedule add -t "0 1 * * *" -c "cluster summary"
New job scheduled.
VPlexcli:/> schedule list
[0] * * * * * version –all
[1] 29 15 * * 3 syrcollect
[2] 0 1 * * * cluster summary <<< newly add job
To Modify a Job Schedule:
- To Modify the schedule job use the below command:
Enter new time for the job as a string.
For example, to modify the job with the ID of 2 so that it runs every day at 04:00 AM,
VPlexcli:/> schedule modify <job id> -t "<Minute> <Hour> <Day of the Month> <Month> <Day of the week>" -c "<job name>"
Example:
List the schedules running:
VPlexcli:/> schedule list
[0] * * * * * version --all
[1] 29 15 * * 3 syrcollect
[2] 0 1 * * * cluster summary <<< job you want to change the time to run
Modify job id [2]:
VPlexcli:/> schedule modify 2 -t "0 4 * * *" -c "cluster summary"
Job 1 modified.
List the schedules running to see that the change for job id [2] did update for the new run time:
VPlexcli:/> schedule list
[0] * * * * * version --all
[1] 29 15 * * 3 syrcollect
[2] 0 4 * * * cluster summary <<< you see the change for the hour from 1 to 4
You can reference KBA: 000038636 to reconfigure metadata backup and view it in the schedule list.