6324 Add an `ndp' tool for manipulating the neighbors table
[illumos-gate.git] / usr / src / man / man1m / devattr.1m
blob7719564399ec8f3cc7c7a35c1a841318911352f2
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1997 Sun Microsystems, Inc.  All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH DEVATTR 1M "Jul 5, 1990"
7 .SH NAME
8 devattr \- display device attributes
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBdevattr\fR [\fB-v\fR] \fIdevice\fR [\fIattribute\fR]...
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 \fBdevattr\fR displays the values for a device's attributes. The display can be
19 presented in two formats. Used without the  \fB-v\fR option, only the attribute
20 values are shown. Used with the  \fB-v\fR option, the attributes are shown in
21 an  \fIattribute\fR\fB=\fR\fIvalue\fR format. When no attributes are given on
22 the command line, all attributes for the  specified device are displayed in
23 alphabetical order by attribute name. If attributes are given on the command
24 line, only those attributes  are shown, displayed in command line order.
25 .SH OPTIONS
26 .sp
27 .LP
28 The following options are supported:
29 .sp
30 .ne 2
31 .na
32 \fB\fB-v\fR\fR
33 .ad
34 .RS 6n
35 Specifies verbose format. Attribute values are displayed in an
36 \fIattribute\fR\fB=\fR\fIvalue\fR format.
37 .RE
39 .SH OPERANDS
40 .sp
41 .LP
42 The following operands are supported:
43 .sp
44 .ne 2
45 .na
46 \fB\fIattribute\fR\fR
47 .ad
48 .RS 13n
49 Defines which attribute, or attributes, should be shown. Default is to show all
50 attributes for a device. See the \fBputdev\fR(1M) manual page for a complete
51 listing and description of available attributes.
52 .RE
54 .sp
55 .ne 2
56 .na
57 \fB\fIdevice\fR\fR
58 .ad
59 .RS 13n
60 Defines the device whose attributes should be displayed. Can be the pathname of
61 the device or the device alias.
62 .RE
64 .SH EXIT STATUS
65 .sp
66 .LP
67 The following exit values are returned:
68 .sp
69 .ne 2
70 .na
71 \fB\fB0\fR\fR
72 .ad
73 .RS 5n
74 successful completion.
75 .RE
77 .sp
78 .ne 2
79 .na
80 \fB\fB1\fR\fR
81 .ad
82 .RS 5n
83 Command syntax was incorrect, invalid option was used, or an internal error
84 occurred.
85 .RE
87 .sp
88 .ne 2
89 .na
90 \fB\fB2\fR\fR
91 .ad
92 .RS 5n
93 Device table could not be opened for reading.
94 .RE
96 .sp
97 .ne 2
98 .na
99 \fB\fB3\fR\fR
101 .RS 5n
102 Requested device could not be found in the device table.
106 .ne 2
108 \fB\fB4\fR\fR
110 .RS 5n
111 Requested attribute was not defined for the specified device.
114 .SH FILES
117 \fB/etc/device.tab\fR
118 .SH SEE ALSO
121 \fBgetdev\fR(1M), \fBputdev\fR(1M), \fBattributes\fR(5)