Difference between revisions of "FusionInventory Agent"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Created page with '== FusionInventory Agent == The FusionInventory Agent is a tool for hardware and software inventory and much more, created by the [http://fusioninventory.org FusionInventory pro…')
 
(FusionInventory Agent)
 
(13 intermediate revisions by 6 users not shown)
Line 15: Line 15:
  
 
<package
 
<package
id="inventory-mdxbe"
+
id="fusioninventory"
 
name="FusionInventory Agent"
 
name="FusionInventory Agent"
 
revision="%version%"
 
revision="%version%"
Line 21: Line 21:
 
priority="0">
 
priority="0">
  
<variable name="version" value="2.1.6-3" />
+
<variable name="version" value="2.2.5-1" />
 
<variable name="tag" value="tagname" />
 
<variable name="tag" value="tagname" />
 
<variable name="serverlist" value="https://ocsinventory-ng/ocsinventory" />
 
<variable name="serverlist" value="https://ocsinventory-ng/ocsinventory" />
  
<check type="uninstall" condition="exists" path="FusionInventory Agent" />
+
<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%'>
+
         <install cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-i386_%version%.exe /S /debug /runnow /tag=%tag% /server=%serverlist%' />   
            <exit code="0" />
+
     
        </install>
+
         <upgrade cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-i386_%version%.exe /S /debug /runnow /tag=%tag% /server=%serverlist%' />
       
+
 
        <remove cmd='msiexec /x (path to msi)' />
+
        <remove cmd='"%PROGRAMFILES%\FusionInventory-Agent\uninstFI.exe" /S' />
       
+
         <upgrade cmd='%SOFTWARE%\fusioninventory\fusioninventory-agent_windows-i386_2.1.6.exe /S /debug /runnow /tag=%tag% /server=%serverlist%' />
+
 
 
 
</package>        
 
</package>        
Line 39: Line 37:
 
</source>
 
</source>
  
 +
 +
 +
'''Version 2.3.X of fusioninventory-agent'''
 +
 +
<source lang="xml">
 +
<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>
 +
</source>
 +
 +
'''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.
 +
 +
<source lang="xml">
 +
<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>
 +
</source>
 +
 +
Include this package as dependency in the FusionInventory Agent package.
 +
<source lang="xml">
 +
<depends package-id="fi-agent-port" />
 +
</source>
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]
 +
[[Category:NSIS]]

Latest revision as of 09:42, 18 February 2014

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" />