WMI008-WMI学习笔记(八)——Management Events(管理事件)

WMI提供了一个丰富的事件基础设施,允许事件被发布、过滤、订阅和记录。这些功能使用标准WMI惯用法配置,使WMI能够管理和配置自身。永久事件消费者可以在事件发生时触发各种操作,将智能内置到系统中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文地址链接:http://msdn.microsoft.com/en-us/library/aa720262(v=vs.71).aspx

Management Events

.NET Framework 1.1

The ability to detect when a circumstance or combination of circumstances occurs and deliver notification of the event(s) to the consumer is an essential feature for a practical distributed system. Given a system of even moderate complexity, it would be impossible to track and react to events by polling the available data sources. Both the burden on the consumer and the volume of data implied is too large to be practical. Nonetheless, this is in fact what many management applications require. Vast quantities of data get written to centralized logs, which are then examined for combinations of circumstances that indicate that some action must be taken (for example, billing, preventive maintenance, or backup).


WMI supports a rich eventing infrastructure that allows events to be published, filtered, subscribed to, and logged by the combination required for the application at hand. All the WMI event-handling capabilities are configured using standard WMI idioms that can be monitored and controlled, whereby WMI can manage and configure itself. In WMI, events, publications, and subscriptions are represented using WMI objects allowing them to be delivered to sources and consumers using the same mechanisms that are supported for regular WMI classes and instances.

WMI also allows the user to define permanent event consumers that are invoked whenever an event to which the consumer subscribes occurs. All significant events on the server are visible to WMI (including time), which allows intelligence to be built into the WMI permanent event consumer such as "Back up the system configuration every night at 11:00 P.M. or anytime the database is restarted — don't back up the system configuration more than one time in an 8-hour period." Using WMI permanent event consumers, any combination of actions can be initiated as a result of the occurrence of events in the environment. The ability to place intelligence into the permanent event consumer allows the system to be constructed in such a way that data streams do not have to be pushed up to higher level consumers as decisions and actions; they can be taken locally by the system itself by requiring nothing more than status events to be pushed to higher levels of the architecture.

See Also

Using WMI with the .NET Framework | Schema | Queries | System.Management and System.Management.Instrumentation Namespaces


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值