System Administration Guide: Devices and File Systems

How to Display Device Information

Display device information with the dmesg command.


# /usr/sbin/dmesg

The dmesg output is displayed as messages on the system console and identifies which devices are connected to the system since the last reboot.

Examples—Displaying Device Information

The following dmesg output is displayed from a SPARC based system.


Apr  2 13:26:19 venus genunix: [ID 540533 kern.notice] SunOS Release 5.9 Version Generic ...
Apr  2 13:26:19 venus genunix: [ID 943905 kern.notice] Copyright 1983-2003...
Apr  2 13:26:19 venus genunix: [ID 678236 kern.info] Ethernet address ...
Apr  2 13:26:19 venus unix: [ID 389951 kern.info] mem = 65536K (0x4000000)
Apr  2 13:26:19 venus unix: [ID 930857 kern.info] avail mem = 57688064
Apr  2 13:26:19 venus rootnex: [ID 466748 kern.info] root nexus = 
Sun Ultra 1 SBus (UltraSPARC 167MHz)

The following dmesg output is displayed from an x86 based system.


# dmesg
Dec 17 16:32:10 naboo unix: [ID 930857 kern.info] avail mem = 1037565952
Dec 17 16:32:10 naboo rootnex: [ID 466748 kern.info] root nexus = i86pc
Dec 17 16:32:10 naboo unix: [ID 406534 kern.info] ACPI detected: 2 13 0 0
Dec 17 16:32:10 naboo rootnex: [ID 349649 kern.info] pci1 at root: isa 0x0
Dec 17 16:32:10 naboo genunix: [ID 936769 kern.info] pci1 is /pci@1,0
Dec 17 16:32:10 naboo pcplusmp: [ID 637496 kern.info] pcplusmp: ...
Dec 17 16:32:10 naboo pci: [ID 370704 kern.info] PCI-device: ...
Dec 17 16:32:10 naboo genunix: [ID 936769 kern.info] cadp1601 ...
Dec 17 16:32:13 naboo scsi: [ID 193665 kern.info] sd5 at cadp1601: ...
.
.
.