Display Solaris system configuration with prtconf
The prtconf command is a valuable tool for determining the devices attached to a Solaris system. The total system memory is prominently displayed and the devices and peripherals attached to the system are displayed in a tree format.
Any user can run /usr/sbin/prtconf and without any options, it displays useful information about the system. At the top of the output are lines like these:
System Configuration: Sun Microsystems sun4u
Memory size: 2048 Megabytes
The first line shows the system architecture, sun4u, and the next line shows the total memory in the system. Piping this command through grep like
/usr/sbin/prtconf | grep Memory
is a quick way to find this value without wading through the device tree that follows.
Devices attached to the system are displayed in a hierarchial tree. The list is comprehensive, including potential devices that are not currently attached. Seeing a line ending in “(driver not attached)” indicates that there is not a corresponding device. For example,
pci, instance #2
scsi, instance #0
disk (driver not attached)
tape (driver not attached)
sd, instance #0
sd, instance #1
sd, instance #2 (driver not attached)
sd, instance #4 (driver not attached)
This output snippet shows two PCI-attached hard drives (sd, instance #0 and #1), but no disk, tape, or additional hard drives. To simplify the output, it may be helpful to filter out what isn’t present with
prtconf | grep -v "not attached"






Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment