システムとデバイスの構成情報を表示するには、次の 3 つのコマンドを使用します。
|
prtconf(1M) |
メモリーの総量、システムのデバイス階層によって記述されたデバイス構成を含む、システム構成情報を表示します。このコマンドによる出力は、システムのタイプによって異なります。 |
|
sysdef(1M) |
システムハードウェア、疑似デバイス、ロード可能なモジュール、および指定のカーネルパラメータを含む、デバイス構成情報を表示します。 |
|
dmesg(1M) |
最後のリブート以降にシステムに接続されたデバイスのリストと、システム診断情報を表示します。 |
システム上のデバイスを識別するために使用されるデバイス名については、「デバイス名の命名規則」を参照してください。
次のドライバ関連メッセージが、prtconf コマンドと sysdef コマンドによって表示されることがあります。
device, instance #number (driver not attached)
このメッセージは、ノードにデバイスがないか、あるいはデバイスが使用中ではないために、デバイスインスタンスに「現在」接続されているドライバがないことを示します。ドライバは、デバイスがアクセスされると自動的にロードされ、デバイスが使用されなくなると自動的にアンロードされます。
prtconf コマンドと sysdef コマンドを使用すると、デバイスインスタンスの次に示される「driver not attached」メッセージを確認することによって、システムに接続されたディスク、テープ、CD-ROM デバイスを識別できます。これらのデバイスは、何らかのシステムプロセスによって常に監視されているため、「driver not attached」メッセージは通常、そのデバイスインスタンスにデバイスがないことを示す良い標識になります。
たとえば、次の prtconf 出力は、instance #3 と instance #6 のデバイスを識別しています。これは、最初の SCSI ホストアダプタ (esp、instance #0) のターゲット 3 のディスクデバイスと、ターゲット 6 の CD-ROM デバイスを示しています。
$ /usr/sbin/prtconf
.
.
.
esp, instance #0
sd (driver not attached)
st (driver not attached)
sd, instance #0 (driver not attached)
sd, instance #1 (driver not attached)
sd, instance #2 (driver not attached)
sd, instance #3
sd, instance #4 (driver not attached)
sd, instance #5 (driver not attached)
sd, instance #6
.
.
.
|
同じデバイス情報は、sysdef 出力からも得られます。
システム構成情報を表示するには、prtconf コマンドを使用してください。
# /usr/sbin/prtconf |
疑似デバイス、ロード可能なモジュール、および指定のカーネルパラメータを含むシステム構成情報を表示するには、sysdef コマンドを使用してください。
# /usr/sbin/sysdef |
SPARC システムでは、次の prtconf 出力が表示されます。
# prtconf
System Configuration: Sun Microsystems sun4u
Memory size: 128 Megabytes
System Peripherals (Software Nodes):
SUNW,Ultra-5_10
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 #0
aliases (driver not attached)
memory (driver not attached)
virtual-memory (driver not attached)
pci, instance #0
pci, instance #0
ebus, instance #0
auxio (driver not attached)
power, instance #0
SUNW,pll (driver not attached)
se, instance #0
su, instance #0
su, instance #1
ecpp (driver not attached)
fdthree, instance #0
.
.
.
|
IA システムからは、次の sysdef 出力が表示されます。
# sysdef * Hostid * 29f10b4d * * i86pc Configuration * * * Devices * +boot (driver not attached) memory (driver not attached) aliases (driver not attached) chosen (driver not attached) i86pc-memory (driver not attached) i86pc-mmu (driver not attached) openprom (driver not attached) options, instance #0 packages (driver not attached) delayed-writes (driver not attached) itu-props (driver not attached) isa, instance #0 motherboard (driver not attached) pnpADP,1542, instance #0 asy, instance #0 asy, instance #1 lp, instance #0 (driver not attached) fdc, instance #0 fd, instance #0 fd, instance #1 (driver not attached) kd (driver not attached) kdmouse (driver not attached) . . . |
デバイス情報は、dmesg コマンドを使用して表示してください。
# /usr/sbin/dmesg |
この dmesg 出力は、システムコンソール上のメッセージとして表示され、最後のリブート以降に接続されたデバイスを表示します。
SPARC システムからは、次の dmesg 出力が表示されます。
# dmesg date starbug genunix: [ID 540533 kern.notice] SunOS Release 5.8 Generic 64-bit date starbug genunix: [ID 223299 kern.notice] Copyright (c) 1983-2000 by S un Microsystems, Inc. date starbug genunix: [ID 678236 kern.info] Ethernet address = 8:0:20:a6:d 4:5b date starbug genunix: [ID 897550 kern.info] Using default device instance data date starbug unix: [ID 389951 kern.info] mem = 131072K (0x8000000) date starbug unix: [ID 930857 kern.info] avail mem = 121724928 date starbug rootnex: [ID 466748 kern.info] root nexus = Sun Ultra 5/10 UP A/PCI (UltraSPARC-IIi 333MHz) . . . # |
IA システムからは、次の dmesg 出力が表示されます。
# dmesg date naboo genunix: [ID 540533 kern.notice] SunOS Release 5.8 Version Generic 32-bit date naboo genunix: [ID 223299 kern.notice] Copyright (c) 1983-2000 by Sun Microsystems, Inc. date naboo genunix: [ID 897550 kern.info] Using default device instance data date naboo unix: [ID 168242 kern.info] mem = 32380K (0x1f9f000) date naboo unix: [ID 930857 kern.info] avail mem = 19390464 date naboo rootnex: [ID 466748 kern.info] root nexus = i86pc date naboo rootnex: [ID 349649 kern.info] pci0 at root: space 0 offset 0 date naboo genunix: [ID 936769 kern.info] pci0 is /pci@0,0 date naboo genunix: [ID 678236 kern.info] Ethernet address = 00:a0:24:89:b0:72 date naboo gld: [ID 944156 kern.info] elx0: 3COM EtherLink III: type "ether" mac address 00:a0:24:89:b0:72 date naboo pci: [ID 370704 kern.info] PCI-device: pci10b7,5950@c, elx0 date naboo genunix: [ID 936769 kern.info] elx0 is /pci@0,0/pci10b7,5950@c . . . |