FusionInventory Agent

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

FusionInventory Agent

The FusionInventory Agent is a tool for hardware and software inventory and much more, created by the FusionInventory project. It is the successor of the OCSInventory Agent, project from which it has forked end evolved.

You can download the agent from the download page.

It has a lot of Command line parameters. Only few of them are used here.


<?xml version="1.0" encoding="UTF-8"?>

<packages>

<package
	id="fusioninventory"
	name="FusionInventory Agent"
	revision="%version%"
	reboot="false"
	priority="0">

	<variable name="version" value="2.2.5-1" />
	<variable name="tag" value="tagname" />
	<variable name="serverlist" value="https://ocsinventory-ng/ocsinventory" />

	<check type="uninstall" condition="versiongreaterorequal" path="FusionInventory Agent" value="%version%" />
        
        <install cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-i386_%version%.exe /S /debug /runnow /tag=%tag% /server=%serverlist%' />  
      
        <upgrade cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-i386_%version%.exe /S /debug /runnow /tag=%tag% /server=%serverlist%' />

        <remove cmd='"%PROGRAMFILES%\FusionInventory-Agent\uninstFI.exe" /S' />
	
</package>								      
</packages>


Version 2.3.X of fusioninventory-agent

<package
	id="fusioninventory"
	name="FusionInventory Agent"
	revision="%version%"
	reboot="false"
	priority="0">
 
	<variable name="version" value="2.3.5" />
	<variable name="serverlist" value="http://GLPI-SERVER/glpi/plugins/fusioninventory/" />
        <variable name="remotelist" value="XXX.XXX.XXX.XXX/32,XXX.XXX.XXX.XXX/32" /> <!--  add IP-adresses of machines to allow remote access to the agent --> 
 
	<check type="uninstall" condition="versiongreaterorequal" path="FusionInventory Agent.+" value="%version%" />
        <install architecture="x64" cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-x64_%version%.exe /acceptlicense /httpd-trust="%remotelist%" /execmode=Service /S /debug=0 /server="%serverlist%" /runnow' />  
	<install architecture="x86" cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-x86_%version%.exe /acceptlicense /httpd-trust="%remotelist%" /execmode=Service /S /debug=0 /server="%serverlist%" /runnow'  />  
 
        <upgrade architecture="x64" cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-x64_%version%.exe /acceptlicense /httpd-trust="%remotelist%" /execmode=Service /S /debug=0 /server="%serverlist%" /runnow' />
	<upgrade architecture="x86" cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-x86_%version%.exe /acceptlicense /httpd-trust="%remotelist%" /execmode=Service /S /debug=0 /server="%serverlist%" /runnow' />
 
        <remove cmd='"%PROGRAMFILES%\FusionInventory-Agent\uninstFI.exe" /S' />
 
</package>

Allow remote access to the FusionInventory Agent

The current Version (2.3.5) includes a installer Option to open the remote port (62354) for the Agent in the Windows Firewall, but its not functional yet. If you want to send push requests to the Agent (Inventory, WakeOnLan, network-discovery) you have to open this Port manually or with a small WPKG package. (This works for Windows 7+)

If you havent speciefied otherwise in the Agent installer only the fusioninventory server is allowed to access the Agent-webpage.

<package
	id="fi-agent-port"
	name="FusionInventory Agent - Remote Port"
	reboot="false"
	priority="100"
	execute="once" >
 
	<install cmd='netsh advfirewall firewall add rule name="FusionInventory Agent" dir=in action=allow protocol=TCP localport=62354' />
        <remove cmd='netsh advfirewall firewall delete rule name="FusionInventory Agent" protocol=tcp localport=62354' />
	
</package>

Include this package as dependency in the FusionInventory Agent package.

<depends package-id="fi-agent-port" />