LINUX查看服务器硬件配置(转)

LINUX查看硬件配置

1.      查看所有硬件的型号

  1. dmidecode | more
  1. # dmidecode 2.2
  2. SMBIOS 2.5 present.
  3. 170 structures occupying 4593 bytes.
  4. Table at 0xCFEFE000.
  5. Handle 0x0000
  6. DMI type 0, 24 bytes.
  7. BIOS Information
  8. Vendor: HP
  9. Version: P61
  10. Release Date: 12/07/2007
  11. Address: 0xF0000
  12. Runtime Size: 64 kB
  13. ROM Size: 4096 kB
  14. Characteristics:
  15. PCI is supported
  16. PNP is supported
  17. BIOS is upgradeable
  18. BIOS shadowing is allowed
  19. ESCD support is available
  20. Boot from CD is supported
  21. Selectable boot is supported
  22. EDD is supported
  23. ……….
  24. ……….

2.      查看memory info

  1. cat /proc/meminfo | more
  1. MemTotal:     12469500 kB
  2. MemFree:      10620264 kB
  3. Buffers:        121284 kB
  4. Cached:        1514636 kB
  5. SwapCached:          0 kB
  6. Active:         622312 kB
  7. Inactive:      1117020 kB
  8. HighTotal:    11662616 kB
  9. HighFree:     10018432 kB
  10. LowTotal:       806884 kB
  11. LowFree:        601832 kB
  12. SwapTotal:    12289716 kB
  13. SwapFree:     12289716 kB
  14. Dirty:             560 kB
  15. Writeback:           0 kB
  16. Mapped:         300144 kB
  17. Slab:            68728 kB
  18. CommitLimit:  18524464 kB
  19. Committed_AS:  3062652 kB
  20. PageTables:      12916 kB
  21. VmallocTotal:   106488 kB
  22. VmallocUsed:      8760 kB
  23. VmallocChunk:    97268 kB
  24. HugePages_Total:     0
  25. HugePages_Free:      0
  26. Hugepagesize:     2048 kB

3.      查看CPU info

  1. cat /proc/cpuinfo
  1. processor       : 0
  2. vendor_id       : GenuineIntel
  3. cpu family      : 6
  4. model           : 15
  5. model name      : Intel(R) Xeon(R) CPU           E7320  @ 2.13GHz
  6. stepping        : 11
  7. cpu MHz         : 2133.302
  8. cache size      : 2048 KB
  9. physical id     : 0
  10. siblings        : 4
  11. core id         : 0
  12. cpu cores       : 4
  13. fdiv_bug        : no
  14. hlt_bug         : no
  15. f00f_bug        : no
  16. coma_bug        : no
  17. fpu             : yes
  18. fpu_exception   : yes
  19. cpuid level     : 10
  20. wp              : yes
  21. flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat
1、查看cpu信息:/proc/cpuinfo
2、查看内存信息:/prco/meminfo
3、查看服务器版本信息:cat /etc/issue
4、服务器系统位数:uname -a
5、网卡信息:ifconfig
5、查看防火墙配置:cat /etc/sysconfig/iptables
6、服务器编码格式:cat /etc/sysconfig/i18n
上一篇:Linux查看硬件配置


下一篇:xml 创建 和 处理 及其修改