简体   繁体   English

概念性事物-消耗来自远程机器的事件

[英]Conceptual Thing - Consume Events From Remote Machine

I have to consume permanent a specific event from remote machine's eventlog. 我必须从远程计算机的事件日志中永久使用特定事件。 I cannot implement a pull method to receive the event (too much network traffic). 我无法实现pull方法来接收事件(太多网络流量)。

I've read about WMI temporary event subscription and WMI permanent event subscription. 我已经阅读了有关WMI临时事件订阅和WMI永久事件订阅的信息。 But permanent event subscription isn't implemented in System.Management Namespace. 但是,永久事件订阅未在System.Management命名空间中实现。

Are there any other possibilities to consume permanent events from remote machine's eventlog without installing something on remote machine (programmatically!)? 是否有其他可能性可以消耗远程计算机的事件日志中的永久事件而无需在远程计算机上安装任何东西(以编程方式!)?

You can implement some simple program on the remote machine that will watch the event log and "push" interesting events to the monitoring machine via SOAP service, named pipe, or some sockets-based comm package of your own design. 您可以在远程计算机上实现一些简单的程序,该程序将通过SOAP服务,命名管道或您自己设计的一些基于套接字的comm程序包监视事件日志并将有趣的事件“推送”到监视计算机。 That would probably be the easiest way, assuming you have control of the remote machine. 假设您可以控制远程计算机,那可能是最简单的方法。 That way, the "polling" that simply has to be done at some level happens within the bounds of one machine, and just costs a few CPU cycles and data reads instead of constant network calls. 这样,只需在某个级别上完成的“轮询”就在一台机器的范围内发生,并且仅花费几个CPU周期和数据读取,而不是持续的网络调用。

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

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