如何知道Sharepoint搜索爬网在运行时需要花费的时间. [英] how to know time to be take by Sharepoint search crawl to finish while it is running.

查看:139
本文介绍了如何知道Sharepoint搜索爬网在运行时需要花费的时间.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用Powershell进行共享点搜索爬网比平时花费更长的时间时,我想接收警报.可能吗?还是他们有其他方法可以实现这一目标?

I want to receive alerts when sharepoint search crawl takes longer time than usual using powershell. Is it possible? Or is their any other way to achieve this?
Thanks for help in advance.

推荐答案

嗨Cersie,

Hi Cersie,

根据您的要求,检查以下解决方案是否可行:

For your request, check if the solution below is feasible:

使用任务计划程序运行PowerShell命令来检索爬网状态值,以检查爬网是否已完成:

Use Task Scheduler to run PowerShell command to retrieve the crawl status value to check if the crawl is completed:

Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | select Name, CrawlStatus

如果花费的时间比平时长,请发送警报电子邮件.

If it takes longer time than usual, send alert email.

参考:

如何从任务计划程序运行PowerShell脚本:

How to run PowerShell scripts from task scheduler:

如何使用PowerShell发送电子邮件:

How to send email using PowerShell:

http://practical365.com/exchange-server/powershell-how-to- send-email/

最诚挚的问候,

Grace Wang

Grace Wang


这篇关于如何知道Sharepoint搜索爬网在运行时需要花费的时间.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆