|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcJobHistory
NAME
Get-NcJobHistory
SYNOPSIS
Get multiple job history records.
SYNTAX
Get-NcJobHistory [[-Id] <Decimal][]>] [-Count <Int64>] [-VserverContext <Str
ing>] [-Attributes <JobHistoryInfo>] [-Controller <NcController[]>] [<Common
Parameters>]
Get-NcJobHistory [-Count <Int64>] [-VserverContext <String>] -Template [-Fil
l] [-Controller <NcController[]>] [<CommonParameters>]
Get-NcJobHistory [-Count <Int64>] [-VserverContext <String>] -Query <JobHist
oryInfo> [-Attributes <JobHistoryInfo>] [-Controller <NcController[]>] [<Com
monParameters>]
DESCRIPTION
Get multiple job history records.
PARAMETERS
-Id <Decimal][]>
The ID of one or more jobs to get. Omit to get all jobs.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Count <Int64>
The maximum number of records to get. The default is 100.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Attributes <JobHistoryInfo>
For improved scalability in large clusters, provide a JobHistoryInfo obj
ect with various fields set to indicate which fields to return on all ob
jects. Undesired fields should remain set to null. Use "Get-NcJobHisto
ry -Template" to get the initially empty JobHistoryInfo object. If not
specified, all data is returned for each object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Template
Specify to get an empty JobHistoryInfo object for use with advanced quer
ies involving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Fill
Specify when using the Template parameter to recursively fill in all obj
ect types.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <JobHistoryInfo>
For advanced queries, provide a JobHistoryInfo object with various field
s set to indicate which records to retrieve. Other fields should remain
set to null. Use "Get-NcJobHistory -Template" to get the initially emp
ty JobHistoryInfo object.
Required? true
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
DataONTAP.C.Types.Job.JobHistoryInfo
NOTES
Category: job
API: job-history-get-iter
Family: cluster, vserver
-------------- Example 1 --------------
C:\PS>Get-NcJobHistory -Count 10
Get the last 10 jobs.
JobId JobName JobVserver JobEventType JobEndTimeDT
----- ------- ---------- ------------ ------------
6 Vol Reaper Cerebus succeeded 8/10/2011 2:04:59 PM
6 Vol Reaper Cerebus running 8/10/2011 1:59:58 PM
6 Vol Reaper Cerebus succeeded 8/10/2011 1:59:58 PM
6 Vol Reaper Cerebus running 8/10/2011 1:54:57 PM
6 Vol Reaper Cerebus succeeded 8/10/2011 1:54:57 PM
6 Vol Reaper Cerebus running 8/10/2011 1:49:56 PM
6 Vol Reaper Cerebus succeeded 8/10/2011 1:49:56 PM
6 Vol Reaper Cerebus running 8/10/2011 1:44:55 PM
6 Vol Reaper Cerebus succeeded 8/10/2011 1:44:55 PM
6 Vol Reaper Cerebus running 8/10/2011 1:39:54 PM
RELATED LINKS
Get-NcJob
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|