Thursday, January 12, 2012

The prtconf Command


Use the prtconf command to display the system's configuration information, including the total amount of memory installed and the configuration of system peripherals, which is formatted as a device tree.

The prtconf command lists all possible instances of devices, whether the device is attached or not attached to the system. To view a list of only attached devices on the system, perform the command:

# prtconf | grep -v not
System Configuration:  <SYSTEM OUTPUT>
Memory size: <MEMORY OUTPUT>
System Peripherals (Software Nodes):

SUNW,Ultra-5_10
    scsi_vhci, instance #0
    options, instance #0
    pci, instance #0
        pci, instance #0
            ebus, instance #0
                power, instance #0
                su, instance #0
                su, instance #1
                fdthree, instance #0
            network, instance #0
            SUNW,m64B, instance #0
            ide, instance #0
                sd, instance #3
                dad, instance #1
        pci, instance #1
            scsi, instance #0
    pseudo, instance #0

Note: The grep -v not command is used to omit all lines containing the word "not" from the output (such as driver not attached).

No comments:

Post a Comment