檢視伺服器硬體資訊方法

  你們知道伺服器硬體資訊怎麼檢視嗎,下面是小編帶來的內容,歡迎閱讀!

  :

  一、DOS命令檢視伺服器的配置

  1.查詢CPU個數

  cat /proc/cpuinfo | grep physical | sort -n | uniq | wc -l

  2.查詢伺服器型號

  dmidecode | grep "Product Name"

  或

  dmidecode -s system-product-name

  3.檢視CPU幾核

  cat /proc/cpuinfo | grep physical | sort -n | uniq -c

  4.檢視CPU資訊<型號>

  cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq

  5.檢視CPU執行位數

  # getconf LONG_BIT

  說明當前CPU執行在32bit模式下, 但不代表CPU不支援64bit

  # cat /proc/cpuinfo | grep flags | grep 'lm' | wc -l

  結果大於0, 說明支援64bit計算. lm指long mode, 支援lm則是64bit

  6.檢視當前作業系統核心資訊

  uname -a

  7.檢視網絡卡速率

  ethtool eth0

  8.檢視當前作業系統發行版資訊

  lsb_release -d

  9.檢視記憶體的插槽數,已經使用多少插槽.每條記憶體多大

  dmidecode|grep -P -A5 "Memory\s+Device" | grep Size |grep -v Range | cat -n

  10. 檢視記憶體的頻率

  dmidecode|grep -A16 "Memory Device"|grep 'Speed' | cat -n

  11.檢視伺服器出廠編號<適用於DELL 。 LENOVO則顯示不出來>

  dmidecode -s chassis-serial-number

  12.對於DELL伺服器的資訊可通過DSET獲取

  DSET工具2.2使用說明Windows版:

  DSET工具2.1使用說明Linux版:

  13.For Windowswin2003 winXP以上版本:

  命令1:wmic bios get serialnumber獲取SN|不適用於LENOVO機器

  命令2:wmic csproduct get name,identifyingnumber獲取SN和機型

  以下為一臺LENOVO R510 G7 Windows方面的一些資訊查詢

  二、魯大師查詢伺服器的配置

  通過魯大師查詢到的一些資訊