ASP .NET Apps v2.0* 的 WMI 类是什么?

发布于 2024-10-08 02:55:49 字数 124 浏览 3 评论 0原文

当我在本地拉取 win32* 类时,我没有看到引用 ASP.NET Apps v.2.0.50727 计数器的类,该计数器显示在 perfmon gui 中。如何在 Windows 2003 上提取 2.0 应用程序的 WMI 信息?

When I pull the win32* classes locally I am not seeing a class that refers to the ASP.NET Apps v.2.0.50727 counters which show up in the perfmon gui. How do I pull WMI info for 2.0 applications on Windows 2003?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱冒险 2024-10-15 02:55:49

运行 PowerShell 以匹配 root\cimv2: 中的任何 WMI 类

gwmi -List "*asp*" | ft Name

给出:(

Name
----
Win32_PerfFormattedData_ASPNET2050727_ASPNETAppsv2050727
Win32_PerfRawData_ASPNET2050727_ASPNETAppsv2050727
Win32_PerfFormattedData_ASPNET2050727_ASPNETv2050727
Win32_PerfRawData_ASPNET2050727_ASPNETv2050727
Win32_PerfFormattedData_ASPNET4030319_ASPNETAppsv4030319
Win32_PerfRawData_ASPNET4030319_ASPNETAppsv4030319
Win32_PerfFormattedData_ASPNET4030319_ASPNETv4030319
Win32_PerfRawData_ASPNET4030319_ASPNETv4030319
Win32_PerfFormattedData_ASPNET_ASPNET
Win32_PerfRawData_ASPNET_ASPNET
Win32_PerfFormattedData_ASPNET_ASPNETApplications
Win32_PerfRawData_ASPNET_ASPNETApplications
Win32_PerfFormattedData_aspnetstate_ASPNETStateService
Win32_PerfRawData_aspnetstate_ASPNETStateService
Win32_PerfFormattedData_RemoteAccess_RASPort
Win32_PerfRawData_RemoteAccess_RASPort

我认为“.”在 WMI 类名中无效,因此命名。)

此外,通过 System.Diagnostics.PerformanceCounter,您可以直接读取性能计数器,无需通过 WMI。

Running PowerShell to match any WMI classes in root\cimv2:

gwmi -List "*asp*" | ft Name

gives:

Name
----
Win32_PerfFormattedData_ASPNET2050727_ASPNETAppsv2050727
Win32_PerfRawData_ASPNET2050727_ASPNETAppsv2050727
Win32_PerfFormattedData_ASPNET2050727_ASPNETv2050727
Win32_PerfRawData_ASPNET2050727_ASPNETv2050727
Win32_PerfFormattedData_ASPNET4030319_ASPNETAppsv4030319
Win32_PerfRawData_ASPNET4030319_ASPNETAppsv4030319
Win32_PerfFormattedData_ASPNET4030319_ASPNETv4030319
Win32_PerfRawData_ASPNET4030319_ASPNETv4030319
Win32_PerfFormattedData_ASPNET_ASPNET
Win32_PerfRawData_ASPNET_ASPNET
Win32_PerfFormattedData_ASPNET_ASPNETApplications
Win32_PerfRawData_ASPNET_ASPNETApplications
Win32_PerfFormattedData_aspnetstate_ASPNETStateService
Win32_PerfRawData_aspnetstate_ASPNETStateService
Win32_PerfFormattedData_RemoteAccess_RASPort
Win32_PerfRawData_RemoteAccess_RASPort

(I don't think "." is valid in a WMI class name, hence the naming.)

Also, with System.Diagnostics.PerformanceCounter you can read a performance counter directly, you don't need to go via WMI.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文