我想通过IP地址获取客户端的内存使用情况。 [英] i want to get memory usage of client through IP address.

查看:142
本文介绍了我想通过IP地址获取客户端的内存使用情况。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好;


我是.NET新手,我被分配了这样的工作。


我的问题是,3个客户端与局域网上的服务器连接,我想获得另一个客户端上一个客户端的CPU使用率和物理内存使用量,

i更多指定我的questin,我有IP地址10.15.24.10和我的朋友的IP是10.15.24.30,从我的系统我只是通过我朋友的系统的IP地址,我得到CPU使用和物理内存使用我的朋友。


请告诉我是否可以使用任何方法?并且还请详细说明我应该遵循哪个流程,这个问题将通过使用桌面应用程序或基于Web的应用程序来解决。


请...............让我了解它的发展。


问候

解决方案

看一下这个帖子:
线程


对于远程计算机,您需要提供用户名和密码以及IP /计算机名

展开 | 选择 | Wrap | 行号


添加对System.Management的引用;


欲了解更多信息google:WMI(windows management ins)结婚)

还要在msdn中找一个wmi工具...


非常感谢'''''Dirtbag"作为答案但是,当我在管理范围中给出我朋友的计算机的IP地址(10.15.24.30)时就像在下面的代码中检查我朋友在该特定时间的内存使用情况一样,它会给出错误 RPC服务器未连接或未响应我认为这是一个被触发的异常,我不知道处理此异常以满足我的要求,该命令被命名为此线程的标题。

如果你能解决这个问题,或者任何其他可以帮助我的论坛成员,
i应该感恩。

展开 | 选择 | Wrap | 行号

hi all;

i am new in .NET and i am assigned work like this.

my question is that, 3 clients are connected wtih server on LAN, i want to get the cpu usage and physical memory usage of one client on another client,
i more specify my questin that, i have IP address 10.15.24.10 and the IP of my friend is 10.15.24.30, from my system i just pass IP Address of my friend''s system and i get cpu usage and physical memory usage of my friend.

please tell me is it possible by using any method ?? and please also demonstrate in little detail what process should i follow, this problem will be solved by using desktop application or web based app.

please............... give me idea about its development.

regards

解决方案

take a look at this thread:
thread

For remote computers you need to supply username and password along with IP/computername

Expand|Select|Wrap|Line Numbers


Do add a reference to System.Management;

For more info google : WMI (windows management instrumentation)
Also look for a wmi tool in msdn...


thanks alot ''''Dirtbag" for answer but, when i give the IP address(10.15.24.30) of my friend''s computer in "management scope" as like in code below to check my friend''s memory usage at that specific time, then it gives error that" RPC server is not connected or not responding" i think that it is an exception that is fired, and i am unaware to handle this exception to fulfil my requirement that is named as the title of this thread.

i shall be thankful if you could resolve this problem, or any other forum member who could help me.

Expand|Select|Wrap|Line Numbers


这篇关于我想通过IP地址获取客户端的内存使用情况。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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