DeviceTool Project Page

DeviceTool is a program for the Solaris operating system which helps administrators in gathering information about disks, tape drives and network cards. It is capable of mapping Solaris names to OpenBoot names and vice versa and can traverse the hardware tree. Furthermore, walking the device tree for diagnostic purposes is possible.



The main project page is located at SourceForge.


Mapping of OBP aliases to Solaris devices

> devtree -a
beep        -> /pci@8,700000/ebus@5/beep@1,32
cdrom       -> /pci@8,700000/scsi@6/disk@6,0:f
disk        -> /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@0,0
disk0       -> /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@0,0
disk1       -> /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@1,0
floppy      -> /pci@8,700000/ebus@5/floppy
lom         -> /pci@8,700000/ebus@5/lombus@1,3062f8/SUNW,lomv
lom-console -> /pci@8,700000/ebus@5/lom-console@1,3083f8
net         -> /pci@8,700000/network@5,1:
rsc-console -> /pci@8,700000/ebus@5/rsc-console@1,3083f8
rsc-control -> /pci@8,700000/ebus@5/rsc-control@1,3062f8
scsi        -> /pci@8,600000/SUNW,qlc@4
tape        -> /pci@8,700000/scsi@6,1/tape@4,0
tape0       -> /pci@8,700000/scsi@6,1/tape@4,0
tape1       -> /pci@8,700000/scsi@6,1/tape@5,0
ttya        -> /pci@8,700000/ebus@5/serial@1,400000:a
ttyb        -> /pci@8,700000/ebus@5/serial@1,400000:b

Listing of all devices

In this view every device node is listed among its sources. The data is collected from the following sources:

If a device node is available from all three source it is actually usable. Nodes only available through /etc/path_to_inst are historical. Chances are good the hardware is no longer connected to the machine or powered off on boot. Not all nodes must have a representation in the file system. Network interfaces for example are accessed via the clone driver and not via an individual file and therefore do not have one.
> devtree -p
/ (filesystem,libdevinfo,path_to_inst)
/SUNW,UltraSPARC-III+ (libdevinfo)
/aliases (libdevinfo)
/chosen (libdevinfo)
/memory (libdevinfo)
/memory-controller@0,400000 (filesystem,libdevinfo,path_to_inst)
/memory-controller@1,400000 (libdevinfo,path_to_inst)
/openprom (libdevinfo)
/openprom/client-services (libdevinfo)
/options (libdevinfo,path_to_inst)
/packages (libdevinfo)
/packages/SUNW,builtin-drivers (libdevinfo)
/packages/SUNW,debug (libdevinfo)
/packages/deblocker (libdevinfo)
/packages/disk-label (libdevinfo)
/packages/dropins (libdevinfo)
/packages/kbd-translator (libdevinfo)
/packages/obp-tftp (libdevinfo)
/packages/terminal-emulator (libdevinfo)
/packages/ufs-file-system (libdevinfo)
/pci@8,600000 (filesystem,libdevinfo,path_to_inst)
/pci@8,600000/SUNW,qlc@4 (filesystem,libdevinfo,path_to_inst)
/pci@8,600000/SUNW,qlc@4/fp (libdevinfo)
/pci@8,600000/SUNW,qlc@4/fp/disk (libdevinfo)
/pci@8,600000/SUNW,qlc@4/fp@0,0 (filesystem,libdevinfo,path_to_inst) [c1]
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfa19414,0 (filesystem,libdevinfo,path_to_inst) [t1d0]
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfa19bfe,0 (filesystem,libdevinfo,path_to_inst) [t0d0]
/pci@8,600000/pci@1 (filesystem,libdevinfo,path_to_inst)
/pci@8,600000/pci@1/SUNW,qfe@0,1 (libdevinfo,path_to_inst)
/pci@8,600000/pci@1/SUNW,qfe@1,1 (libdevinfo,path_to_inst)
/pci@8,600000/pci@1/SUNW,qfe@2,1 (libdevinfo,path_to_inst)
/pci@8,600000/pci@1/SUNW,qfe@3,1 (libdevinfo,path_to_inst)

Boot devices

> devtree -b
Bootpath information

Last boot device:
   Boot device:  /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@w21000004cfa19bfe,0:b
   OBP path:     /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@w21000004cfa19bfe,0:b

Diag-Switch: false -> Booting from boot-device
Boot-devices in normal mode:
   Boot device:  disk0:b
   OBP path:     /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@0,0:b
   Boot device:  disk1:b
   OBP path:     /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@1,0:b

Boot-devices in diagnostic mode:
   Diag device:  net
   OBP path:     /pci@8,700000/network@5,1:

Documents at Sun

The following documents are links to the specific files on Please note that for some documents a sunsolve login is necessary, which can be gained by buying a service contract from $un.


Dagobert Michelsen, $Id: index.php,v 1.2 2004/03/12 15:59:25 honkbude Exp $ Logo VI Powered!