Changes

OcsInventory Agent

1,982 bytes added, 19:48, 24 August 2011
Add package for version 2.0
and IBM AIX.
=== [2.x series] Using the standard installer ===Note that this package requires wpkg version >= 1.2. Also, OCS-NG changed its version numbering from 1.x to 2.x, so this actually has a lower version number than the last 1.x series - so this script will not update a 1.x installation as is. In addition to the basic installation, this package also copies a file "cacert.pem" to the program's data directory - this should contain the server's SSL cert, along with the root CA's SSL cert and any intermediate SSL certs (if applicable). This script detects the Windows version and places the file in the appropriate directory, but only Windows XP (32-bit) and Windows 7 are supported. To add more OSes, see [[Extended_host_attribute_matching]]. <source lang="xml"><package id='ocsinventory' name='OcsInventory' revision="%version%" priority='5' reboot='false'> <variable name="OCS_SERVER" value="https://hq.palantetech.com/ocsinventory" /><variable name="version" value="2.0.0.20" />  <check type="logical" condition="or"> <check type='file' condition='versiongreaterorequal' path='%PROGRAMFILES%\OCS Inventory Agent\OCSInventory.exe' value="%version%" /> <check type='file' condition='versiongreaterorequal' path='%PROGRAMFILES(x86)%\OCS Inventory Agent\OCSInventory.exe' value="%version%" /> </check> <install cmd="%SOFTWARE%\ocsinventory\OCS-NG-Windows-Agent-Setup.exe /S /SERVER=%OCS_SERVER%" /> <install os='windows xp' cmd='%comspec% /c copy %SOFTWARE%\ocsinventory\cacert.pem "%allusersprofile%\Application Data\OCS Inventory NG\Agent"' /> <install os='windows 7' cmd='%comspec% /c copy %SOFTWARE%\ocsinventory\cacert.pem "%PROGRAMDATA%\OCS Inventory NG\Agent"' /> <upgrade cmd="%SOFTWARE%\ocsinventory\OCS-NG-Windows-Agent-Setup.exe /S /SERVER=%OCS_SERVER% /UPGRADE" /> <remove cmd='"%PROGRAMFILES%\OCS Inventory Agent\uninst.exe" /S' /></package></source> === [1.x series] Using the standard OcsAgentSetup.exe ===
<source lang="xml">
Be sure to adjust the check version depending on the version you install, and substitute your OCS server for ''your.server.here''.
=== [1.x series] Using a customized ocspackage.exe ===
Before all, create your customized ocspackage.exe following the [http://wiki.ocsinventory-ng.org/index.php/Documentation:Agent upstream documentation].
Anonymous user