linux怎么查看服務(wù)器硬件信息
你們知道怎么用Linux查看服務(wù)器硬件的信息嗎?下面是學(xué)習(xí)啦小編帶來的關(guān)于linux怎么查看服務(wù)器硬件信息的內(nèi)容,歡迎閱讀!
linux怎么查看服務(wù)器硬件信息?
Linux環(huán)境下查看服務(wù)器硬件信息
查看CPU型號
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
16 Intel(R) Xeon(R) CPU X5560 @ 2.80GHz
查看物理CPU個數(shù)
cat /proc/cpuinfo | grep physical | uniq -c
1 physical id : 1
1 physical id : 0
查看CPU運(yùn)行模式:32位或者64位,如果是32位的話并不代表不能運(yùn)行在64位下
getconf LONG_BIT
查看是否CPU支持64位系統(tǒng),如果值大于0,則支持64位運(yùn)算,lm指long mode
cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
查看內(nèi)存信息
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
查看當(dāng)前系統(tǒng)內(nèi)核信息
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
查看當(dāng)前操作系統(tǒng)內(nèi)核信息
cat /etc/issue | grep Linux
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
查看服務(wù)器型號
dmidecode | grep "Product Name"
Product Name: PowerEdge R710
Product Name: 0VWN1R
查看網(wǎng)卡信息
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.
看了"linux怎么查看服務(wù)器硬件信息"文章內(nèi)容的人還看: