2010/7/7 Amir Pakdel <span dir="ltr">&lt;<a href="mailto:a.pakdel@karafarinbank.net">a.pakdel@karafarinbank.net</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear developers,<br></blockquote><div>Hi Amir,</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
If I am not mistaking, &quot;Administrative Data&quot; can only be set on the server and is pushed into the agent and then stored in the following file:<br>
/var/lib/fusioninventory-agent/http\:__servername_ocsinventory/ocsinv.adm<br>
<br>
Is it possible to do it the other way around? As a point in case, I have set /etc/fusioninventory/ocsinv.adm for the agent as the following:<br>
<br>
&lt;ADM&gt;<br>
  &lt;ACCOUNTINFO&gt;<br>
    &lt;KEYNAME&gt;TAG&lt;/KEYNAME&gt;<br>
    &lt;KEYVALUE&gt;TestTAG&lt;/KEYVALUE&gt;<br>
  &lt;/ACCOUNTINFO&gt;<br>
  &lt;ACCOUNTINFO&gt;<br>
    &lt;KEYNAME&gt;TestAdminInfo&lt;/KEYNAME&gt;<br>
    &lt;KEYVALUE&gt;TestValFromClient&lt;/KEYVALUE&gt;<br>
  &lt;/ACCOUNTINFO&gt;<br>
&lt;/ADM&gt;<br>
<br>
But I have no success in setting &quot;TestAdminInfo&quot; to &quot;TestValFromClient&quot; in the OCS server!<br></blockquote><div>Once the machine&#39;d been created on the server, it&#39;s not possible to change the admin info from the agent. You can change this behaviour with the ACCEPT_TAG_UPDATE_FROM_CLIENT option since OCS 1.3</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The goal is defining some fields that are specific to our organization. They are easily set on the agent and; therefore we want to push these fields from the agent into the OCS server.<br></blockquote><div>I think we should avoid to edit ocsinfo.adm by hand. This file is not there to be changed. Actually, this file will be dropped in the 2.2 release. I would prefer a new proper parameter or config file instead. e.g:</div>
<div>  --adminfo-=&#39;TestAdminInfo: TestValFromClient&#39;</div></div><div><br></div>Cheers<br>-- <br>     Gonéri Le Bouder<br>