DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

devattr(1M)


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.

Command 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

/etc/security/mac/ltf.alias
an optional file, it may not exist on all systems

/usr/lib/locale/locale/LC_MESSAGES/uxcore
language-specific message file (see LANG in environ(5))

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)

Notices

There are backup copies of the Device Database files, which have the same names as the Device Database files, except they are prefixed with a ``.'' (dot). For example, the backup copy of /etc/device.tab is /etc/.device.tab. If the Device Database becomes corrupted it can be restored from the backup copies.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004