システムとデバイスの構成情報を表示するには、次の 3 つのコマンドを使用します。
|
コマンド |
説明 |
マニュアルページ |
|---|---|---|
|
prtconf |
メモリーの総量、システムのデバイス階層によって記述されたデバイス構成を含む、システム構成情報を表示します。このコマンドによる出力は、システムのタイプによって異なります。 | |
|
sysdef |
システムハードウェア、疑似デバイス、ロード可能なモジュール、および指定のカーネルパラメータを含む、デバイス構成情報を表示します。 | |
|
dmesg |
最後のリブート以降にシステムに接続されたデバイスのリストと、システム診断情報を表示します。 |
システムのデバイスの識別に使用されるデバイス名については、「デバイス名の命名規則」を参照してください。
次のドライバ関連メッセージが、prtconf コマンドと sysdef コマンドによって表示されることがあります。
device, instance #number (driver not attached) |
このメッセージは、このデバイスのドライバが使用できないことをいつも示すわけではありません。このメッセージは、ノードにデバイスがないか、あるいはデバイスが使用中ではないために、デバイスインスタンスに「現在」接続されているドライバがないことを示します。ドライバは、デバイスがアクセスされると自動的にロードされます。それらのドライバは、デバイスが使用されなくなるとアンロードされます。
prtconf および sysdef コマンドの出力から、システムに接続されているディスク、テープ、および DVD デバイスを識別できます。デバイスインスタンスの出力の横に driver not attached メッセージが表示されます。これらのデバイスは、何らかのシステムプロセスによって常に監視されているため、「driver not attached」メッセージは通常、そのデバイスインスタンスにデバイスがないことを示す良い標識になります。
疑似デバイス、ロード可能なモジュール、および指定のカーネルパラメータを含むシステム構成情報を表示するには、sysdef コマンドを使用してください。
システムおよびデバイスの構成情報を表示します。
システムに接続されているすべてのデバイスを表示します。
たとえば、SunBlade 1000 に対する次の prtconf -v の出力は、システムに接続されているディスクデバイスを識別しています。ディスクの詳細情報は、Device Minor Nodes セクションの ssd/fp ドライバセクションに表示されます。
$ /usr/sbin/prtconf -v | more
.
.
.
Device Minor Nodes:
dev=(118,8)
dev_path=/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w210000
2037bde864,0:a
spectype=blk type=minor
dev_link=/dev/dsk/c0t1d0s0
dev_path=/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w210000
2037bde864,0:a,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c0t1d0s0
dev=(118,9)
dev_path=/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w210000
2037bde864,0:b
spectype=blk type=minor
dev_link=/dev/dsk/c0t1d0s1
dev_path=/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w210000
2037bde864,0:b,raw
.
.
.
|
システムに接続されている特定のデバイスに関する情報を表示します。
たとえば、SunBlade 1000 に対する次の prtconf の出力は、/dev/dsk/c0t1d0s0 の ssd インスタンス番号を示しています。
# prtconf -v /dev/dsk/c0t1d0s0 ssd, instance #1 |
システムに接続されているデバイスだけを表示します。
# prtconf | grep -v not |
デバイスの使用状況を表示します。
たとえば、次の fuser コマンドは、どのプロセスが /dev/console デバイスにアクセスしているかを示しています。
# fuser -d /dev/console /dev/console: 346o 323o |
SPARC システムでは、次の prtconf 出力が表示されます。
# prtconf
System Configuration: Sun Microsystems sun4u
Memory size: 512 Megabytes
System Peripherals (Software Nodes):
SUNW,Sun-Blade-1000
scsi_vhci, instance #0
packages (driver not attached)
SUNW,builtin-drivers (driver not attached)
deblocker (driver not attached)
disk-label (driver not attached)
terminal-emulator (driver not attached)
obp-tftp (driver not attached)
dropins (driver not attached)
kbd-translator (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)
SUNW,UltraSPARC-III, instance #0
memory-controller, instance #0
SUNW,UltraSPARC-III, instance #1
memory-controller, instance #1
pci, instance #0
ebus, instance #0
flashprom (driver not attached)
bbc (driver not attached)
ppm, instance #0
i2c, instance #0
dimm-fru, instance #0
dimm-fru, instance #1
dimm-fru, instance #2
dimm-fru, instance #3
nvram, instance #4
idprom (driver not attached)
i2c, instance #1
cpu-fru, instance #5
temperature, instance #0
cpu-fru, instance #6
temperature, instance #1
fan-control, instance #0
motherboard-fru, instance #7
i2c-bridge (driver not attached)
beep, instance #0
rtc, instance #0
gpio (driver not attached)
pmc (driver not attached)
floppy (driver not attached)
parallel (driver not attached)
serial, instance #0
network, instance #0
firewire, instance #0
usb, instance #0
scsi (driver not attached)
disk (driver not attached)
tape (driver not attached)
scsi (driver not attached)
disk (driver not attached)
tape (driver not attached)
pci, instance #1
SUNW,qlc, instance #0
fp (driver not attached)
disk (driver not attached)
fp, instance #1
ssd, instance #1
ssd, instance #0 (driver not attached)
ssd, instance #2 (driver not attached)
ssd, instance #3 (driver not attached)
ssd, instance #4 (driver not attached)
ssd, instance #5 (driver not attached)
ssd, instance #6 (driver not attached)
upa, instance #0
SUNW,ffb, instance #0 (driver not attached)
ppm, instance #0
pseudo, instance #0
|
x86 システムからは、次の 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) . . . |