tuto:gestion_de_parc:wpkg:start

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
tuto:gestion_de_parc:wpkg:start [13/07/2012 10:09]
dani Page moved from wpkg:start to tuto:gestion_de_parc:wpkg:start
tuto:gestion_de_parc:wpkg:start [30/10/2015 16:47] (Version actuelle)
dani
Ligne 11: Ligne 11:
  
  
-    * [[:wpkg:firefox|Mozilla Firefox]] +    * [[firefox|Mozilla Firefox]] 
-    * [[:wpkg:thunderbird|Mozilla Thunderbird]] +    * [[thunderbird|Mozilla Thunderbird]] 
-    * [[:wpkg:flash|Plugin Flash]] +    * [[flash|Plugin Flash]] 
-    * [[:wpkg:pdfcreator|PDFCreator]] +    * [[pdfcreator|PDFCreator]] 
-    * [[:wpkg:gimp|The GIMP]] +    * [[gimp|The GIMP]] 
-    * [[:wpkg:vlc|VLC]] +    * [[vlc|VLC]] 
-    * [[:wpkg:7zip|7 Zip]] +    * [[7zip|7 Zip]] 
-    * [[:wpkg:jre|Sun JRE]] +    * [[jre|Sun JRE]] 
-    * [[:wpkg:ccleaner|CCleaner]] +    * [[ccleaner|CCleaner]] 
-    * [[:wpkg:libreoffice|LibreOffice]] +    * [[libreoffice|LibreOffice]] 
-    * [[:wpkg:ntp|Configuration du client NTP]] +    * [[ntp|Configuration du client NTP]] 
-    * [[:wpkg:tightvnc|TightVNC]] +    * [[tightvnc|TightVNC]] 
-    * [[:wpkg:productkey|Product Key]] +    * [[productkey|Product Key]] 
-    * [[:wpkg:adobe_reader|Adobe Reader]] +    * [[adobe_reader|Adobe Reader]] 
-    * [[:wpkg:sumatrapdf|Sumatra PDF]] +    * [[sumatrapdf|Sumatra PDF]] 
-    * [[:wpkg:wpkg|WPKG Client]] +    * [[wpkg|WPKG Client]] 
-    * [[:wpkg:zabbix_agent|Agent Zabbix]]+    * [[zabbix_agent|Agent Zabbix]]
  
 +===== Mises à jour locales =====
 +
 +Pour accélérer les mises à jour, il faut les exécuter en locale, et donc synchroniser le dépôt entier depuis un serveur central vers le poste, puis, détecter si il y a eu des changements depuis la dernière exécution, et si oui, lancer les mises à jour
 +
 +Pour synchroniser, on peut le faire avec RobotCopy, depuis un point webdav.
 +
 +<code batch>
 +mkdir %SystemDrive%\wpkg\
 +mkdir %SystemDrive%\wpkg\repository
 +mkdir %SystemDrive%\wpkg\status
 +</code>
 +
 +Il faut d'abord augmenter la taille max des fichiers récupérés par webdav:
 +<code reg>
 +Windows Registry Editor Version 5.00
 +
 +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters]
 +"FileSizeLimitInBytes"=dword:ffffffff
 +</code>
 +
 +<code batch>
 +@echo off
 +
 +SET USER=deploiement
 +SET PASS=p@ssw0rd
 +SET REPO=https://sme.domain.tld/wpkg/
 +REM SET REPO=\\192.168.7.1\wpkg
 +
 +echo %DATE% %TIME% > %SystemDrive\wpkg\status\sync_in_progress.txt
 +
 +net use W: %REPO% /USER:%USER% %PASS%
 +
 +robocopy /MIR /R:10 /LOG:%SystemDrive%\wpkg\status\sync_log.txt W:\ %SystemDrive%\wpkg\repository\
 +
 +REM Fatal Error
 +if %ERRORLEVEL% EQU 16 goto cleanup
 +REM Copy done, with errors, mismatches and new files not copied
 +if %ERRORLEVEL% EQU 15 goto cleanup
 +REM Copy failed, with mismatches and new files not copied
 +if %ERRORLEVEL% EQU 14 goto cleanup
 +REM Copy done, with errors and mismatches
 +if %ERRORLEVEL% EQU 13 goto cleanup
 +REM Copy failed with mismatches
 +if %ERRORLEVEL% EQU 12 goto cleanup
 +REM Copy done with errors and new files not copied
 +if %ERRORLEVEL% EQU 11 goto cleanup
 +if %ERRORLEVEL% EQU 10 echo FAIL + XTRA & goto end
 +REM Copy done with errors
 +if %ERRORLEVEL% EQU 9 goto cleanup
 +REM Copy failed
 +if %ERRORLEVEL% EQU 8 goto cleanup
 +REM Copy done, with mismatches and new files not copied
 +if %ERRORLEVEL% EQU 7 goto cleanup
 +REM Mismatches and new files not copied
 +if %ERRORLEVEL% EQU 6 goto cleanup
 +REM Copy done with mismatches
 +if %ERRORLEVEL% EQU 5 goto cleanup
 +REM Mismatches
 +if %ERRORLEVEL% EQU 4 goto cleanup
 +REM Copy done, new files not copied
 +if %ERRORLEVEL% EQU 3 goto cleanup
 +REM New files not copied
 +if %ERRORLEVEL% EQU 2 goto cleanup
 +REM Copy done, we have new files, updates is required
 +if %ERRORLEVEL% EQU 1 goto exec
 +REM No error, nothing copied, no updates
 +if %ERRORLEVEL% EQU 0 goto cleanup
 +
 +:exec
 +echo %DATE% %TIME% > %SystemDrive%\wpkg\status\updates_pending.txt
 +goto :EOF
 +
 +:cleanup
 +del %SystemDrive\wpkg\status\sync_in_progress.txt
 +</code>
 +
 +  * Pour programmer la synchro toutes les 3 heures
 +
 +<code batch>
 +schtasks.exe /Create /tn "sync_wpkg" /sc hourly /mo 3 /ru "SYSTEM" /tr "%SystemDrive%\bin\sync_wpkg.bat"
 +</code>
  • tuto/gestion_de_parc/wpkg/start.1342166952.txt.gz
  • Dernière modification: 13/07/2012 10:09
  • de dani