简体   繁体   English

使用C#和WMI远程监视Biztalk 2006和2010服务器

[英]Monitoring remotely Biztalk 2006 & 2010 Servers using C# and WMI

I need implement application (in SysTray) that monitors Biztalk 2006 and 2010 servers (Biztalk 2006 installed in Windows 2003 machines, Biztalk 2010 installed in Windows 2008 machines) using C#. 我需要使用C#来监视Biztalk 2006和2010服务器(在Windows 2003计算机中安装Biztalk 2006,在Windows 2008计算机中安装Biztalk 2010)的实现应用程序(在SysTray中)。

I thinks I should use WMI. 我认为我应该使用WMI。 Perphaps any API or another components ?? 包含任何API或其他组件?

It will be useful any sample good source code (codeplex, codeproject, sourceforge, etc) 任何示例良好的源代码(codeplex,codeproject,sourceforge等)都将很有用。

I want install my Monitor application in a PC Windows XP without Biztalk installed, and monitoring Biztalk Server 2006 - 2010 (installed in Windows 2003 or Windows 2008). 我想在没有安装Biztalk的PC Windows XP中安装Monitor应用程序,并监视Biztalk Server 2006-2010(安装在Windows 2003或Windows 2008中)。

edit: from MSDN forums 编辑:从MSDN论坛

http://social.msdn.microsoft.com/Forums/en/biztalkgeneral/thread/7b35ad84-d800-4b7d-9f13-3855c3a2c2e1 http://social.msdn.microsoft.com/Forums/en/biztalkgeneral/thread/7b35ad84-d800-4b7d-9f13-3855c3a2c2e1

• Monitoring a BizTalk Server is complex, because there is a huge amount of information to monitor. •监视BizTalk Server很复杂,因为要监视的信息量很大。 This is best done with dedicated tools such as System Center Operations Manager , for instance. 最好使用专用工具(例如System Center Operations Manager)来完成此操作。 Or alternatives like IPM (formerly known as BizMon), Minotaur , or FRENDS Helium . 或类似IPM(以前称为BizMon),Minotaur或FRENDS Helium的替代产品。

However, if you do need special-purpose software to monitor a BizTalk Server while logged on, you will need to make use of the various programming interfaces available to you: 但是,如果在登录时确实需要专用软件来监视BizTalk Server,则需要利用各种可用的编程接口:

• Microsoft.BizTalk.ExplorerOM : (sample code for instance this post ) For basic application management (schemas, maps, pipelines and orchestrations) you could use these interfaces to monitor missing application ressources, for instance. •Microsoft.BizTalk.ExplorerOM :(例如,本文的示例代码)对于基本的应用程序管理(方案,地图,管道和业务流程),您可以使用这些接口来监视缺少的应用程序资源。

• The BizTalk WMI Provider : (samples ) For more advanced platform management (hosts, host instances, send and receive handlers, etc.) You would use these interfaces to implement watchdogs around running host instances, for example. •BizTalk WMI提供程序:(样本)用于更高级的平台管理(主机,主机实例,发送和接收处理程序等)。例如,您将使用这些接口来实现围绕运行中的主机实例的监视程序。

• Microsoft.RuleEngine and Microsoft.BizTalk.RuleEngineExtensions : For creating, importing, exporting or deploying BRE policies and vocabularies. •Microsoft.RuleEngine和Microsoft.BizTalk.RuleEngineExtensions:用于创建,导入,导出或部署BRE策略和词汇表。 You would use these interfaces to create custom rule set tracking interception. 您将使用这些接口来创建自定义规则集跟踪拦截。

Beyond that, there are a myriad of other assemblies and programming interfaces for dedicated tasks on BizTalk, be it deployment and installation, managing running or suspending instances, etc. 除此之外,还有许多其他组件和编程接口可用于BizTalk上的专用任务,例如部署和安装,管理正在运行或挂起的实例等。

In fact, this vast diversity in programming interfaces and paradigms is what prompted Maxim Labelle to create a unified BizTalk Management Automation Layer as part of our PowerShell provider for BizTalk Server . 实际上,编程接口和范例的巨大多样性促使Maxim Labelle创建了统一的BizTalk管理自动化层,作为BizTalk Server的PowerShell提供程序的一部分。

Another option is using PAL with Performance Counters you can capture. 另一种选择是将PAL与可捕获的性能计数器一起使用。

More edit: for access remotely using WMI. 更多编辑:用于使用WMI进行远程访问。 My question is about access remotely to Biztalk 2006 Server using WMI 我的问题是关于使用WMI远程访问Biztalk 2006 Server

using WMI to uninstall applications remotely 使用WMI远程卸载应用程序

http://www.codeproject.com/Messages/3396385/Remote-access-with-WMI.aspx http://www.codeproject.com/Messages/3396385/Remote-access-with-WMI.aspx

updated: (Biztalk 2006 installed in Windows 2003 machines, Biztalk 2010 installed in Windows 2008 machines) 已更新:(在Windows 2003计算机中安装了Biztalk 2006,在Windows 2008计算机中安装了Biztalk 2010)

edited: open source project BizTalk Control Center (BCC) 编辑:开源项目BizTalk控制中心(BCC)

biztalkcontrolcenter.codeplex.com biztalkcontrolcenter.codeplex.com

As its name suggests BizTalk is a server platform. 顾名思义,BizTalk是一个服务器平台。 This means that there usually is not any actual logged on user session available for a task notification icon to be useful. 这意味着通常没有任何实际的登录用户会话可用于任务通知图标

Monitoring a BizTalk Server is complex, because there is a huge amount of information to monitor. 监视BizTalk Server很复杂,因为要监视的信息量很大。 This is best done with dedicated tools such as System Center Operations Manager , for instance. 最好使用专用工具(例如System Center Operations Manager )来完成此操作

However, if you do need special-purpose software to monitor a BizTalk Server while logged on, you will need to make use of the various programming interfaces available to you: 但是,如果在登录时确实需要专用软件来监视BizTalk Server,则需要利用各种可用的编程接口:

For basic application management (schemas, maps, pipelines and orchestrations). 用于基本的应用程序管理(方案,地图,管道和业务流程)。 You could use these interfaces to monitor missing application ressources, for instance. 例如,您可以使用这些接口来监视缺少的应用程序资源。

For more advanced platform management (hosts, host instances, send and receive handlers, etc.) You would use these interfaces to implement watchdogs around running host instances, for example. 对于更高级的平台管理(主机,主机实例,发送和接收处理程序等),您将使用这些接口来实现例如正在运行的主机实例周围的监视程序。

For creating, importing, exporting or deploying BRE policies and vocabularies. 用于创建,导入,导出或部署BRE策略和词汇表。 You would use these interfaces to create custom rule set tracking interception. 您将使用这些接口来创建自定义规则集跟踪拦截。

Beyond that, there are a myriad of other assemblies and programming interfaces for dedicated tasks on BizTalk, be it deployment and installation, managing running or suspending instances, etc. 除此之外,还有许多其他组件和编程接口可用于BizTalk上的专用任务,例如部署和安装,管理正在运行或挂起的实例等。

In fact, this vast diversity in programming interfaces and paradigms is what prompted me to create a unified BizTalk Management Automation Layer as part of our PowerShell provider for BizTalk Server . 实际上,编程接口和范例的巨大差异促使我创建统一的BizTalk管理自动化层,作为BizTalk Server的PowerShell提供程序的一部分。

Powershell includes native support for remoting , in that it allows to run commands against target machines. Powershell包括对远程处理的本地支持,因为它允许对目标计算机运行命令。 This allows the PowerShell provider for BizTalk to be used to remotely administrate a BizTalk Server Group , without having BizTalk installed on the local machine. 这允许使用BizTalk的PowerShell提供程序来远程管理BizTalk Server组 ,而无需在本地计算机上安装BizTalk。

You might want to check-it out. 您可能要签出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM