ubuntuハードウェア構成を見る


いつも忘れてるよ、マークして
sudo lspci -v
lshw -C network
modprobe mac80211
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、HDD情報
--------------------------------------------------
#パーティションの表示
fdisk -l
#サイズの表示
df -h
#使用状況の表示
du -h
#
hdparm -I/dev/sda
#
dmesg | grep sda
--------------------------------------------------
4、メモリ情報
--------------------------------------------------
1) cat/proc/meminfo
2) dmesg | grep mem
3) free -m
4) vmstat
5) dmidecode | grep -i mem
--------------------------------------------------
5,NIC情報
--------------------------------------------------
1) dmesg | grep -i 'eth'
2) cat/etc/sysconfig/hwconf | grep -i eth
3) lspci | grep -i 'eth'
--------------------------------------------------
6、マウスキーボードとUSB情報
キーボードとマウスの表示:cat/proc/bus/input/devices
USBデバイスの表示:cat/proc/bus/usb/devices
各項目を表示
デバイス
の割り込み要求(IRQ):cat/proc/interrupts
7,グラフィックス情報
--------------------------------------------------
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、NICなどの周辺情報を表示)
.cat/etc/sysconfig/hwconf
.mpstat
8、手動でインストールする必要がある
ツール
lshw,hwinfo,hal-device-manager
9,Solarisがハードウェアパラメータを検出する方法
私は他の場所から面白いものを見つけました.
Solarisのハードウェア関連コマンド
発表:2004-3-8 11:20:36出典:あなたのブログサイト(yourblog.org)
--------------------------------------------------------------------------------
1.現在のプロセッサのタイプと速度(プライマリ周波数)を表示します.
# psrinfo –v
Status of processor 1 as of: 11/24/01 10:34:41
Processor 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:41
Processor 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 –V
OBP 3.20.0 2000/10/24 10:47
#/usr/platform/sun4u/sbin/prtdiag –v | grep OBP
OBP 3.20.0 2000/10/24 10:47 POST 6.1.0 2000/10/24 10:49
ok. .version
Release 3.20 Version 0 created 2000/10/24 10:47
OBP 3.20.0 2000/10/24 10:47
POST 6.1.0 2000/10/24 10:49
OBDIAG 4.5.1 2000/10/24 10:48
3).ハードディスク(vendor,RPM,Capacity)の物理情報を表示する
# iostat –E
sd0    Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE Product: ST34371W SUN4.2G Revision: 7462 Serial No:
JDX394220KW EBC
Size: 4.29GB ;
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd2    Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: FUJITSU Product: MAJ3364M SUN36G Revision: 0804 Serial No: 01M18144
Size: 36.42GB ;
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd3    Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: FUJITSU Product: MAJ3364M SUN36G Revision: 0804 Serial No: 01M16199
Size: 36.42GB ;
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd21     Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: TOSHIBA Product: DVD-ROM SD-M1401 Revision: 1007 Serial No: 06/22/00
Size: 18446744073.71GB ;
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
4).ディスクのジオメトリパラメータとパーティション情報の表示
# 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 Directory
0    2 00       0 2049840 2049839/
1    3 01 2049840 615600 2665439
2    5 00       0 8380800 8380799
5    0 00 2665440 2458080 5123519/opt
6    4 00 5123520 3073680 8197199/usr
7    8 00 8197200     79920 8277119/export/home
5).使用済みと未使用のi-node数を表示する
# df –F ufs –o i
Filesystem          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/home
6).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 –v
sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7
sparc
# isainfo –v
64-bit sparcv9 applications
32-bit sparc applications
# isainfo –b
64
64ビットカーネルモードの起動
ok. boot kernel/sparcv9/unix
32ビットモード
# isalist –v
sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc
# isainfo –v
32-bit sparc applications
# isainfo –b
32
32ビットモードの起動
ok. boot kernel/unix
9).現在のOpenWindowsバージョンの表示
# showrev –w
OpenWindows version:
X11 Version 6.4.1 5 November 2001
10).現在のCDEのバージョンを表示する
#/usr/ccs/bin/what/usr/dt/bin/dtmail
/usr/dt/bin/dtmail:
CDE Version 1.4.6_06
CDEVersion1.4.6_06