简体   繁体   English

使用 PowerCLI for .NET 在 VMware vSphere 客户端上拦截错误消息

[英]Intercept error messages on VMware vSphere client using PowerCLI for .NET

Is there a way to catch the error messages appearing on the VMware vSphere client using PowerCLI for .NET?有没有办法使用 PowerCLI for .NET 捕获出现在 VMware vSphere 客户端上的错误消息?
I used Project Onyx 2.0 to capture all mouse clicks and obtain code in C#.我使用 Project Onyx 2.0 捕获所有鼠标点击并获取 C# 中的代码。 But if some operation fails, is there a way to print that on the console?但是如果某些操作失败了,有没有办法在控制台上打印呢?

You can't do that.你不能那样做。 These error messages are notifications and if you want to "catch" them you need to pull them out of the VMware server, with PowerCLI or with a C# program.这些错误消息是通知,如果您想“捕获”它们,您需要使用 PowerCLI 或 C# 程序将它们从 VMware 服务器中拉出。

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

相关问题 在c#中使用vsphere-automation-sdk.net从VMWare禁用VM的网络接口卡中的问题 - Issue in Disable Network interface Card of VM from the VMWare using vsphere-automation-sdk.net in c# 在 WCF 客户端中拦截消息 - Intercept messages in a WCF Client 拦截来自客户端的Web服务的SOAP消息 - Intercept SOAP messages from and to a web service at the client 如何使用VMware vSphere SDK在不具有分布式端口组的ESXi中获取标准交换机中端口组的列表 - How to get the list of Port Groups in a Standard switch in an ESXi without Distributed Port Groups using VMware vSphere SDK 对于vSphere和vCenter自动化,PowerCLI cmdlet或VIX API是更好的方法吗? - For vSphere and vCenter automation, is PowerCLI cmdlets or VIX API the better approach? 使用StartDoc()/ EndDoc()时,如何截获USB打印机错误消息? - How do you intercept USB printer error messages when using StartDoc()/EndDoc()? 使用 C# 和 vSphere API .NET 库在 ESXi 中创建 VM - Create VM in ESXi using C# and the vSphere API .NET library C# VMWare PowerCli 6.0 从文件夹启动-VM - C# VMWare PowerCli 6.0 Start-VM from a folder SignalR .NET客户端无法接收消息 - SignalR .NET Client not receiving messages 使用Web应用程序在客户端的日志文件中记录错误消息 - logging error messages in a log file for the client using a web application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM