Hello to everybody, Here you are attached a 'sophisticated' script to get the FusionInventory::Agent and FusionInventory::Agent::Task::* modules. The script file name is 'upgrade-fusioninventory-agent-and-tasks-modules.bat' but Google don't let me attach the file with this name, please, rename it.
-- Tomas Abad Ingeniero de Sistemas / Systems Engineer
:: ------------------------------------------------------------------------ :: FusionInventory :: Copyright (C) 2010-2012 by the FusionInventory Development Team. :: :: http://www.fusioninventory.org/ http://forge.fusioninventory.org/ :: ------------------------------------------------------------------------ :: :: LICENSE :: :: This file is part of FusionInventory project. :: :: FusionInventory is free software: you can [...] :: :: FusionInventory is distributed in the hope that it will be useful, :: but WITHOUT ANY WARRANTY; without even the implied warranty of :: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the :: GNU Affero General Public License for more details. :: :: You should have received a copy of [...] :: :: ------------------------------------------------------------------------ :: :: @package FusionInventory Agent Installer for Microsoft Windows :: @file .\Perl\Scripts\upgrade-fusioninventory-agent-and-tasks-modules.bat :: @author Tomas Abad :: @copyright Copyright (c) 2010-2012 FusionInventory Team :: @license [...] :: @link http://www.fusioninventory.org/ :: @link http://forge.fusioninventory.org/projects/fusioninventory-agent :: @since 2012 :: :: ------------------------------------------------------------------------ @echo off set drive=%~dp0 set drivep=%drive% If $#\#$==$#%drive:~-1%#$ set drivep=%drive:~0,-1% set PATH=%drivep%\perl\site\bin;%drivep%\perl\bin;%drivep%\c\bin;%PATH% :: env variables set TERM=dumb set PERL_JSON_BACKEND=JSON::XS set PERL_YAML_BACKEND=YAML :: avoid collisions with other perl stuff on your system set PERL5LIB= set PERL5OPT= set PERL_MM_OPT= set PERL_MB_OPT= :: show Perl information perl -e "printf("""Perl executable: %%s\nPerl version : %%vd\n""", $^X, $^V)" 2> NUL :: set proxy environment variables :: Uncomment and defines the lines below to use the proxy server :: set HTTP_PROXY=http://[username:password@]your.http.server.proxy:port/ :: set HTTPS_PROXY=https://[username:password@]your.https.server.proxy:port/ :: set FTP_PROXY=ftp://[username:password@]your.ftp.server.proxy:port/ :: set NO_PROXY=localhost,... :: set more variables set FUSINV_AGENT=FusionInventory::Agent set FUSINV_TASK_DEPLOY=FusionInventory::Agent::Task::Deploy set FUSINV_TASK_ESX=FusionInventory::Agent::Task::ESX set FUSINV_TASK_NETDISCOVERY=FusionInventory::Agent::Task::NetDiscovery set FUSINV_TASK_NETINVENTORY=FusionInventory::Agent::Task::NetInventory set FUSINV_TASKS=%FUSINV_TASK_DEPLOY% %FUSINV_TASK_ESX% %FUSINV_TASK_NETDISCOVERY% %FUSINV_TASK_NETINVENTORY% :: erase temporary cpanp files rmdir /q /s %drivep%\data\.cpanplus 2> NUL :: upgrade the environment perl %drivep%\perl\bin\cpanp -d --fetchdir=%drivep%\cpan\sources %FUSINV_AGENT% %FUSINV_TASKS% :: extract files %drivep%\cpan\sources\*.gz %drivep%\..\..\..\..\Tools\7zip\7za.exe x -bd -y -o%drivep%\cpan\sources %drivep%\cpan\sources\*.tar.gz > NUL :: extract files %drivep%\cpan\sources\*.tar %drivep%\..\..\..\..\Tools\7zip\7za.exe x -bd -y -o%drivep%\cpan\sources %drivep%\cpan\sources\*.tar > NUL :: erase files %drivep%\cpan\sources\*.tar del /q /f %drivep%\cpan\sources\*.tar 2> NUL :: erase files %drivep%\cpan\sources\*.tar.gz del /q /f %drivep%\cpan\sources\*.tar.gz 2> NUL
_______________________________________________ Fusioninventory-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel
