Distributed Name Service (DNS) Management Operations Manual

Options for Entering DNSCOM Commands
Using DNSCOM
31258 Tandem Computers Incorporated 6–17
If you use neither the plus sign nor the minus sign in an ADD, ALTER, or SET
command, the list-valued attribute is set to contain the elements listed. For example:
DNSCOM_SHOW MEMBERS
GROUP
MEMBERS B
D
E
F
DNSCOM_SET MEMBERS (I, J)
DNSCOM_SHOW MEMBERS
GROUP
MEMBERS I
J
Instead of keeping track of what to delete and add, you can use the RESET command
to first clear the contents of the list and then use the ADD command to create the list.
For the first example, assume you are defining the GROUPS attribute of a composite
object. You would make the list empty with the RESET command. Then you add
group names to the list using the ADD command. These steps are shown below:
DNSCOM_ASSUME COMPOSITE
==Default Name Type is COMPOSITE
DNSCOM_RESET GROUPS
DNSCOM_ADD GROUPS (A, B, C)
DNSCOM_SHOW GROUPS
COMPOSITE
GROUPS A
B
C
Combining the RESET
Command With the ALTER
or ADD Commands
You can use the RESET command in an ADD or ALTER command line to indicate that
the attribute should not have any elements in its list.
When used with the ADD command, RESET is a parameter of the ADD command. In
the following example, the ADD command would add ATM44, but would not place
the name ATM44 in any groups, regardless of the current creation value of the
COMPOSITE GROUPS attribute.
ADD ATM44, RESET GROUPS
You can use RESET in this way only for attributes that are optional or have no default
values for the type of name being added.
If you use RESET in an ALTER command, any current elements of the list are deleted.
When used with the ALTER command, RESET is a parameter of the ALTER command.
The following command deletes all current members from group G.
ALTER GROUPS G, RESET MEMBERS