hostdata create
Creates a hostdata configuration object. The syntax is:
hostdata create hostdata_name_list {-attribute -attribute_list | attribute value} [-binary]
[-local]
Options
-attribute attribute_list Allows you to specify attributes using an attribute list rather than using the -attribute value option. The format of an attribute
list is as follows:
{{attribute value}
{attribute value}}
-attribute value As an alternative to using the -attribute option with an attribute list, you can specify individual attribute options by prepending a hyphen (-) to any
attributes listed in Attributes.
-binary Specifies that the value of the data attribute is in binary form.
-local Specifies that the command should operate on the local dced hostdata object while the dced object is in a partial-service state.
Description The hostdata_name_list argument is a list of names of hostdata entries to be created. The -attributes option specifies configuration
information for dced. The contents of the hostdata file can be specified via the data attribute. The value of the option is applied to all elements of the argument list.
This operation returns an empty string on success.
Privileges Required You must have w (write) permission to the hostdata container on the host.
Examples
dcecp> hostdata create file1 -storage /tmp/file1 -data {{first line}} dcecp>
dcecp> hostdata show file1 {uuid 8484188a-eb85-11cd-91b1-080009251352} {annotation {}} {storage /tmp/file1} {hostdata/data {first line}}
dcecp>
dcecp> cat /tmp/file1 first line dcecp>
|