2008-10-21

Solaris和Linux下面查看硬件配置信息的命令

我整理的关于硬件信息查看的命令:
linux:
内存: cat /proc/meminfo
cpu: cat /proc/cpuinfo
硬盘: df -h -T(no device的设备看不到)
fdisk -l可以在redhat9.0中看; redhat企业版不行.


solaris:
网卡速度: dmesg |grep link
CPU频率: psrinfo -v 或者mpstat
cpu\内存等:prtdiag -v (大部分信息全部列出) 需要先进入
/usr/platform/sun4u/sbin
硬盘: iostat -E

linux下还有几个命令可以看很多硬件设备的信息.
lspci -v
dmidecode
dmesg

solaris查看系统硬件信息


1. 获得系统信息:
# uname -X
System = SunOS
Node = Test_SunOS
Release = 5.9
KernelID = Generic_112234-03
Machine = i86pc
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1

2.CPU的信息:
# psrinfo -v 0
Status of processor 0 as of: 09/08/2006 14:42:33
Processor has been on-line since 09/08/2006 14:12:03.
The i386 processor operates at 1733 MHz,
and has an i387 compatible floating point processor.

3.内存的信息
# prtconf |grep Memory
Memory size: 128 Megabytes

问题总结:
1. 交换分区的大小:
swap -s 命令的结果, 每次返回的swap的大小(tatol = used + available),都不
一样, 不明白 :-<


2. 硬盘的属性
我运行的结果如下, 很费解.
# iostat -E
sd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: NECVMWar Product: VMware IDE CDR10 Revision: 1.00 Serial No:
VMware IDE CDR10
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

3. 网卡的信息 ,
netstat -np 只能看到可用的网卡信息 包括, 名称, MAC, IP 信息, 没有配置IP
的网卡,看不到, 还有别的方法吗?
# kstat -c net|grep name
name: lo0 class: net
name: pcn0 class: net
name: pcn1 class: net
name: zero_copy class: net

2 条评论:

匿名 说...

Wow, amazing blog layout! How long have you been blogging for?
you made blogging look easy. The overall look of your website is excellent,
as well as the content!

Stop by my page: chestfatburner.com

匿名 说...

I really like looking through an article that can make people think.

Also, thanks for allowing for me to comment!

Here is my site - Everything you should find out about man boobs remedy