Three commands are used to display system and device configuration information.
Command |
Description |
Man Page |
---|---|---|
prtconf |
Displays system configuration information, including the total amount of memory and the device configuration as described by the system's device hierarchy. The output displayed by this command depends upon the type of system. | |
sysdef |
Displays device configuration information, including system hardware, pseudo devices, loadable modules, and selected kernel parameters. | |
dmesg |
Displays system diagnostic messages as well as a list of devices attached to the system since the last reboot. |
For information on the device names that are used to identify devices on the system, see Device Naming Conventions.
The following driver-related message might be displayed by the prtconf and sysdef commands:
device, instance #number (driver not attached) |
This message does not always mean that a driver is unavailable for this device. This message means that no driver is currently attached to the device instance because no device exists at this node or the device is not in use. Drivers are loaded automatically when the device is accessed. They are unloaded when the device is not in use.
Use the output of the prtconf and sysdef commands to identify which disk, tape, and DVD devices are connected to the system. The output of these commands displays the driver not attached messages next to the device instances. Because these devices are always being monitored by some system process, the driver not attached message is usually a good indication that no device exists at that device instance.
Use the sysdef command to display system configuration information that include pseudo devices, loadable modules, and selected kernel parameters.
Display system and device configuration information.
Display all the devices connected to a system.
For example, the following prtconf -v output on a SunBlade 1000 identifies the disk devices connected to the system. The detailed disk information is described in the Device Minor Nodes section within the ssd/fp driver section.
$ /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 . . . |
Display information about one specific device connected to the system.
For example, the following prtconf output on a SunBlade 1000 displays the ssd instance number for /dev/dsk/c0t1d0s0.
# prtconf -v /dev/dsk/c0t1d0s0 ssd, instance #1 |
Display only the devices that are attached to the system.
# prtconf | grep -v not |
Display device usage information.
For example, the following fuser command displays which processes are accessing the /dev/console device.
# fuser -d /dev/console /dev/console: 346o 323o |
The following prtconf output is displayed on a SPARC based system.
# 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 |
The following sysdef output is displayed from an x86 based system.
# 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) . . . |