Go to main content

Managing Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

Displaying Device Configuration Information

The following table describes the three commands that 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 that is 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 that are attached to the system since the last reboot.

For information about the device names that are used to identify devices on the system, see Device Naming Conventions.

When you run the prtconf and sysdef commands, the output might include the following driver-related message line next to specific device instances:

device, instance #number (driver not attached)

The absence of a driver can mean one of the following:

  • A driver is unavailable for the device.

  • No driver is currently attached because the device is not in use. When a device is unused, its driver is automatically unloaded.

  • No driver is currently attached because the device itself does not exist at that device instance.

    Because system processes always monitor system devices, the message usually indicates the absence of the device.

    The following utilities detect when a specified device is in use:

  • dumpadm

  • format

  • mkfs and newfs

  • swap

    The utilities might detect some of the following usage scenarios:

  • Device is part of a ZFS storage pool

  • Device is a dump or swap device

  • Mounted file system or an entry for the device exists in the /etc/vfstab file

For example, using the format utility to access an active device might generate a message similar to the following:

# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <FUJITSU-MAY2073RCSUN72G-0401 cyl 8921 alt 2 hd 255 sec 63>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@0,0
/dev/chassis/SYS/HD0/disk
1. c1t1d0 <FUJITSU-MAY2073RCSUN72G-0401-68.37GB>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@1,0
/dev/chassis/SYS/HD1/disk
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
/dev/dsk/c1t0d0s0 is part of active ZFS pool rpool. Please see zpool(1M).


FORMAT MENU:
.
.
.

The following examples show different uses of the prtconf, sysdef, and other commands to display system configuration information.

Example 1  Displaying All the Devices of a SPARC Based System
$ /usr/sbin/prtconf -v | more
Memory size: 32640 Megabytes
System Peripherals (Software Nodes):

SUNW,SPARC-Enterprise-T5220
.
.
.
location: /dev/chassis/SUN-Storage-J4400.0918QAKA24/SCSI_Device__2/disk
Device Minor Nodes:                    The detailed disk information is described in this section.
dev=(27,40)
dev_path=/pci@0/pci@0/pci@8/pci@0/pci@a/LSILogic,sas@0/sd@2,0:a
spectype=blk type=minor
dev_link=/dev/dsk/c4t2d0s0
dev_path=/pci@0/pci@0/pci@8/pci@0/pci@a/LSILogic,sas@0/sd@2,0:a,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4t2d0s0
Device Minor Layered Under:
mod=zfs accesstype=blk
dev_path=/pseudo/zfs@0
Minor properties:
name='Nblocks' type=int64 items=1 dev=(27,40)
value=0000000074702c8f
name='Size' type=int64 items=1 dev=(27,40)
value=000000e8e0591e00
.
.
.
Example 2  Displaying Information About a Specific Device of a SPARC Based System

In this example, the sd instance number for /dev/dsk/c4t2d0s0 is displayed.

# prtconf -v /dev/dsk/c4t2d0s0 | grep instance
sd, instance #5
Example 3  Displaying Only the Devices That Are Attached to the System
# prtconf | grep -v not
Example 4  Displaying Device Usage Information

In this example, the fuser command is used to display which processes are accessing the /dev/console device.

# fuser -d /dev/console
/dev/console:     5742o    2269o   20322o     858o
Example 5  Displaying System Configuration Information of an x86 Based System
# prtconf
System Configuration:  Oracle Corporation  i86pc
Memory size: 8192 Megabytes
System Peripherals (Software Nodes):

i86pc
scsi_vhci, instance #0
pci, instance #0
pci108e,4843, instance #0
pci8086,25e2, instance #0
pci8086,3500, instance #7
pci8086,3510, instance #9
pci8086,3518, instance #10
pci108e,4843, instance #0
pci108e,4843, instance #1
pci8086,350c, instance #8
pci8086,25e3 (driver not attached)
pci8086,25f8, instance #2
pci108e,286, instance #0
disk, instance #0
disk, instance #2
disk, instance #3
disk, instance #1
pci8086,25e5 (driver not attached)
pci8086,25f9 (driver not attached)
pci8086,25e7 (driver not attached)
pci108e,4843, instance #0 (driver not attached)
pci108e,4843, instance #1
pci108e,4843, instance #2 (driver not attached)
pci108e,4843 (driver not attached)
pci108e,4843 (driver not attached)
pci108e,4843 (driver not attached)
pci108e,4843 (driver not attached)
pci8086,2690, instance #6
pci108e,125e, instance #2
pci108e,125e, instance #3
pci108e,4843, instance #0
pci108e,4843, instance #1
device, instance #0
keyboard, instance #0
mouse, instance #1
pci108e,4843, instance #2
pci108e,4843, instance #3
pci108e,4843, instance #0
storage, instance #0
disk, instance #4
.
.
.
Example 6  Displaying Device Configuration Information of 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)
.
.
.