man pages section 1M: System Administration Commands

Exit Print View

Updated: July 2014
 
 

devprop(1M)

Name

devprop - display device properties

Synopsis

/usr/sbin/devprop [-n device-path] [-c separator] [-vq]
     [-{e|b|i|l|s}] [property[...]]

Description

The devprop command displays named device properties from the device tree.

If a device path is specified on the command line, devprop displays device properties for that device node.

The boolean property prints out true (with the –e option) if it exists; it is otherwise false. Byte, int, and int_64 property values display in hex format if one specifies type by means of options –b, –i, or –l; otherwise these values display in decimal format. Array property values are separated by a user-defined char.

Options

The options below are supported. Note that the –e, –b, –i, –l, and –s options are mutually exclusive.

–b

The properties to be output are sequences of bytes (DI_PROP_TYPE_BYTES).

–c separator

Specifies the separator in an array property. Use double quotation marks (" ") to specify a space. The default separator is the plus sign (+) for the string type and period (.) for others.

–e

The properties to be output are booleans (DI_PROP_TYPE_BOOLEAN).

–i

The properties to be output are integers (DI_PROP_TYPE_INT).

–l

The properties to be output are 64–bit integers (DI_PROP_TYPE_INT64).

–n device-path

The path to a target device node for which properties are displayed. The default path is that of the root node (equivalent to specifying –n /).

–q

Specifies quoted output mode, in which string properties are output surrounded by double quotation marks (").

–s

The properties to be output are strings (DI_PROP_TYPE_STRING) (the default).

–v

Specifies verbose mode, in which the name of the property is output before its value.

Operands

The following operand is supported:

property...

Name of the property to be displayed.

Exit Status

0

No error occurred.

non-zero

An error occurred.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Interface Stability
See below.

The command invocation and output are both Volatile. The location of the utility is Committed.

See also

prtconf(1M), libdevinfo(3LIB) , attributes(5)