directory modifyAdds, removes, or changes a directory's attributes and their values. The syntax is:
directory modify directory_name_list Options
-add attribute_list
-single
-remove attribute_list
-types
-change attribute_list {CDS_Convergence value} See Attributes for the format of CDS_Convergence.
-master clearinghouse_name
-readonly clearinghouse_name_list
-exclude clearinghouse_name_list
Description Usually, you use the -remove option to remove a value from an attribute. You can use the -types option along with the -remove option to remove an entire attribute or list of attributes. Some attributes in CDS are multivalued. For instance the CDS_Replicas attribute can specify the locations and names several clearinghouses that maintain copies of a directory. The -add operation needs to be instructed whether to operate on single-valued or multivalued attributes. Multivalued attributes are the default case and are indicated by using no qualifying options. However, you can indicate the use of single-valued attributes by using the -single option. To change the epoch of a directory, you must specify each clearinghouse that has a master or replica copy of the directory as either the new master (with the -master option), a read-only copy (with the -readonly option), or an excluded copy (with the -exclude option). Additional extra clearinghouses can also be specified. Most attributes are usually managed by the client application. See the OSF DCE Administration Guide - Core Components for more information about attributes. All modifications are made to each directory listed in the argument. An error in any one causes the command to immediately abort and generate an error. The operation returns an empty string on success.
Privileges Required
Examples dcecp> directory modify /.:/depts/radiology -change {CDS_Convergence low} To add the value ontario to the attribute myname of a directory named /.:/sales, read the cds_attributes file to verify that the attribute shown in the following display exists:
OID LABEL SYNTAX Enter the following command to assign the value ontario to the attribute myname: dcecp> directory modify /.:/sales -add {myname ontario} To remove the value 1 from the user-defined, set-valued attribute dirregion of a directory named /.:/sales, follow these steps: 1. Read the cds_attributes file to check that the attribute dirregion is listed, as shown in the following display:
OID LABEL SYNTAX 2. Enter the following command to remove the value 1 from the attribute dirregion:
dcecp> directory modify /.:/sales -remove {dirregion 1} 3. To change the epoch of a directory with one master and two replicas, enter the following command:
dcecp> directory modify /.:/oddball -master /.:/gumby-ch \
|