xref: /titanic_51/usr/src/man/man1m/sysdef.1m (revision 174bc6499d233e329ecd3d98a880a7b07df16bfa)
te
Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
Copyright 1989 AT&T
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
SYSDEF 1M "Feb 25, 2009"
NAME
sysdef - output system definition
SYNOPSIS

/usr/sbin/sysdef [-i] [-n namelist]

/usr/sbin/sysdef [-h] [-d] [-i] [-D]
DESCRIPTION

The sysdef utility outputs the current system definition in tabular form. It lists all hardware devices, as well as pseudo devices, system devices, loadable modules, and the values of selected kernel tunable parameters.

It generates the output by analyzing the named bootable operating system file (namelist) and extracting the configuration information from it.

The default system namelist is /dev/kmem.

OPTIONS
-i

Prints the configuration information from /dev/kmem. This is the default and only needs to be specified if the configuration information from both /dev/kmem and the system file specified with the "-n namelist" option is needed.

-n namelist

Specifies a namelist other than the default (/dev/kmem). The namelist specified must be a valid bootable operating system.

-h

Prints the identifier of the current host in hexadecimal. If sysdef -h is executed within a non-global zone and the zone emulates a host identifier, then the zone's host identifier is printed. This numeric value is not guaranteed to be unique.

-d

The output includes the configuration of system peripherals formatted as a device tree.

-D

For each system peripheral in the device tree, display the name of the device driver used to manage the peripheral.

EXAMPLES

Example 1 Sample output format

The following example displays the format of the sysdef -d output:

example% sysdef -d
Node 'SUNW,Ultra-5_10', unit #-1
 Node 'packages', unit #-1 (no driver)
 Node 'terminal-emulator', unit #-1 (no driver)
 Node 'deblocker', unit #-1 (no driver)
 Node 'obp-tftp', unit #-1 (no driver)
 Node 'disk-label', unit #-1 (no driver)
 Node 'SUNW,builtin-drivers', unit #-1 (no driver)
 Node 'sun-keyboard', unit #-1 (no driver)
 Node 'ufs-file-system', unit #-1 (no driver)
 Node 'chosen', unit #-1 (no driver)
 Node 'openprom', unit #-1 (no driver)
 Node 'client-services', unit #-1 (no driver)
 Node 'options', unit #0
 Node 'aliases', unit #-1 (no driver)
 Node 'memory', unit #-1 (no driver)
 Node 'virtual-memory', unit #-1 (no driver)
 Node 'pci', unit #0
 Node 'pci', unit #0
 Node 'ebus', unit #0
 Node 'auxio', unit #-1 (no driver)
 Node 'power', unit #0
 Node 'SUNW,pll', unit #-1 (no driver)
 Node 'se', unit #0 (no driver)
 Node 'su', unit #0
 Node 'su', unit #1
 Node 'ecpp', unit #-1 (no driver)
 Node 'fdthree', unit #0
 Node 'eeprom', unit #-1 (no driver)
 Node 'flashprom', unit #-1 (no driver)
 Node 'SUNW,CS4231', unit #0 (no driver)
 Node 'network', unit #0
 Node 'SUNW,m64B', unit #0
 Node 'ide', unit #0
 Node 'disk', unit #-1 (no driver)
 Node 'cdrom', unit #-1 (no driver)
 Node 'sd', unit #1
 Node 'dad', unit #1
 Node 'pci', unit #-1 (no driver)
 Node 'SUNW,UltraSPARC-IIi', unit #-1 (no driver)
 Node 'pseudo', unit #0

[output truncated]
FILES
/dev/kmem

default operating system image

SEE ALSO

hostid(1), prtconf(1M), nlist(3ELF), attributes(5), zones(5)