?环境下查看服务器硬件信息

查看CPU型号
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c?
?16? Intel(R) Xeon(R) CPU X5560? @ 2.80GHz
查看物理CPU个数
? cat /proc/cpuinfo | grep physical | uniq -c
? 1 physical id : 1
? 1 physical id : 0
查看CPU运行模式:32位或者64位,如果是32位的话并不代表不能运行在64位下
? getconf LONG_BIT?
64
? 查看是否CPU支持64位系统,如果值大于0,则支持64位运算,lm指long mode
? cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l?
? 16
? 查看内存信息?
? cat /proc/meminfo
? MemTotal: kB
? MemFree: kB
? Buffers:? kB
? Cached: kB
? SwapCached: 16 kB
? Active: kB
? Inactive: kB
? HighTotal: 0 kB
? HighFree:? 0 kB
? LowTotal: kB
? LowFree: kB
? SwapTotal:? kB
? SwapFree: kB
? Dirty:? 60 kB
? Writeback: 0 kB
? AnonPages:? kB
? Mapped: kB
? Slab:? kB
? PageTables:? kB
? NFS_Unstable:? 0 kB
Bounce:? 0 kB
? mitLimit:? kB
? mitted_AS: kB
? VmallocTotal: kB
? VmallocUsed:? kB
? VmallocChunk: kB
? HugePages_Total: 0
? HugePages_Free:? 0
? HugePages_Rsvd:? 0
? Hugepagesize: 2048 kB
查看当前系统内核信息
? uname -a
? Linux?HOSTNAME 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
? 查看当前内核信息?
?cat /etc/issue | grep Linux?
? Red Hat Enterprise Linux Server release 5.4 (Tikanga)
? 查看服务器型号
? dmidecode | grep "Product Name"
? Product Name: PowerEdge R710
Product Name: 0VWN1R
查看卡信息
?dmesg | grep -i eth?
? Broad Xtreme II Gigabit Ether Driver bnx2 v1.9.3 (March 17, 2009)
? eth0: Broad Xtreme II BCM5709 1000Base-T (C0) PCI Express found at mem d, IRQ 106, node addr a4badb28c33d
? eth1: Broad Xtreme II BCM5709 1000Base-T (C0) PCI Express found at mem d, IRQ 114, node addr a4badb28c33f
? eth2: Broad Xtreme II BCM5709 1000Base-T (C0) PCI Express found at mem da000000, IRQ 122, node addr a4badb28c341
eth3: Broad Xtreme II BCM5709 1000Base-T (C0) PCI Express found at mem dc000000, IRQ 130, node addr a4badb28c343
? ic: Added IC device: eth0
? ic: Added IC device: eth1
ic: Added IC device: eth2
? ic: Added IC device: eth3
? bnx2: eth0: using MSIX
? ADDRCONF(DEV_UP): eth0: link is not ready
? bnx2i: iSCSI not supported, dev=eth0
bnx2i: iSCSI not supported, dev=eth0
? bnx2: eth0 NIC Copper Link is Up, 1000 Mbps full duplex
? ADDRCONF(DEV_CHANGE): eth0: link bees ready
? eth0: no IPv6 routers present
? process `sysctl' is using deprecated sysctl (syscall) .ipv6.neigh.eth0.base_reachable_time; Use.ipv6.neigh.eth0.base_reachable_time_ms instead.

本文链接:Linux环境下查看服务器硬件信息

您可能也会喜欢

友情链接:

大悲咒注音 心经唱诵 经文