获取Linux机器的系统信息 [英] Getting System info for Linux machine

查看:308
本文介绍了获取Linux机器的系统信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先我必须找到远程机器的Os详细信息,如果它是Windows机器我们可以使用WMI查询..那么Linux或Unix机器...我的主要目的是获取Linux和unix机器的系统信息适用于WIndows和Linux的相同协议或不同的protol。请告诉我如何approch Linux机器获取数据..是否有任何类似于WMI的协议?如果可能在.net中给我一些指导来启动项目。

解决方案

请从这里开始: http://www.linuxloop.com/2009/09/28/remotely-accessing-your-linux-computer-part -1 [ ^ ]。



不,它不是与WMI类似。 Linux在这方面与Windows非常不同,而WMI完全针对Windows。阅读有关如何通过经过身份验证的(可能是非交互式的)用户访问所有系统设置的Linux文档。



-SA

First I have to find the Os details of remote machine if it Windows machine we can use WMI queries .. What about for Linux or Unix machine ... My main aim is to get system info of Linux and unix machine either using same protocol or diffrent protol for both WIndows and Linux. Please tell me how can i approch Linux machine to get the data .. is there any protocol similar to WMI ? Give me some guidlines to start the project if it is possible in .net.

解决方案

Please start here: http://www.linuxloop.com/2009/09/28/remotely-accessing-your-linux-computer-part-1[^].

No, it's not "similar to WMI". Linux is very different from Windows in this respect, and WMI it totally specific to Windows. Read Linux documentation on how to access all the system setting by an authenticated (possibly non-interactive) user.

—SA


这篇关于获取Linux机器的系统信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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