<html>

<head>

<title>hostdata modify</title></head>

<body  BGCOLOR="#ffffff">

<table border="0">

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

<td>

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

<h4>     hostdata modify<p>

</h4>This operation is used to change attributes of a <b>hostdata</b> entry, including the <b>hostdata</b> itself.</b><p>

<b>hostdata modify </b><i>hostdata_name_list</i><b> </b>{<b>-change </b><i>attribute_list</i><b> | </b><i>attribute value</i>}<b>  <br>[-binary] [-local]</i></b><p>

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

<b></b><i>-attribute value</i> <br>As an alternative to using options with an attribute list, you can change individual attribute options by prepending a hyphen(-) to any attributes listed in 

the <a href="Comre362.htm">Attributes</a> topic of this reference page. 

</i></b><p>

 	In the current version of DCE, only the <b>data</b> attribute can be modified.<b></b><p>

<b>-change</b><i> attribute_list</i><b> <br></b>Allows you to modify attributes by using an attribute list rather than using individual attribute options  The format of an attribute list is as 

follows: 

</i></b><p>

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

In the current version of DCE, only the <b>data</b> attribute can be modified.</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 <br></b>The argument is a list of names of <b>hostdata</b> entries to be modified.  If more than one is specified all modifications specified are done to each 

<b>hostdata </b>entry listed.  In the current DCE version, only the <b>data</b> attribute can be modified and only by completely replacing it.This operation returns an empty string on success. 

</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 mod file1 -data </b>{{<b>new first line</b>}} <br>dcecp&gt; </b><p>

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

first line}} <br>dcecp&gt; 

</b><p>

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

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

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

</td>

</table>

</body></html>

