Go to main content

Managing Devices in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

Displaying Device Configuration Information

The following commands display system and device configuration information:

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. For more information, see the prtconf(8) man page.

sysdef

Displays device configuration information, including system hardware, pseudo devices, loadable modules, and selected kernel parameters. For more information, see the sysdef(8) man page.

dmesg

Displays system diagnostic messages as well as a list of the devices that were attached to the system since the last reboot. For more information, see the dmesg(8) man page.

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 occur due to one of the following reasons:

  • 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

    These 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 example:

# 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(8).


FORMAT MENU:
.
.
.

The following examples show how to use 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
System Configuration:  Oracle Corporation  sun4v
Memory size: 30720 Megabytes
System Peripherals (Software Nodes):

ORCL,SPARC-T4-2
    Driver properties:
        name='pm-hardware-state' type=string items=1 dev=none
            value='no-suspend-resume'
        name='fm-errcb-capable' type=boolean dev=none
        name='fm-ereport-capable' type=boolean dev=none
    System properties:
        name='root-be-uuid' type=string items=1
            value='3e8a2870-cb04-4610-821c-c2da8e0c8050'
        name='root-uuid-chk' type=string items=1
            value='1'
        name='stdout-#lines' type=int items=1
            value=ffffffff
        name='stdin' type=int items=1
            value=fecbfe48
        name='stdout' type=int items=1
            value=fecbf6e0
        name='memory' type=int items=1
            value=fff04290
        name='mmu' type=int items=1
            value=fff04080
        name='bootpath' type=string items=1
            value='/virtual-devices@100/channel-devices@200/disk@0:a'
        name='bootargs' type=string items=1
            value=''
        name='bootfs' type=int items=1
            value=feedbd88
        name='zfs-bootfs' type=string items=1
            value='rpool/240'
        name='bootarchive' type=string items=1
            value='/ramdisk-root
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)
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)
.
.
.