2010/7/7 Amir Pakdel <span dir="ltr"><<a href="mailto:a.pakdel@karafarinbank.net">a.pakdel@karafarinbank.net</a>></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, "Administrative Data" 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>
<ADM><br>
<ACCOUNTINFO><br>
<KEYNAME>TAG</KEYNAME><br>
<KEYVALUE>TestTAG</KEYVALUE><br>
</ACCOUNTINFO><br>
<ACCOUNTINFO><br>
<KEYNAME>TestAdminInfo</KEYNAME><br>
<KEYVALUE>TestValFromClient</KEYVALUE><br>
</ACCOUNTINFO><br>
</ADM><br>
<br>
But I have no success in setting "TestAdminInfo" to "TestValFromClient" in the OCS server!<br></blockquote><div>Once the machine'd been created on the server, it'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-='TestAdminInfo: TestValFromClient'</div></div><div><br></div>Cheers<br>-- <br> Gonéri Le Bouder<br>