<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card title="查看服务器硬件信息">
<p>
作者:<a href="index.php?action=showuser&amp;userid=1&amp;hash=">admin</a><br />时间:2014-03-19 13:08<br />分类:<a href="index.php?action=list&amp;cid=3&amp;hash=">电脑技术</a><br />内容:
查看服务器硬件信息


查看机器型号
# dmidecode | grep &quot;Product Name&quot; 


查看CPU信息（型号）
# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
      8  Intel(R) Xeon(R) CPU            E5410   @ 2.33GHz
(看到有8个逻辑CPU, 也知道了CPU型号)


# cat /proc/cpuinfo | grep physical | uniq -c
      4 physical id      : 0
      4 physical id      : 1
(说明实际上是两颗4核的CPU)




查询一个机器是32位还是64位
# getconf LONG_BIT
32 (说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit)
# file /bin/ls
 /bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped




查看当前操作系统发行版信息
# cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)


查看当前操作系统内核信息
# uname -a
Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux


查看网卡型号
#  lspci | grep -i net


网卡驱动信息
# modinfo igb


查看网卡信息
# dmesg | grep -i eth




查看disk
## df -h


查看内存信息
# cat /proc/meminfo
# vmstat &ndash;s
## free


查看网络流量
## cat /proc/net/dev


查看CPU
## cat /proc/stat


查看进程CPU和MEM
# ps -aux
# top -n 1


查看负载
##/proc/loadavg
</p><p>
<a href="index.php?action=login&amp;hash=">立即登陆发表评论</a><br />
</p>
<p><a href="index.php?action=list&amp;hash=">返回日志列表</a><br /><a href="index.php?action=index&amp;hash=">返回主页</a></p>
</card>
</wml>
