询问者
求powershell 命令批量創建TCP、UR等監控服務

问题
全部回复
-
您好!
关于PowerShell脚本,我们这边不是很擅长。我为您做了搜索,以下是相关脚本链接,您可以参考一下:
PowerShell 脚本Monitor Windows services
https://www.systemcenterautomation.com/2018/04/automate-windows-service-monitors-in-scom/
PowerShell 脚本Monitor TCP端口
https://squaredup.com/blog/how-to-create-100-s-of-tcp-monitors-in-minutes-with-scom/
PowerShell 脚本Monitor URL
https://gallery.technet.microsoft.com/scriptcenter/Powershell-Script-for-13a551b3
希望以上信息对您有帮助,祝您工作愉快。
此致!
敬礼!
Crystal
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- 已编辑 Crystal ShenMicrosoft contingent staff 2019年9月11日 8:43
-
您好!
非常感謝你提供有幫助的文檔,但還差疑問在如下:
1. PowerShell 脚本Monitor TCP端口
https://squaredup.com/blog/how-to-create-100-s-of-tcp-monitors-in-minutes-with-scom/
該文檔中有CSV模板而沒有powershell命令哦?
2. PowerShell 脚本Monitor URL
https://gallery.technet.microsoft.com/scriptcenter/Powershell-Script-for-13a551b3
該文檔最好,但沒有URL list的內容模板,比如當中,"D:\URLList.txt" 內容。
再幫忙 查下
感謝!
-
您好!
感谢您的回复。关于TCP监控,您看一下这篇文章,里面提到了脚本和CSV模板格式:
关于URL监控,我在环境中测试了下,发现用以下格式就可以,每个URL用回车分割,
然后您就可以收到以下测试结果:
希望以上信息对您有帮助,祝您工作愉快。
此致!
敬礼!
Crystal
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- 已编辑 Crystal ShenMicrosoft contingent staff 2019年9月12日 1:39
-
您好!
命令成功執行完成了,但在SCOM 控制臺上沒發現有相關的URL被創建。
Thanks!
- 已编辑 carson.guan 2020年1月13日 15:03
-
您好!
请问您是不是通过Authoring->Monitors->新建一个脚本相关的Monitor进行的监控,如果是这样的话。他这个Monitor并不会把您的URL写入Web Monitor,,而是通过执行脚本直接去测试,所以您看不到对应的URL.
希望以上信息对您有帮助。
此致!
敬礼!
Crystal
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com. -
您好!
命令的话,您可以参考以下链接:
SCOM monitoring的话,建议您尝试以下文章中提到的通过MP实现的方法:
希望以上信息对您有帮助,祝您工作愉快!
Best regards.
Crystal
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.