Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Add-NcJobCronSchedule


NAME
Add-NcJobCronSchedule

SYNOPSIS
Create a new cron job schedule entry.

SYNTAX
Add-NcJobCronSchedule [-Name] <String> [-Month <Int64[]>] [-Day <Int64[]>] [
-DayOfWeek <Int64[]>] [-Hour <Int64[]>] [-Minute <Int64[]>] [-Controller <Nc
Controller[]>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Create a new cron job schedule entry.


PARAMETERS
-Name <String>
The name of the cron job schedule to create.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Month <Int64[]>
The month(s) when the job should be run. -1 represents all months. Zer
o represents January. Range: [-1..11].

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Day <Int64[]>
The day(s) of the month when the job should be run. -1 represents all d
ays of a month from 1 to 31. Range: [-1..31].

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-DayOfWeek <Int64[]>
The day(s) in the week when the job should be run. -1 represents all da
ys of a week. Zero represents Sunday. Range: [-1..6].

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Hour <Int64[]>
The hour(s) of the day when the job should be run. -1 represents all ho
urs. Range: [-1..23].

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Minute <Int64[]>
The minute(s) of each hour when the job should be run. -1 represents al
l minutes. Range: [-1..59].

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each controller in succession.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
NetApp.Ontapi.Filer.C.Job810.JobScheduleCronInfo


NOTES


Category: job
API: job-schedule-cron-create
Family: cluster

-------------- Example 1 --------------

C:\PS>Add-NcJobCronSchedule 15min -Minute 0,15,30,45


Define a cron schedule entry for jobs that should run every 15 minutes.


JobScheduleName JobScheduleDescription
--------------- ----------------------
15min @:00,:15,:30,:45



RELATED LINKS
Get-NcJobCronSchedule
Remove-NcJobCronSchedule
Set-NcJobCronSchedule







 Data ONTAP® PowerShell Toolkit