Поделиться через


Configure SharePoint Health Analyzer timer jobs (SharePoint Foundation 2010)

 

Применимо к: SharePoint Foundation 2010

Последнее изменение раздела: 2010-03-15

The SharePoint Health Analyzer in SharePoint Foundation 2010 uses timer jobs to collect health data and then writes the data to the logging folder and to the Logging database. This data are used in reports to display health of the farm servers. You can reschedule these timer jobs, run them immediately, or enable or disable them.

In this article:

  • Use Central Administration to configure health data collection timer jobs

  • Use Windows PowerShell to configure health data collection timer jobs

Use Central Administration to configure health data collection timer jobs

You can use Central Administration to configure health data collection timer jobs.

To configure health data collection timer jobs by using Central Administration

  1. Verify that the user account that is performing this procedure is a member of the Farm Administrators group.

    Примечание

    The health data collection timer job settings are farm-wide and cannot be set for individual servers in the farm.

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

  3. On the Monitoring page, in the Reporting section, click Configure usage and health data collection.

  4. On the Configure usage and health data collection page, do one of the following:

    • To enable the timer job, click Enable.

    • To disable the timer job, click Disable.

    1. in the Health Logging section, click Health Logging Schedule. A page opens that lists all the timer jobs that collect health data.

    2. On the Job Definitions page, click the timer job that you want to configure.

    3. On the Edit Timer Job page, in the Recurring Schedule section, change the timer job schedule, and then click OK.

Use Windows PowerShell to configure health data collection timer jobs

You can configure the health collection timer job schedule by using Windows PowerShell.

To configure health data timer jobs by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: См. статью Add-SPShellAdmin.

  2. On the Start menu, click All Programs.

  3. Click Microsoft SharePoint 2010 Products.

  4. Click SharePoint 2010 Management Shell.

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

    Set-SPTimerJob [-Identity <name>] [-Schedule <Schedule string>]

    The value of the Identity parameter specifies the timer job. If you do not use the Identity parameter, all timer jobs are configured. To see a list of all the timer jobs, type the following command, and then press ENTER:

    Get-SPTimerJob | Format-Table -property id,title

    Use the value of the Schedule parameter to specify the schedule, where <Schedule string> is one of the following:

    • every <1-60> seconds

    • every <1-60> minutes at <1-60>

    • every <1-60> minutes between <1-60> and <1-60>

    • hourly between <1-59> minutes past the hour and <1-59> minutes past the hour

    • daily between starting from <hh:mm:ss> and starting no later than <hh:mm:ss>

    • weekly between starting on <day of the week hh:mm:ss> and starting no later than <day of the week hh:mm:ss>

    • monthly between starting on < day number hh:mm:ss> and starting no later than < day number hh:mm:ss>

    • monthly by <hh:mm:ss> on <week number> <day of week>

    To see examples of timer job schedules, type the following command, and then press ENTER:

    Get-SPTimerJob | Format-Table -property id,title,schedule

    For more information, see Get-SPTimerJob and Set-SPTimerJob.

Примечание

Для выполнения административных задач из командной строки мы рекомендуем использовать Windows PowerShell. Программа командной строки Stsadm является устаревшей, однако она добавлена для совместимости с предыдущими версиями продукта.

See Also

Concepts

Monitoring overview (SharePoint Foundation 2010)