打开远程机器或等效工具的任务管理器 [英] Opening task manager of remote machine or something equivalent

查看:84
本文介绍了打开远程机器或等效工具的任务管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前一项有趣的任务是创建一个网页,以查看在某处虚拟机上运行的某些进程.

因此我具有对远程计算机的管理员访问权限,并且可以使用WMI查询该进程,但Win32_Process类未显示我需要的所有值.

仅供参考,实际上,这是在模仿任务管理器,如果您坐在远程计算机上并具有经过过滤的进程列表,那么我找不到的是自上次刷新编号以来的等效CPU使用率. /p>

所以我开始查看Win32_ProcessStartTrace,但这不是我所需要的.

然后我有了一个想法,可以通过Web应用程序在本地启动任务管理器,但可以指向远程计算机< ---.

如果没有,那么没人知道从远程计算机获取此信息的方法.

我有大部分需要的东西,但很高兴将其装箱并重新开始.

我或者想打开远程任务管理器并在本地显示(在客户端而不是Web服务器上),或者我只是在浏览器中开发自己的任务管理器外观页面并使其自动刷新,所以我可以第二步大部分时间都可以完成,但是我仍然找不到如何获得CPU列的方法.它从字面上显示了自上次刷新以来分配给该进程的CPU时间的百分比.

我也听说过Win32_PerfFormattedData_PerfProc_Process,但这在我的机器上不存在,而且我确实安装了wmicookr.dll,所以我不想使用这个原因,因为我永远不能保证它在VM上. /p>

解决方案

您的问题是您想使用服务器端代码读取客户端参数,这是完全不可能的...

但是,尝试找到一些ActiveX对象或为此目的构建自己的对象....


 

One of my current, enjoyable tasks is to create a web page that looks at certain processes running on a Virtual Machine somewhere.

 

So I have admin access to the remote machine and I can use WMI to query for the process but the Win32_Process class doesn't show all the values i need.

 

FYI the is really mimicing the task manager that would be available if you were sitting at the remote machine with a filtered list of processes, what I can't find is an equivalent CPU usage since last refresh number.

 

So I started looking at the Win32_ProcessStartTrace but that's not what I need.

 

Then I had an idea of starting the task manager locally via the web app but pointing at the remote machine <--- is this possible.

 

If not does anyone know of a way to get this information from a remote machine.

 

I have most of what I need but am quite happy to bin it and start again.

 

I either want to open the remote task manager and have it shown locally (on the client not the web server) OR I simply develop my own task manager looking page in the browser and have it auto refresh, I can do most of the second optin but I still can't find how I would get the CPU column. It literally shows the % of CPU time devoted to the process since the last refresh.

 

I also heard of Win32_PerfFormattedData_PerfProc_Process but this doesn't exist on my machine and I do have the wmicookr.dll installed sooo I don't want to use this cause I can never guarantee it's there on a VM.

解决方案

Your problem is that you want to read client parameters withs server side code, that is quite imposible...

However, try to find some ActiveX object or build one of your own for that purposes....


这篇关于打开远程机器或等效工具的任务管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆