The attributes of an object, also known as its properties,
enable you to track various information. You can create attributes
and set properties for the attributes, such as typeand value.
About this task
attr|attribute -c|-create attr_name -p|-project [-f|-force]
-t|-type attr_type [-v|-value attr_value] project_spec...
attr|attribute -c|-create attr_name -t|-type attr_type
[-v|-value attr_value] [-f|-force] object_spec...
- -c|-create attr_name
- Creates an attribute.
- -f|-force
- Checks whether the attribute to be created exists and has the
same type, and then causes one of these situations to occur:
- -t|-type attr_type
- Specifies the type of the attribute. Use this option only when
you create attributes. Valid built-in values include:
- string (used for single line ascii attributes)
- boolean
- text (used for multi-line ascii attributes)
- integer
- -v|-value attr_value
- Specifies the value of the attribute.
Example
Create a string attribute named
new_attr for
the
driver.c object.
ccm
attr -c new_attr -type string driver.c