View timer job status (SharePoint Foundation 2010)

SharePoint 2010

Si applica a: SharePoint Foundation 2010

Ultima modifica dell'argomento: 2014-09-29

A timer job runs a specific Windows service for Microsoft SharePoint Foundation 2010. The timer job contains a definition of the service to run and specifies how frequently the service is started. The Windows SharePoint Services Timer v4 service (SPTimerV4) runs timer jobs. Many features in SharePoint Foundation 2010 rely on timer jobs to run services according to a schedule. You can view the status of timer jobs that have been run by using the Central Administration Web site or Windows PowerShell.

In this article:

You can view timer job status by using Central Administration.

To view timer job status by using Central Administration
  1. Verify that the user account that is performing this procedure is a member of the Farm Administrators SharePoint group.

  2. In Central Administration, on the Home page, click Monitoring.

  3. On the Monitoring page, in the Timer Jobs section, click Check job status.

  4. Timer job status is divided into three groups: Scheduled, Running, and History. To page through the timer job status data rows, click the paging arrows at the bottom of these groups.

  5. To view the timer job status for a specific group, click the title of the group. Alternatively, in the Quick Launch, click Scheduled Jobs, Running Jobs, or Job History.

You can view timer job status by using Windows PowerShell.

To view timer job status by using Windows PowerShell
  1. Verify that you meet the following minimum requirements: vedere Add-SPShellAdmin.

  2. On the Start menu, click Administrative Tools.

  3. Click SharePoint 2010 Management Shell.

  4. At the Windows PowerShell command prompt (that is, PS C:\>), type the following command, and then press ENTER:

    Get-SPTimerJob [-Identity <Timer job name...>] | Format-Table -Property DisplayName,Id,LastRunTime,Status

    You can use the value of the Identity parameter to specify a timer job. If you do not use the Identity parameter, all timer jobs are returned.

    To view the history of a specific timer job, type the following command, and then press ENTER:

    (Get-SPTimerJob [-Identity <Timer job name...>]).HistoryEntries | Format-Table -Property Status,StartTime,EndTime,ErrorMessage

For more information, see Get-SPTimerJob.

Per l'esecuzione di attività amministrative dalla riga di comando è consigliabile utilizzare Windows PowerShell. Lo strumento da riga di comando Stsadm è deprecato, ma è stato incluso per garantire la compatibilità con le versioni precedenti del prodotto.