linux怎么查看服务器硬件信息
相关话题
你们知道怎么用Linux查看服务器硬件的信息吗?下面是小编带来的关于linux怎么查看服务器硬件信息的内容,欢迎阅读!
linux怎么查看服务器硬件信息?
Linux环境下查看服务器硬件信息
查看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
查看是否CPU支持64位系统,如果值大于0,则支持64位运算,lm指long mode
cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
查看内存信息
cat /proc/meminfo
MemTotal: 74175052 kB
MemFree: 4242856 kB
Buffers: 675664 kB
Cached: 65423884 kB
SwapCached: 16 kB
Active: 46231212 kB
Inactive: 20719936 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 74175052 kB
LowFree: 4242856 kB
SwapTotal: 75778596 kB
SwapFree: 75778384 kB
Dirty: 60 kB
Writeback: 0 kB
AnonPages: 851416 kB
Mapped: 12422988 kB
Slab: 1495940 kB
PageTables: 1372180 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 112866120 kB
Committed_AS: 21125340 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 299916 kB
VmallocChunk: 34359438111 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
Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v1.9.3 (March 17, 2009)
eth0: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem d6000000, IRQ 106, node addr a4badb28c33d
eth1: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem d8000000, IRQ 114, node addr a4badb28c33f
eth2: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem da000000, IRQ 122, node addr a4badb28c341
eth3: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem dc000000, IRQ 130, node addr a4badb28c343
cnic: Added CNIC device: eth0
cnic: Added CNIC device: eth1
cnic: Added CNIC device: eth2
cnic: Added CNIC device: eth3
bnx2: eth0: using MSIX
ADDRCONF(NETDEV_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(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
process `sysctl' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.base_reachable_time; Usenet.ipv6.neigh.eth0.base_reachable_time_ms instead.