linux查看硬件信息大全

1, 主板信息.查看主板的序列号————————————————–#使用命令dmidecode | grep -i ‘serial number’#查看板卡信息cat /proc/pci————————————————–2, cpu信息————————————————–#通过/proc文件系统1) cat /proc/cpuinfo#通过查看开机信息2) dmesg | grep -i ‘cpu’#3)dmidecode -t processor————————————————–3, 硬盘信息————————————————–#查看分区情况fdisk -l#查看大小情况df -h#查看使用情况du -h#hdparm -I /dev/sda#dmesg | grep sda————————————————–4, 内存信息————————————————–1) cat /proc/meminfo2) dmesg | grep mem3) free -m4) vmstat5) dmidecode | grep -i mem————————————————–5, 网卡信息————————————————–1) dmesg | grep -i ‘eth’2) cat /etc/sysconfig/hwconf | grep -i eth3) lspci | grep -i ‘eth’————————————————–6, 鼠标键盘和USB信息查看键盘和鼠标:cat /proc/bus/input/devices查看USB设备:cat /proc/bus/usb/devices查看各设备的中断请求(IRQ):cat /proc/interrupts7, 显卡信息————————————————–1)lspci |grep -i ‘VGA’2)dmesg | grep -i ‘VGA’————————————————–8, 声卡信息————————————————–1)lspci |grep -i ‘VGA’2)dmesg | grep -i ‘VGA’————————————————–7, 其他命令.用硬件检测程序kuduz探测新硬件:service kudzu start ( or restart).dmesg (查看所有启动时检测到的硬件信息).lspci (显示外设信息, 如usb,网卡等信息).cat /etc/sysconfig/hwconf.mpstat8, 需要手动安装的工具lshw,hwinfo,hal-device-manager9, Solaris如何检测硬件参数俺从别处发现了些有意思的东西:Solaris的硬件相关命令发表:2004-3-8 11:20:36 出处:你的博客网(yourblog.org)——————————————————————————–1).查看当前处理器的类型和速度(主频)# psrinfo –vStatus of processor 1 as of: 11/24/01 10:34:41Processor has been on-line since 11/24/01 10:18:20.The sparcv9 processor operates at 432 MHz,and has a sparcv9 floating point processor.Status of processor 3 as of: 11/24/01 10:34:41Processor has been on-line since 11/24/01 10:18:22.The sparcv9 processor operates at 432 MHz,and has a sparcv9 floating point processor.2).打印当前的OBP版本号# prtconf –VOBP 3.20.0 2000/10/24 10:47# /usr/platform/sun4u/sbin/prtdiag –v | grep OBPOBP 3.20.0 2000/10/24 10:47 POST 6.1.0 2000/10/24 10:49ok. .versionRelease 3.20 Version 0 created 2000/10/24 10:47OBP 3.20.0 2000/10/24 10:47POST 6.1.0 2000/10/24 10:49OBDIAG 4.5.1 2000/10/24 10:483).查看硬盘物理信息(vendor, RPM, Capacity)# iostat –Esd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0Vendor: SEAGATE Product: ST34371W SUN4.2G Revision: 7462 Serial No:JDX394220KW EBCSize: 4.29GB ;Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0Illegal Request: 0 Predictive Failure Analysis: 0sd2 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0Vendor: FUJITSU Product: MAJ3364M SUN36G Revision: 0804 Serial No: 01M18144Size: 36.42GB ;Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0Illegal Request: 0 Predictive Failure Analysis: 0sd3 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0Vendor: FUJITSU Product: MAJ3364M SUN36G Revision: 0804 Serial No: 01M16199Size: 36.42GB ;Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0Illegal Request: 0 Predictive Failure Analysis: 0sd21 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0Vendor: TOSHIBA Product: DVD-ROM SD-M1401 Revision: 1007 Serial No: 06/22/00Size: 18446744073.71GB ;Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0Illegal Request: 0 Predictive Failure Analysis: 04).查看磁盘的几何参数和分区信息# prtvtoc /dev/rdsk/c0t0d0s0* /dev/rdsk/c0t0d0s0 partition map** Dimensions:* 512 bytes/sector* 135 sectors/track* 16 tracks/cylinder* 2160 sectors/cylinder* 3882 cylinders* 3880 accessible cylinders** Flags:* 1: unmountable* 10: read-only** Unallocated space:* First Sector Last* Sector Count Sector* 8277120 103680 8380799** First Sector Last* Partition Tag Flags Sector Count Sector Mount Directory0 2 00 0 2049840 2049839 /1 3 01 2049840 615600 26654392 5 00 0 8380800 83807995 0 00 2665440 2458080 5123519 /opt6 4 00 5123520 3073680 8197199 /usr7 8 00 8197200 79920 8277119 /export/home5).显示已经使用和未使用的i-node数目# df –F ufs –o iFilesystem iused ifree %iused Mounted on/dev/dsk/c0t0d0s0 7859 479821 2% //dev/dsk/c0t0d0s6 37763 339517 10% /usr/dev/dsk/c0t0d0s5 722 301102 0% /opt/dev/dsk/c0t0d0s7 4 24380 0% /export/home6).显示cpu使用率最高的进程# ps –eo pid,pcpu,args | sort +1n该命令输出当前系统进程的pid, CPU占用率及命令描述,并以pcpu来排序7).显示内存占用率最高的进程# ps –eo pid,vsz,args | sort +1n该命令输出当前系统进程的pid,内存占用率及命令描述,并以vsz来排序8).查看及启动系统的32位或64位内核模式64位模式# isalist –vsparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7sparc# isainfo –v64-bit sparcv9 applications32-bit sparc applications# isainfo –b64启动64位内核模式ok. boot kernel/sparcv9/unix32位模式# isalist –vsparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc# isainfo –v32-bit sparc applications# isainfo –b32启动32位模式ok. boot kernel/unix9).查看当前的OpenWindows版本# showrev –wOpenWindows version:X11 Version 6.4.1 5 November 200110).查看当前CDE的版本# /usr/ccs/bin/what /usr/dt/bin/dtmail/usr/dt/bin/dtmail:CDE Version 1.4.6_06CDEVersion1.4.6_0611).测定当前的显示器刷新频率/usr/sbin/ffbconfig –rev \?Valid values for -res option are:1024x768x60 [1]1024x768x70 [1]1024x768x75 [1] [2]1024x768x771024x800x841152x900x661152x900x761280x800x76 [1] [2]1280x1024x60 [1] [2]1280x1024x671280x1024x761280x1024x85 [1] [2]960x680x112s960x680x108s640x480x60 [1] [2]640x480x60i [1]768x575x50i [1]1440x900x76 [1] [2]1600x1000x66 [1] [2]1600x1000x76 [1] [2]1600x1280x76 [1] [2]1920x1080x72 [1] [2]1920x1080x76 [1] [2]1920x1200x70 [1] [2]1920x1200x75 [1] [2]svga [1]11521280stereovga [1] [2]ntsc [1]pal [1]noneNotes:[1] monitor does not support this resolution.[2] this version of FFB (FFB1) does not support this resolution12).查看系统配置# /usr/platform/sun4u/sbin/prtdiag –vSystem Configuration: Sun Microsystems sun4u Sun Enterprise 450 (2 XUltraSPARC-II 432MHz)System clock frequency: 86 MHzMemory size: 1024 Megabytes========================= CPUs =========================Run Ecache CPU CPUBrd CPU Module MHz MB Impl. Mask–More—– — ——- —– —— —— —-SYS 1 1 432 4.0 US-II 10.0SYS 3 3 432 4.0 US-II 10.0========================= Memory =========================Interlv. Socket SizeBank Group Name (MB) Status—- —– —— —- ——0 none 1901 256 OK0 none 1902 256 OK0 none 1903 256 OK0 none 1904 256 OK0 none 1701 256 OK0 none 1702 256 OK========================= IO Cards =========================No failures found in System==================================================== Environmental Status =========================System Temperatures (Celsius):——————————AMBIENT 20CPU 1 40CPU 3 40=================================Front Status Panel:——————-Keyswitch position is in On mode.System LED Status: POWER GENERAL ERROR ACTIVITY[ ON] [OFF] [ ON]DISK ERROR THERMAL ERROR POWER SUPPLY ERROR[OFF] [OFF] [OFF]Disk LED Status: OK = GREEN ERROR = YELLOWDISK 2: [OK] DISK 3: [OK]DISK 0: [OK] DISK 1: [EMPTY]=================================Fans:—–Fan Bank Speed Status——– —– ——CPU 49 OKPWR 31 OKPower Supplies:—————Supply Rating Temp Status—— —— —- ——0 550 W 33 OK1 550 W 33 OK========================= HW Revisions =========================ASIC Revisions:—————STP2223BGA: Rev 4STP2223BGA: Rev 4STP2223BGA: Rev 4STP2003QFP: Rev 1STP2205BGA: Rev 1System PROM revisions:———————-OBP 3.20.0 2000/10/24 10:47 POST 6.1.0 2000/10/24 10:49# sysdef** Hostid*80fee99b** sun4u Configuration*** Devices*packages (driver not attached)terminal-emulator (driver not attached)deblocker (driver not attached)obp-tftp (driver not attached)disk-label (driver not attached)SUNW,builtin-drivers (driver not attached)sun-keyboard (driver not attached)ufs-file-system (driver not attached)chosen (driver not attached)openprom (driver not attached)client-services (driver not attached)options, instance #0aliases (driver not attached)memory (driver not attached)virtual-memory (driver not attached)associations (driver not attached)slot2disk (driver not attached)slot2led (driver not attached)slot2dev (driver not attached)pci, instance #0ebus, instance #0auxio (driver not attached)……# prtconf –DSystem Configuration: Sun Microsystems sun4uMemory size: 1024 MegabytesSystem Peripherals (Software Nodes):SUNW,Ultra-4packagesterminal-emulatordeblockerobp-tftpdisk-labelSUNW,builtin-driverssun-keyboardufs-file-systemchosenopenpromclient-servicesoptions, instance #0 (driver name: options)aliasesmemoryvirtual-memoryassociationsslot2diskslot2ledslot2devpci, instance #0 (driver name: pcipsy)ebus, instance #0 (driver name: ebus)auxiopower (driver name: power)SUNW,pllscse, instance #0 (driver name: se)su, instance #0 (driver name: su)…..13).查看当前系统中已经应用的补丁# showrev –pPatch: 109618-01 Obsoletes: Requires: Incompatibles: Packages: SUNWeuxwe,SUNWeuezt, SUNWeudlg, SUNWeuddaPatch: 109889-01 Obsoletes: 109353-04 Requires: Incompatibles: Packages:SUNWkvmx, SUNWkvm, SUNWmdb, SUNWhea, SUNWpstl, SUNWpstlxPatch: 110369-05 Obsoletes: 110709-02 Requires: Incompatibles: Packages:SUNWkvmx, SUNWcarx, SUNWcsrPatch: 110370-03 Obsoletes: 111643-01 Requires: Incompatibles: Packages:SUNWkvmx, SUNWkvm, SUNWmdb, SUNWhea, SUNWpstl, SUNWpstlxPatch: 110373-04 Obsoletes: 111508-01 Requires: Incompatibles: Packages:SUNWkvmx, SUNWcarx, SUNWcsrPatch: 110374-08 Obsoletes: 110136-02, 110516-02 Requires: Incompatibles:Packages: SUNWkvmx, SUNWcarx, SUNWcar, SUNWcsr, SUNWmdbx…..14).显示当前的运行级别# who –rHNAME LINE TIME IDLE PID COMMENTS. run-level 3 Nov 24 10:18 3 0 S15).查找一个文件所从属的包# pkgchk –lp /usr/lib/sendmailPathname: /usr/lib/sendmailType: regular fileExpected mode: 4555Expected owner: rootExpected group: binExpected file size (bytes): 761368Expected sum(1) of contents: 41707Expected last modification: Sep 24 03:13:13 2001Referenced by the following packages:SUNWsndmuCurrent status: installed16).查看当前的bind版本信息# nslookup –class=chaos –q=txt version.bindServer: ns.lnpta.net.cnAddress: 202.96.64.68本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/76292/showart_1287559.html

做对的事情比把事情做对重要。

linux查看硬件信息大全

相关文章:

你感兴趣的文章:

标签云: