资源描述:
《linux系统硬件信息》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Linux系统服务器的硬件信息1.查看机器型号SUSE:~#dmidecode
2、grep"ProductName"ProductName:IBMSystemx3650-[7979FJL]-ProductName:SystemPlanarProductName:PowerSuppyBackplaneProductName:PCI-ExpressRiserCard,Slots1&2解释说明:通过该命令可以得到该服务器的型号:IBMSystemx3650-[7979FJL]-2.查看linux系统的内核版本SUSE:~#cat/proc
3、/versionLinuxversion2.6.32.12-0.7-default(geeko@buildhost)(gccversion4.3.4[gcc-4_3-branchrevision152973](SUSELinux))#1SMP2010-05-2011:14:20+0200解释说明:该服务器中linux内核的版本号:2.6.32编译器gcc的版本号:4.3.43.查看主板信息SUSE:~#dmidecode
4、grep-i'serialnumber'SerialNumber:99FN644SerialNumber:No
5、tSpecified解释说明:该服务器的主板号为:99FN6444.查看cpu信息SUSE:~#cat/proc/cpuinfo
6、grepnamemodelname:Intel(R)Xeon(R)CPUX5450@3.00GHzmodelname:Intel(R)Xeon(R)CPUX5450@3.00GHzmodelname:Intel(R)Xeon(R)CPUX5450@3.00GHzmodelname:Intel(R)Xeon(R)CPUX5450@3.00GHzmodelname:Intel(R)Xeon(R)CPUX54
7、50@3.00GHzmodelname:Intel(R)Xeon(R)CPUX5450@3.00GHzmodelname:Intel(R)Xeon(R)CPUX5450@3.00GHzmodelname:Intel(R)Xeon(R)CPUX5450@3.00GHzSUSE:~#cat/proc/cpuinfo
8、grepphysical
9、uniq-c1physicalid:01addresssizes:38bitsphysical,48bitsvirtual1physicalid:01addresssizes:38bitsphys
10、ical,48bitsvirtual1physicalid:01addresssizes:38bitsphysical,48bitsvirtual1physicalid:01addresssizes:38bitsphysical,48bitsvirtual1physicalid:11addresssizes:38bitsphysical,48bitsvirtual1physicalid:11addresssizes:38bitsphysical,48bitsvirtual1physicalid:11addresssizes:38b
11、itsphysical,48bitsvirtual1physicalid:11addresssizes:38bitsphysical,48bitsvirtualSUSE:~#getconfLONG_BIT64解释说明:该服务器所用的cpu是Intel(R)Xeon(R)CPU,型号是X5450,其中共有8个逻辑cpu,物理上是两颗,每一颗都是四核的cpu,当前cpu正工作在64位模式下。5.查看内存信息SUSE:~#free-mtotalusedfreesharedbufferscachedMem:7875904697101993
12、90-/+buffers/cache:3147561Swap:12001012001解释说明:该服务器的内存总容量是7875Mb(约8Gb),已经使用了904Mb,还剩余6971Mb的空间,缓存空间已用314Mb,还剩余7561Mb。该服务器的虚拟内存总容量为12001Mb(越12Gb),现在还未使用。6.查看硬盘信息SUSE:~#df-h文件系统容量已用可用已用%挂载点/dev/sda1123G4.9G112G5%/devtmpfs3.9G76K3.9G1%/devtmpfs3.9G88K3.9G1%/dev/shmSUSE:~
13、#fdisk-lDisk/dev/sda:146.7GB,146685296640bytes255heads,63sectors/track,17833cylindersUnits=cylindersof16065*512=8225280bytes