逆引きUNIXコマンド/ハードウェア情報を取得する・lshwコマンド
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* ハードウェア情報を取得する・lshwコマンド [#cb306a0d]
lshwコマンドでハードウェアの情報を取得することができます。~
以下、Ubuntu10.04を利用して動作確認をしました。~
CentOSで実行する場合ですが、デフォルトではlshwコマンドが...
(Ubuntuではデフォルトでインストールされていました。)~
CentOSではrpmforgeなどからダウンロードしてインストールし...
rpmforge : http://pkgs.repoforge.org/lshw/
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* lshwコマンドを実行してみる [#s4e2a627]
以下、lshwコマンドを実行した時に出力されてた結果です。~
たくさん表示されるので、省略しています。
sakura@ubuntu-ppc:~$ sudo lshw
[sudo] password for sakura:
ubuntu-ppc
description: Computer
product: iBook G4
vendor: Copyright 1983-2004 Apple Computer, Inc. All ...
serial: RCQ4H5064Q3RCQ
width: 32 bits
*-core
description: Motherboard
physical id: 0
clock: 133MHz
capabilities: powerbook6_5 macrisc3 power_macintosh
*-firmware
product: OpenFirmware 3
physical id: 0
logical name: /proc/device-tree
capabilities: bootinfo
*-memory
description: System memory
physical id: 1
size: 768MiB
*-bank:0
description: Memory bank
physical id: 0
version: 0000,00 00,00
slot: DIMM0/BUILT-IN
size: 256MiB
*-bank:1
description: Memory bank
physical id: 1
version: 0000,00 00,01
slot: DIMM1/J7
size: 512MiB
*-cpu
description: CPU
product: 7447A, altivec supported
physical id: 2
bus info: cpu@0
version: 1.1 (pvr 8003 0101)
size: 1199MHz
capacity: 1199MHz
clock: 133MHz
capabilities: altivec performance-monitor cpufreq
*-cache:0
description: L1 Cache
physical id: 0
size: 32KiB
*-cache:1
description: L2 Cache (unified)
physical id: 1
size: 512KiB
clock: 1199MHz (0.8ns)
*-pci:0
description: Host bridge
product: UniNorth 2 AGP
vendor: Apple Computer Inc.
physical id: 100
bus info: pci@0000:00:0b.0
version: 00
width: 32 bits
clock: 66MHz
configuration: driver=agpgart-uninorth latency=16
resources: irq:0
*-display
description: VGA compatible controller
product: M9+ 5C63 [Radeon Mobility 9200 (AGP)]
vendor: ATI Technologies Inc
physical id: 10
bus info: pci@0000:00:10.0
version: 01
width: 32 bits
<以下省略>
* lshwのオプション [#m9df635b]
主なlshwオプションを下記に記します。
** GUIで確認 (lshw -X) [#o4111246]
可能であればGUIで表示されます。~
尚、Ubuntuではこのオプションを有効にさせるため、lshw-gtk...
sudo apt-get install lshw-gtk
#ref(lshw-01.gif)
#br
* htmlによる出力(lshw -html) [#j73930cc]
htmlとして出力することもできます。
+ rootユーザになり-htmlオプションを指定して出力を/tmpにし...
sakura@ubuntu-ppc:~$ sudo -i
root@ubuntu-ppc:~# lshw -html > /tmp/lshw.html
+ firefoxを起動して以下のように入力し出力したhtmlファイル...
file:///tmp/lshw.html
#ref(lshw-02.gif)
#br
他にもオプションがあるのでmanコマンドで確認してみてくださ...
終了行:
#navi(../)
* ハードウェア情報を取得する・lshwコマンド [#cb306a0d]
lshwコマンドでハードウェアの情報を取得することができます。~
以下、Ubuntu10.04を利用して動作確認をしました。~
CentOSで実行する場合ですが、デフォルトではlshwコマンドが...
(Ubuntuではデフォルトでインストールされていました。)~
CentOSではrpmforgeなどからダウンロードしてインストールし...
rpmforge : http://pkgs.repoforge.org/lshw/
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* lshwコマンドを実行してみる [#s4e2a627]
以下、lshwコマンドを実行した時に出力されてた結果です。~
たくさん表示されるので、省略しています。
sakura@ubuntu-ppc:~$ sudo lshw
[sudo] password for sakura:
ubuntu-ppc
description: Computer
product: iBook G4
vendor: Copyright 1983-2004 Apple Computer, Inc. All ...
serial: RCQ4H5064Q3RCQ
width: 32 bits
*-core
description: Motherboard
physical id: 0
clock: 133MHz
capabilities: powerbook6_5 macrisc3 power_macintosh
*-firmware
product: OpenFirmware 3
physical id: 0
logical name: /proc/device-tree
capabilities: bootinfo
*-memory
description: System memory
physical id: 1
size: 768MiB
*-bank:0
description: Memory bank
physical id: 0
version: 0000,00 00,00
slot: DIMM0/BUILT-IN
size: 256MiB
*-bank:1
description: Memory bank
physical id: 1
version: 0000,00 00,01
slot: DIMM1/J7
size: 512MiB
*-cpu
description: CPU
product: 7447A, altivec supported
physical id: 2
bus info: cpu@0
version: 1.1 (pvr 8003 0101)
size: 1199MHz
capacity: 1199MHz
clock: 133MHz
capabilities: altivec performance-monitor cpufreq
*-cache:0
description: L1 Cache
physical id: 0
size: 32KiB
*-cache:1
description: L2 Cache (unified)
physical id: 1
size: 512KiB
clock: 1199MHz (0.8ns)
*-pci:0
description: Host bridge
product: UniNorth 2 AGP
vendor: Apple Computer Inc.
physical id: 100
bus info: pci@0000:00:0b.0
version: 00
width: 32 bits
clock: 66MHz
configuration: driver=agpgart-uninorth latency=16
resources: irq:0
*-display
description: VGA compatible controller
product: M9+ 5C63 [Radeon Mobility 9200 (AGP)]
vendor: ATI Technologies Inc
physical id: 10
bus info: pci@0000:00:10.0
version: 01
width: 32 bits
<以下省略>
* lshwのオプション [#m9df635b]
主なlshwオプションを下記に記します。
** GUIで確認 (lshw -X) [#o4111246]
可能であればGUIで表示されます。~
尚、Ubuntuではこのオプションを有効にさせるため、lshw-gtk...
sudo apt-get install lshw-gtk
#ref(lshw-01.gif)
#br
* htmlによる出力(lshw -html) [#j73930cc]
htmlとして出力することもできます。
+ rootユーザになり-htmlオプションを指定して出力を/tmpにし...
sakura@ubuntu-ppc:~$ sudo -i
root@ubuntu-ppc:~# lshw -html > /tmp/lshw.html
+ firefoxを起動して以下のように入力し出力したhtmlファイル...
file:///tmp/lshw.html
#ref(lshw-02.gif)
#br
他にもオプションがあるのでmanコマンドで確認してみてくださ...
ページ名: