PreviousNext

Adding a New Attribute

Use the dcecp program's modify command with the -add option to add a new attribute to an object entity.

To add a new attribute, you must have previously added the new attribute to the cds_attributes file on each host in the cell. You must also have write permission to the entity to which you are adding new attributes.

For example, the following command adds the single-valued attribute (owner) to a directory (/.:/admin) and assigns a value of Leland to the new attribute:

dcecp> directory modify /.:/admin -add {owner Leland}
dcecp>

The following command adds a new multivalued attribute (vegetables) to an object (/.:/admin/garden) and assigns values of carrots and lettuce to the new attribute:

dcecp> object modify /.:/admin/garden -add {vegetables {carrots} {lettuce}}
dcecp>