Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putdgrp(1M) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

listdgrp(1M)

putdev(1M)

putdgrp(1M)                                                     putdgrp(1M)

NAME
     putdgrp - edits device group table

SYNOPSIS
     putdgrp [-d] dgroup [device [. . .]]

DESCRIPTION
     putdgrp modifies the device group table. It performs two kinds of
     modification. It can modify the table by creating a new device group
     or removing a device group. It can also change group definitions by
     adding or removing a device from the group definition.

     When the command is invoked with only a dgroup specification, the com-
     mand adds the specified group name to the device group table if it
     does not already exist. If the -d option is also used with only the
     dgroup specification, the command deletes the group from the table.

     When the command is invoked with both a dgroup and a device specifica-
     tion, it adds the given device name (or names) to the group defini-
     tion. When invoked with both arguments and the -d option, the command
     deletes the device name (or names) from the group definition.

     When the command is invoked with both a dgroup and a device specifica-
     tion and the device group does not exist, it creates the group and
     adds the specified devices to that new group.

OPTIONS
     -d        Deletes the group or, if used with device, the device from a
               group definition.

     dgroup    Specifies a device group name.

     device    Specifies the pathname or alias of the device that is to
               added to or deleted from the device group.

DIAGNOSTICS
     The command will exit with one of the following values:

     0 =  Successful completion of the task.

     1 =  Command syntax incorrect, invalid option used, or internal error
          occurred.

     2 =  Device group table could not be opened for reading or a new
          device group table could not be created.

     3 =  If executed with the -d option, indicates that an entry in the
          device group table for the device group dgroup does not exist and
          so cannot be deleted. Otherwise, indicates that the device group
          dgroup already exists and cannot be added.

     4 =  If executed with the -d option, indicates that the device group



Page 1                       Reliant UNIX 5.44                Printed 11/98

putdgrp(1M)                                                     putdgrp(1M)

          dgroup does not have as members one or more of the specified
          devices. Otherwise, indicates that the device group dgroup
          already has one or more of the specified devices as members.

EXAMPLE
     To add a new device group:

          putdgrp sdisk

     To add a device to a device group:

          putdgrp sdisk /dev/ios0/sdisk003s0

     To delete a device group:

          putdgrp -d sdisk

     To delete a device from a device group:

          putdgrp -d sdisk /dev/ios0/sdisk003s0

FILES
     /etc/dgroup.tab

SEE ALSO
     listdgrp(1M), putdev(1M).




























Page 2                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026