@Tom-Elliott Client 0.9.7 doesn’t update itself. That’s the big problem.
Posts made by jmeyer
-
RE: Remove Legacy client and replace with latest new client?
-
RE: Client Updater Loop
Bad news removing 0.9.7 when both are listend end to make client is 0.9.7…
I have run :
start /wait wmic product where "Version like '0.9.7' and name like 'FOG Service'" call uninstall /nointeractive
Then :
C:\Windows\system32>wmic product where "name like 'FOG Service'" get Version Version 0.9.9
And logs…
------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:53 Client-Info Version: 0.9.7 18/12/2015 10:53 SnapinClient Running... 18/12/2015 10:53 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=snapinclient&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:53 Middleware::Communication Response: Success 18/12/2015 10:53 Middleware::Communication URL: http://fog-server/fog/service/snapins.checkin.php?mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:53 Middleware::Communication Response: No snapins ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:53 Client-Info Version: 0.9.7 18/12/2015 10:53 PrinterManager Running... 18/12/2015 10:53 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=printermanager&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:53 Middleware::Communication Response: Success 18/12/2015 10:53 Middleware::Communication URL: http://fog-server/fog/service/Printers.php?mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:53 Middleware::Communication Response: No Printers 18/12/2015 10:53 Middleware::Communication URL: http://fog-server/fog/service/printerlisting.php?newService=1 18/12/2015 10:53 Middleware::Communication Response: No Printers ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -----------------------------------GreenFOG----------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:53 Client-Info Version: 0.9.7 18/12/2015 10:53 GreenFOG Running... 18/12/2015 10:53 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=greenfog&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:53 Middleware::Communication Response: Success 18/12/2015 10:53 Middleware::Communication URL: http://fog-server/fog/service/greenfog.php?mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:53 Middleware::Communication Response: Success 18/12/2015 10:53 GreenFOG Registered task: 0@0@s ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:53 Client-Info Version: 0.9.7 18/12/2015 10:53 UserTracker Running... 18/12/2015 10:53 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=usertracker&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:53 Middleware::Communication Response: Success 18/12/2015 10:53 Middleware::Communication URL: http://fog-server/fog/service/usertracking.report.php?action=login&user=intelhps3vinci\LACHKARM&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 ------------------------------------------------------------------------------ 18/12/2015 10:53 Middleware::Communication URL: http://fog-server/fog/management/index.php?node=client&sub=configure&newService=1 18/12/2015 10:53 Middleware::Communication Response: Success 18/12/2015 10:53 Service Sleeping for 99 seconds ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:54 Client-Info Version: 0.9.7 18/12/2015 10:54 ClientUpdater Running... 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=clientupdater&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: Success 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/getversion.php?client&newService=1 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/client/FOGService.msi 18/12/2015 10:54 Data::RSA ERROR: Could not verify certificate is from CA 18/12/2015 10:54 Data::RSA ERROR: Value cannot be null. Parameter name: certificate 18/12/2015 10:54 ClientUpdater ERROR: Update file is not authentic ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:54 Client-Info Version: 0.9.7 18/12/2015 10:54 TaskReboot Running... 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=taskreboot&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: Success 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/jobs.php?mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: No jobs ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:54 Client-Info Version: 0.9.7 18/12/2015 10:54 HostnameChanger Running... 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=hostnamechanger&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: Success 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/hostname.php?moduleid=hostnamechanger&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: Success 18/12/2015 10:54 HostnameChanger Checking Hostname 18/12/2015 10:54 HostnameChanger Hostname is correct 18/12/2015 10:54 HostnameChanger Registering host with active directory 18/12/2015 10:54 HostnameChanger Host is already joined to target domain 18/12/2015 10:54 HostnameChanger Activing host with product key ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:54 Client-Info Version: 0.9.7 18/12/2015 10:54 SnapinClient Running... 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=snapinclient&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: Success 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/snapins.checkin.php?mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: No snapins ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:54 Client-Info Version: 0.9.7 18/12/2015 10:54 PrinterManager Running... 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=printermanager&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: Success 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/Printers.php?mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: No Printers 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/printerlisting.php?newService=1 18/12/2015 10:54 Middleware::Communication Response: No Printers ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -----------------------------------GreenFOG----------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:54 Client-Info Version: 0.9.7 18/12/2015 10:54 GreenFOG Running... 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=greenfog&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: Success 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/greenfog.php?mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: Success 18/12/2015 10:54 GreenFOG 0@0@s already scheduled ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:54 Client-Info Version: 0.9.7 18/12/2015 10:54 UserTracker Running... 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=usertracker&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:54 Middleware::Communication Response: Success ------------------------------------------------------------------------------ 18/12/2015 10:54 Middleware::Communication URL: http://fog-server/fog/management/index.php?node=client&sub=configure&newService=1 18/12/2015 10:54 Middleware::Communication Response: Success 18/12/2015 10:54 Service Sleeping for 74 seconds```
-
Client Updater Loop
Hello,
I think there is something pretty wrong there, no ?
It keeps downloading client from server in loop.
Can I blame someone for making my network a battlefield ?
I had to stop apache2 to end this but that doesn’t give me solution to fix the upgrade on every computer of my network unless going on them to run the 0.9.9 msi manually or remove the 0.9.7.
I even have this when I see 0.9.7 and 0.9.9 on add/remove software panel…Here are the result for having the 2 version installed :
C:\Windows\system32>wmic product where "name like 'FOG Service'" get Version Version 0.9.9 0.9.7
And logs of this computer :
18/12/2015 10:47 Data::RSA FOG Server CA cert found 18/12/2015 10:47 Update Helper Starting service... 18/12/2015 10:47 Bus Became bus server 18/12/2015 10:47 Bus { "channel": "Status", "data": "{\r\n \"action\": \"load\"\r\n}" } 18/12/2015 10:47 Bus Emmiting message on channel: Status ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:47 Client-Info Version: 0.9.7 18/12/2015 10:47 Middleware::Communication URL: http://fog-server/fog/management/other/ssl/srvpublic.crt 18/12/2015 10:47 Data::RSA FOG Server CA cert found 18/12/2015 10:47 Middleware::Authentication Cert OK 18/12/2015 10:47 Middleware::Communication POST URL: http://fog-server/fog/management/index.php?sub=authorize 18/12/2015 10:47 Middleware::Communication Response: Success 18/12/2015 10:47 Middleware::Authentication Authenticated 18/12/2015 10:47 Bus Registering ParseBus in channel Power ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:47 Client-Info Version: 0.9.7 18/12/2015 10:47 ClientUpdater Running... 18/12/2015 10:47 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=clientupdater&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:47 Middleware::Communication Response: Success 18/12/2015 10:47 Middleware::Communication URL: http://fog-server/fog/service/getversion.php?client&newService=1 18/12/2015 10:47 Middleware::Communication URL: http://fog-server/fog/client/FOGService.msi 18/12/2015 10:47 Data::RSA FOG Project cert found 18/12/2015 10:47 ClientUpdater Update file is authentic ------------------------------------------------------------------------------ 18/12/2015 10:47 Bus { "channel": "Update", "data": "{\r\n \"action\": \"start\"\r\n}" } 18/12/2015 10:47 Bus Emmiting message on channel: Update 18/12/2015 10:47 Service-Update Spawning update helper 18/12/2015 10:47 Bus Registering ParseBus in channel Power 18/12/2015 10:47 Update Helper Shutting down service... 18/12/2015 10:47 Service Stop requested 18/12/2015 10:47 Bus { "channel": "Status", "data": "{\r\n \"action\": \"unload\"\r\n}" } 18/12/2015 10:47 Bus Emmiting message on channel: Status 18/12/2015 10:47 Update Helper Killing remaining FOG processes... 18/12/2015 10:47 Update Helper Applying MSI... 18/12/2015 10:47 Update Helper --> msiexec /i "C:\Program Files\FOG\tmp\FOGService.msi" /quiet USETRAY="1" HTTPS="0" WEBADDRESS="fog-server" WEBROOT="/fog" ROOTLOG="1" 18/12/2015 10:47 Data::RSA FOG Server CA cert found 18/12/2015 10:47 Update Helper Starting service... 18/12/2015 10:47 Bus Became bus server 18/12/2015 10:47 Bus { "channel": "Status", "data": "{\r\n \"action\": \"load\"\r\n}" } 18/12/2015 10:47 Bus Emmiting message on channel: Status ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:47 Client-Info Version: 0.9.7 18/12/2015 10:47 Middleware::Communication URL: http://fog-server/fog/management/other/ssl/srvpublic.crt 18/12/2015 10:47 Data::RSA FOG Server CA cert found 18/12/2015 10:47 Middleware::Authentication Cert OK 18/12/2015 10:47 Middleware::Communication POST URL: http://fog-server/fog/management/index.php?sub=authorize 18/12/2015 10:47 Middleware::Communication Response: Success 18/12/2015 10:47 Middleware::Authentication Authenticated 18/12/2015 10:47 Bus Registering ParseBus in channel Power ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:47 Client-Info Version: 0.9.7 18/12/2015 10:47 ClientUpdater Running... 18/12/2015 10:47 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=clientupdater&mac=78:E7:D1:D2:F3:5A||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1 18/12/2015 10:47 Middleware::Communication Response: Success 18/12/2015 10:47 Middleware::Communication URL: http://fog-server/fog/service/getversion.php?client&newService=1 18/12/2015 10:47 Middleware::Communication URL: http://fog-server/fog/client/FOGService.msi 18/12/2015 10:47 Data::RSA FOG Project cert found 18/12/2015 10:47 ClientUpdater Update file is authentic ------------------------------------------------------------------------------ 18/12/2015 10:47 Bus { "channel": "Update", "data": "{\r\n \"action\": \"start\"\r\n}" } 18/12/2015 10:47 Bus Emmiting message on channel: Update 18/12/2015 10:47 Service-Update Spawning update helper 18/12/2015 10:48 Bus Registering ParseBus in channel Power 18/12/2015 10:48 Update Helper Shutting down service... 18/12/2015 10:48 Service Stop requested 18/12/2015 10:48 Bus { "channel": "Status", "data": "{\r\n \"action\": \"unload\"\r\n}" } 18/12/2015 10:48 Bus Emmiting message on channel: Status 18/12/2015 10:48 Update Helper Killing remaining FOG processes... 18/12/2015 10:48 Update Helper Applying MSI... 18/12/2015 10:48 Update Helper --> msiexec /i "C:\Program Files\FOG\tmp\FOGService.msi" /quiet USETRAY="1" HTTPS="0" WEBADDRESS="fog-server" WEBROOT="/fog" ROOTLOG="1" 18/12/2015 10:48 Data::RSA FOG Server CA cert found 18/12/2015 10:48 Update Helper Starting service... 18/12/2015 10:48 Bus Became bus server 18/12/2015 10:48 Bus { "channel": "Status", "data": "{\r\n \"action\": \"load\"\r\n}" } 18/12/2015 10:48 Bus Emmiting message on channel: Status ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 18/12/2015 10:48 Client-Info Version: 0.9.7 18/12/2015 10:48 Middleware::Communication URL: http://fog-server/fog/management/other/ssl/srvpublic.crt
-
RE: Remove Legacy client and replace with latest new client?
@Wayne-Workman Upgrading to 0.9.7 was a very bad idea ! lol
https://forums.fogproject.org/topic/6368/client-updater-loopNow i need to review the script to remove 0.9.7 and 0.9.9 is both are installed…
Any idea how to do this ?I temporary did this since i have no other choice :
::v3.2 - Thanks to Wayne Workman, Robza start /wait wmic product where "Version like '0.9.7' and name like 'FOG Service'" call uninstall /nointeractive start /wait wmic product where "Version like '0.9.9' and name like 'FOG Service'" call uninstall /nointeractive set programpath=%programfiles(x86)% IF %PROCESSOR_ARCHITECTURE%==x86 set programpath=%programfiles% IF EXIST "%programpath%\FOG\fog.ca.cer" GOTO END set FogServerIP=fog-server start /wait wmic product where "Version like '3.0.29' and name like 'FOG Service'" call uninstall /nointeractive start /wait bitsadmin /transfer FOGService /download /priority normal http://%FogServerIP%/fog/client/FOGService.msi %temp%\FOGService.msi start /wait msiexec /i %temp%\FOGService.msi /quiet WEBADDRESS="%FogServerIP%" :END
-
RE: Upgrade client from 0.9.7 to 0.9.9
@Jbob I was using script with msiexec in GPO but not directly using software installation.
-
RE: Reboot made by wmiprvse.exe during first boot after sysprep
@FlowLive
It was fog client that was calling the reboot.
I just disable it before sysprep and enable it in script.I set most of it in a script in a smb share called by SetupComplete.cmd to not have to edit my image but be able to enhance it.
It works great and I use this script to do the most of task needed after deploy : drivers, windows activation and few basic software installation.
I even tested and validated it under Windows 10 few days ago.Days of work that finally pay back.
SetupComplete.cmd
@echo off echo %date% %time% Demarrage du script SetupComplete >> C:\imageresults.txt 2>&1 del /Q /F %windir%\system32\sysprep\unattend.xml >> C:\imageresults.txt 2>&1 del /Q /F %windir%\panther\unattend.xml >> C:\imageresults.txt 2>&1 echo %date% %time% Attente de 60 secondes pour activation du LAN >> C:\imageresults.txt 2>&1 timeout /t 60 /nobreak >> C:\imageresults.txt 2>&1 echo %date% %time% Fin des 60s >> C:\imageresults.txt 2>&1 echo %date% %time% Montage du partage samba de fog >> C:\imageresults.txt 2>&1 NET USE z: \\fogserver\AfterDeploy echo %date% %time% Net use effectué >> C:\imageresults.txt 2>&1 Z: if not %cd% == Z:\ goto nofog echo %date% %time% Dossier actuel %cd% >> C:\imageresults.txt 2>&1 echo %date% %time% Chargement du script AfterDeploy >> C:\imageresults.txt 2>&1 start /wait AfterDeploy.cmd C: NET USE /delete /yes Z: echo %date% %time% Lecteur Z demonte >> C:\imageresults.txt 2>&1 :nofog ::echo %date% %time% Activation Windows >> C:\imageresults.txt 2>&1 ::cscript C:\Windows\system32\slmgr.vbs /ato >> C:\imageresults.txt 2>&1 echo Activation du service FOG en demarrage automatique >> C:\imageresults.txt sc config "FOG Service" start= auto >> C:\imageresults.txt 2>&1 net start "FOG Service" >> C:\imageresults.txt 2>&1 shutdown -r -t 30 echo %date% %time% Reboot >> C:\imageresults.txt 2>&1 exit
AfterDeploy.cmd
echo %date% %time% - Script AfterDeploy - Changement de dossier : %cd% >> C:\imageresults.txt 2>&1 cd /SDI echo %date% %time% - Script AfterDeploy - Lancement de SDI >> C:\imageresults.txt 2>&1 IF %cd% == Z:\SDI start /wait SDI_auto.bat -autoinstall -nologfile -autoclose -license echo %date% %time% - Script AfterDeploy - Fin script SDI >> C:\imageresults.txt 2>&1 cd .. cd /ActivationWin7 echo %date% %time% - Script AfterDeploy - Lancement de Activation OEM Windows >> C:\imageresults.txt 2>&1 cscript ActivationWin7.vbs echo %date% %time% - Script AfterDeploy - Fin script activation >> C:\imageresults.txt 2>&1 cd .. echo %date% %time% - Script AfterDeploy - Modification pour désactiver AutoAdminLogon REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 0 /f echo %date% %time% - Script AfterDeploy - Modification registre effectuée cd /Logiciels echo %date% %time% - Script AfterDeploy - Lancement Install logiciels>> C:\imageresults.txt 2>&1 cscript Logiciels.vbs echo %date% %time% - Script AfterDeploy - Fin Install logiciels >> C:\imageresults.txt 2>&1 cd .. cd /IACA echo %date% %time% - Script AfterDeploy - Lancement de Auto Install IACA >> C:\imageresults.txt 2>&1 Auto_Install_Client.exe /NOREBOOT /YES /AM=N echo %date% %time% - Script AfterDeploy - Fin Auto Install IACA >> C:\imageresults.txt 2>&1 cd .. echo %date% %time% - Script AfterDeploy - Fermeture de script AfterDeploy.cmd >> C:\imageresults.txt 2>&1 exit
-
RE: Remove Legacy client and replace with latest new client?
@Wayne-Workman https://forums.fogproject.org/topic/6353/upgrade-client-from-0-9-7-to-0-9-9/3
I don’t know yet how it happened I don’t have this on every host.
Maybe I am just unlucky. lol -
Upgrade client from 0.9.7 to 0.9.9
Hello,
I just find out that i have 2 “Fog Service” installation in add/remove software panel on some computer. One line for 0.9.7 and one other for 0.9.9.
I can remove the 0.9.7 manually without impacting the 0.9.9.Should I run script to remove the 0.9.7 via GPO or will this be fixed and installing new client will remove all version of the client in the list ?
Thank you.
-
RE: Remove Legacy client and replace with latest new client?
Here is the new version using robza command for removing the old client that makes.
We reduce a bit the size of the script this way and I just realized that one IF was useless.
I hope I didn’t miss something because I am putting it in GPO ! lol::v3.1 - Thanks to Wayne Workman, Robza set programpath=%programfiles(x86)% IF %PROCESSOR_ARCHITECTURE%==x86 set programpath=%programfiles% IF EXIST "%programpath%\FOG\fog.ca.cer" GOTO END set FogServerIP=fog-server start /wait wmic product where "Version like '3.0.29' and name like 'FOG Service'" call uninstall /nointeractive start /wait bitsadmin /transfer FOGService /download /priority normal http://%FogServerIP%/fog/client/FOGService.msi %temp%\FOGService.msi start /wait msiexec /i %temp%\FOGService.msi /quiet WEBADDRESS="%FogServerIP%" :END
Just found a bug on my side.
Client 0.9.9 doesn’t remove or upgrade version 0.9.7 and I end with 2 “FOG Service” in add/remove software panel.
Removing the 0.9.7 doesn’t impact the install of the 0.9.9.
Maybe it’s something to add to script. -
RE: Remove Legacy client and replace with latest new client?
@robza said:
wmic product where “name = ‘FOG Service’” call uninstall /nointeractive
I tested twice and it removes the new client even after I checked that name was “FOGService” without space.
C:\Users\administrateur>wmic product where "name = 'FOG Service'" call uninstall Exécution (\\MANAGEMENT7\ROOT\CIMV2:Win32_Product.IdentifyingNumber="{FA5F2860-A 80B-46B9-9EF9-8228C3E9A663}",Name="FOG Service",Version="0.9.9")->Uninstall() Méthode exécutée. Paramètres de sortie : instance of __PARAMETERS { ReturnValue = 0; };
-
RE: Remove Legacy client and replace with latest new client?
@Wayne-Workman Wasn’t in same high school. I didn’t create new DNS entry yet. I changed just to test the script. I’ll set fog-server right now ! lol
I just tested my script after installing old client and all look to work.I just installed the msi stored on windows and it’s smaller than the one in SVN but has the same version… Exactly 3ko less…
Who the hell repack the client and don’t change the version ?Here is the one I had : 0_1450198784192_FOG Service Installer Old.msi 784 ko
Anyway, script works fine using “IdentifyingNumber”.
@Kiweegie I only had this when old client wasn’t removed.
-
RE: Remove Legacy client and replace with latest new client?
@Wayne-Workman I’ll work a bit more on the script.
edit :IF %PROCESSOR_ARCHITECTURE%==AMD64 set programpath=%programfiles(x86)% IF %PROCESSOR_ARCHITECTURE%==x86 set programpath=%programfiles% IF EXIST "%programpath%\FOG\fog.ca.cer" GOTO END set FogServerIP=fogserver set GetID=wmic product where "Version like '3.0.29' and name like 'FOG Service'" get IdentifyingNumber for /F "skip=1 delims=" %%i in ('%GetID%') do if not defined ID set "ID=%%i" IF "%ID%" NEQ "" start /wait msiexec /x %ID% /q start /wait bitsadmin /transfer FOGService /download /priority normal http://%FogServerIP%/fog/client/FOGService.msi %temp%\FOGService.msi start /wait msiexec /i %temp%\FOGService.msi /quiet WEBADDRESS="%FogServerIP%" :END
This should works but I don’t know wwhy my download end in queue when there is nothing else to do and I can’t install client silently… I love computers…
-
RE: Remove Legacy client and replace with latest new client?
@Wayne-Workman I don’t know the use of “setlocal”. I did my best keeping it since script wasn’t working at all without but I start to think it’s messing somewhere.
Maybe the “start /wait” is ignored because of this ?
I haven’t test it via GPO since my simple one made before was working fine but had to put all msi with it. -
RE: Remove Legacy client and replace with latest new client?
@Wayne-Workman Downloading the client from server wasn’t something I have think about. Nice one.
It’s not “fog.ca.cer” that we should look for instead of “fog.ca” ?
I don’t think to have %ProgramFiles(x86)% under my 32 bits OS !I go lunch and I’ll look at this part this afternoon if you don’t do it before me.
edit :
IF %PROCESSOR_ARCHITECTURE%==amd64 SET programpath=Program Files ^(x86^) IF %PROCESSOR_ARCHITECTURE%==x86 SET programpath=Program Files IF NOT EXIST "%systemdrive%\%programpath%\FOG\fog.ca.cer" ( set FogServerIP=fog-server set GetID=wmic product where "Version like '3.0.29' and name like 'FOG Service'" get IdentifyingNumber for /F "skip=1 delims=" %%i in ('%GetID%') do if not defined ID set "ID=%%i" setlocal IF "%ID%" NEQ "" start /wait msiexec /x %ID% /q start /wait bitsadmin /transfer FOGService /download /priority normal http://%FogServerIP%/fog/client/FOGService.msi %temp%\FOGService.msi start /wait msiexec /i %temp%\FOGService.msi /quiet WEBADDRESS="%FogServerIP%" endlocal )
“set” doesn’t look to work when put after “setlocal” for me so I have moved it upper…
How are you sure that old client is version 3.0.29 ? -
RE: Migrate PM to VM 1.2.0
If you don’t have too much images, here is how I do :
- install your new server with different IP (old server will still be usable and never think you won’t need to deploy. I did once… 15 computers needed it…)
- then there is 2 way for images :
- Mount the directory on new server
mkdir <directoryname> sudo mount -t nfs -o rw <OldFogServerIP>:/images /home/<youruser>/<directoryname>/ cp -r <directoryname>/ Images/
OR
- REPLICATION !!!
Add new server storage in same group as the storage of the old storage under old GUI.
Don’t set new storage as MASTER or… you are dead ! lol
Check logs : /opt/fog/log/fogreplicator.log ou in GUI http://fogserver/fog/management/index.php?node=about&sub=log then “Image Replicator”.(OR… the most simple, use Winscp ! lol)
For the host :
Export from old server : Report Management -> Host List -> Format CSV
Edit the file to have : “MAC Address (ie: 00:11:22:33:44:55) *”,“Hostname *”,“IP Address”,“Description”,“Image ID”*These two things can be enough
Don’t leave this line in it.
Import in new FOG server : Host Management -> Import Hosts
You will have to remake images on GUI (unless you play with SQL) but during copy, you can do it.
-
RE: Remove Legacy client and replace with latest new client?
@Wayne-Workman I don’t know what change in old client but I wasn’t able to remove it using the msi of the “old client” freshly downloaded from GUI.
I had to use the .msi stored by system.Is there edit made in the last “old client” ?
-
RE: FOG 2.0 request: Advanced host naming
@george1421 Room number (or room name) is most of time in group. That was my point. If you ask group before name (I know it’s stupid), you will be able to find out name I need using concatenation of the group name and a split on other computer in group taking the max of “name” less “group”.
New Host Name = Group Name + (max (Group Name removed from the list of other computer in group))
I don’t know if you understand me… lol
Something like this if name is “create” during registration.
Other way is just rename every host in group during registration base on registration date. Oldest get the lowest number.I think we both like geeking ! lol
-
RE: Remove Legacy client and replace with latest new client?
I just made a .bat with this inside and it looks to work fine.
@echo off msiexec /qn /x "FOG Service Installer.msi" msiexec /qn /i "FOGService.msi"
Thank you.