Sharepoint 2013 powershell脚本,用于服务应用程序,以便每天监控电子邮件 [英] Sharepoint 2013 powershell script for service applications to monitor daily basis on email

查看:97
本文介绍了Sharepoint 2013 powershell脚本,用于服务应用程序,以便每天监控电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


有人可以帮助解决Powershell脚本。


我需要每天监控所有服务应用程序。


请为  


1建议脚本。计时器作业的状态

2. SharePoint管理服务 

3.任何错误事件查看器中的搜索或SharePoint 


谢谢


SaidiReddy

解决方案

您好


您可以使用webrequest获取特定的sharepoint中央管理页面以获取#1和#2的数据。


对于事件查看器,您可以参考此信息。


https://stackoverflow.com/questions/3147972/read-event-log-in- c-sharp


或powershell


https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-eventlog?view = powershell-5.1


使用PowerShell获取计时器作业:


https:// blogs。 msdn.microsoft.com/spucelik/2017/01/12/list-all-the-timer-jobs-using-powershell/


使用PowerShell获取SP服务:


http://nikcharlebois.com/list-所有的服务功能于一个-SharePoint的农场/


Hi,

Can someone please help on Powershell script.

I need to monitor all service applications on daily basis.

Please suggest the script for  

1. status for Timer Jobs
2. SharePoint Admin services 
3. any errors Search or SharePoint in Event viewer 

Thanks

SaidiReddy

解决方案

Hi

You can use webrequest to get the specific sharepoint central admin page to get data for #1 and #2.

For event viewer, you can refer this.

https://stackoverflow.com/questions/3147972/read-event-log-in-c-sharp

or powershell

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-eventlog?view=powershell-5.1

Using PowerShell to get timer job:

https://blogs.msdn.microsoft.com/spucelik/2017/01/12/list-all-the-timer-jobs-using-powershell/

Using PowerShell to get SP Serivces:

http://nikcharlebois.com/list-all-services-in-a-sharepoint-farm/


这篇关于Sharepoint 2013 powershell脚本,用于服务应用程序,以便每天监控电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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