1putdgrp(1M)             System Administration Commands             putdgrp(1M)
2
3
4

NAME

6       putdgrp - edits device group table
7

SYNOPSIS

9       putdgrp [-d] dgroup [device]...
10
11

DESCRIPTION

13       putdgrp modifies the device group table. It performs two kinds of modi‐
14       fication. It can modify the table  by creating a new  device  group  or
15       removing  a  device  group.  It  can  also  change group definitions by
16       adding or removing a device from the group definition.
17
18
19       When the command is invoked with only a dgroup specification, the  com‐
20       mand adds the specified group name to the device group table if it does
21       not already exist. If the -d option is also used with only  the  dgroup
22       specification, the command deletes the group from the table.
23
24
25       When  the command is invoked with both a dgroup and a device specifica‐
26       tion, it adds the given device name(s) to the  group  definition.  When
27       invoked  with both arguments and the -d option, the command deletes the
28       device name(s) from the group definition.
29
30
31       When the command is invoked with both a dgroup and a device  specifica‐
32       tion and the device group does not exist, it creates the group and adds
33       the specified devices to that new group.
34

OPTIONS

36       The following options are supported:
37
38       -d    Delete the group or, if used with device, delete the device  from
39             a group definition.
40
41

OPERANDS

43       The following operands are supported:
44
45       dgroup    Specify a device group name.
46
47
48       device    Specify  the  pathname  or  alias of the device that is to be
49                 added to, or deleted from, the device group.
50
51

EXIT STATUS

53       The following exit values are returned:
54
55       0    Successful completion.
56
57
58       1    Command syntax was incorrect, an invalid option was used,   or  an
59            internal error occurred.
60
61
62       2    Device group table could not be opened for reading or a new device
63            group table could not be created.
64
65
66       3    If executed with the  -d option, indicates that an  entry  in  the
67            device group table for the device group  dgroup does not exist and
68            so cannot be deleted. Otherwise, indicates that the  device  group
69            dgroup already exists and cannot be added.
70
71
72       4    If  executed  with the  -d option, indicates that the device group
73            dgroup does not have as members  one  or  more  of  the  specified
74            devices.  Otherwise,  indicates  that  the  device  group   dgroup
75            already has one or more of the specified devices as members.
76
77

EXAMPLES

79       Example 1 Adding a new device group.
80
81
82       The following example adds a new device group:
83
84
85         example#  putdgrp floppies
86
87
88
89       Example 2 Adding a device to a device group.
90
91
92       The following example adds a device to a device group:
93
94
95         example#  putdgrp floppies diskette2
96
97
98
99       Example 3 Deleting a device group.
100
101
102       The following example deletes a device group:
103
104
105         example#  putdgrp -d floppies
106
107
108
109       Example 4 Deleting a device from a device group.
110
111
112       The following example deletes a device from a device group:
113
114
115         example#  putdgrp -d floppies diskette2
116
117
118

FILES

120       /etc/dgroup.tab
121
122

ATTRIBUTES

124       See attributes(5) for descriptions of the following attributes:
125
126
127
128
129       ┌─────────────────────────────┬─────────────────────────────┐
130       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
131       ├─────────────────────────────┼─────────────────────────────┤
132       │Availability                 │SUNWcsu                      │
133       └─────────────────────────────┴─────────────────────────────┘
134

SEE ALSO

136       listdgrp(1M), putdev(1M), attributes(5)
137
138
139
140SunOS 5.11                        5 Jul 1990                       putdgrp(1M)
Impressum