<html>

<head>

<title>hostdata create</title></head>

<body  BGCOLOR="#ffffff">

<table border="0">

<td width="10">&nbsp;</td>

<td>

<a href="Comre365.htm"><img src="./prev.gif" border="0" alt="Previous" WIDTH="32" HEIGHT="32"></a><a href="Comre367.htm"><img src="./next.gif" border="0" alt="Next" WIDTH="32" HEIGHT="32"></a><p>

<h4>     hostdata create<p>

</h4>Creates a <b>hostdata</b> configuration object.  The syntax is:</b><p>

<b>hostdata create  <br></b><i>hostdata_name_list </i>{<b>-attribute  <br>-</b><i>attribute_list</i><b> |  <br></b><i>attribute value</i>}<b> [-binary] 

[-local] 

</i></b><p>

<b></b><b>Options</b></b><p>

<b>-attribute </b><i>attribute_list <br></i>Allows you to specify attributes using an attribute list rather than using the <i>-attribute value </i>option.  The format of an attribute 

list is as<b> </b>follows: 

</i></b><p>

{{<i>attribute value</i>}<b>&#133;</b>{<i>attribute value</i>}}</i></b><p>

-attribute value <br>As an alternative to using the <b>-attribute</b> option with an attribute list, you can specify individual attribute options by prepending a hyphen (-) to any 

attributes listed in <a href="Comre362.htm">Attributes.</a> 

</b><p>

<b>-binary <br></b>Specifies that the value of the <b>data</b> attribute is in binary form.</b><p>

<b>-local <br></b>Specifies that the command should operate on the local <b>dced hostdata</b> object while the <b>dced</b> object is in a partial-service state.</b><p>

<b>Description</b> <br>The <i>hostdata_name_list</i> argument is a list of names of <b>hostdata</b> entries to be created.  The <b>-attributes</b> option specifies configuration 

information for <b>dced</b>.  The contents of the <b>hostdata </b>file can be specified via the <i>data</i> attribute.  The value of the option is applied to all elements of the argument list.  

This operation returns an empty string on success. 

</i></b><p>

<b>Privileges Required</b> <br>You must have <b>w</b> (<b>write</b>) permission to the <b>hostdata</b> container on the host.</b><p>

<b>Examples</b></b><p>

dcecp&gt; <b>hostdata create file1 -storage /tmp/file1 -data </b>{{<b>first</b><b> line</b>}} <br>dcecp&gt; </b><p>

dcecp&gt; <b>hostdata show file1</b> <br>{uuid 8484188a-eb85-11cd-91b1-080009251352} <br>{annotation  {}} <br>{storage /tmp/file1} <br>{hostdata/data {first line}} 

<br>dcecp&gt; 

</b><p>

dcecp&gt; <b>cat /tmp/file1</b> <br>first line <br>dcecp&gt; </b><p>

<h4><b></h4></b><p>

<b></b></b><p>

</td>

</table>

</body></html>

