The following
examples are from NetApp Clustered ONTAP 8.2.1.
This is a funny one and did catch me out.
I create a cron schedule for 01:00 for every day of the
week from Tuesday to Sunday, using the below syntax that looks correct:
::>
cron create -name Tue-Sun -minute 0 -hour 1 -dayofweek Tue-Sun
But, when I do a cron show it’s actually done Sun-Tue:
::>
cron show Tue-Sun
Name: Tue-Sun
Month: -
Day
of Week: Sunday, Monday, Tuesday
Day: -
Hour: 1
Minute: 0
Description:
Sun-Tue@1:00
This is what I should have done:
::>
cron create -name Tue-Sun2 -minute 0 -hour 1 -dayofweek Sun,Tue-Sat
::>
cron show Tue-Sun2
Name: Tue-Sun2
Month: -
Day
of Week: Sunday, Tuesday, Wednesday, Thursday, Friday, Saturday
Day: -
Hour: 1
Minute: 0
Description:
Sun,Tue-Sat@1:00
It’s simple to fix the original mistake:
::>
cron modify -name Tue-Sun -dayofweek Sun,Tue-Sat
::>
cron show Tue-Sun
Name: Tue-Sun
Month: -
Day
of Week: Sunday, Tuesday, Wednesday, Thursday, Friday, Saturday
Day: -
Hour: 1
Minute: 0
Description:
Sun,Tue-Sat@1:00
Comments
Post a Comment