devattr(1M) devattr(1M)
NAME
devattr - lists device attributes
SYNOPSIS
devattr [-v] device [attribute [. . .]]
DESCRIPTION
devattr displays the values for a device's attributes. The
display can be presented in two formats. When run without the
-v option, devattr shows only the attribute values. When run
with -v, devattr shows the attributes in the format
attribute=value[,value . . .]. When no attributes are given
on the command line, all attributes for the specified device
are displayed in alphabetical order by attribute name. If
attributes are given on the command line, only those are shown
and they are displayed in command line order.
Options
devattr takes the following options:
-v Specifies verbose format, where attribute values are
displayed in an attribute=value format.
device
Defines the device for which attributes should be
displayed. This value can be the absolute pathname of
the device or the device alias. If the provided value
is an absolute pathname, devattr gets the device alias
name to which the pathname maps, and displays all the
attributes defined for that alias. If the alias is a
secure device alias, then security attributes are also
displayed.
attribute
Defines which attributes should be shown. The default
is to show all attributes for a device. See putdev(1M)
for a complete list of device attributes.
Files
/etc/device.tab
/etc/security/ddb/ddb_dsfmap
/usr/lib/locale/locale/LC_MESSAGES/uxcore
(Language-specific message file [see LANG in environ(5)]
Copyright 1994 Novell, Inc. Page 1
devattr(1M) devattr(1M)
Return Values
If successful, devattr exits with a value of zero (0). If
there is an error, the devattr exits with one of the following
values and prints the corresponding error message:
1 syntax incorrect, invalid options
USAGE: devattr [-v] device [attribute [. . .]]
1 Insufficient memory
2 Device Database could not be opened for reading
2 Device Database in inconsistent state - notify
administrator
3 Requested device not found in Device Database
REFERENCES
getdev(1M), putdev(1M)
Copyright 1994 Novell, Inc. Page 2