@Jbob
This team/community is great! Thank you Jbob!
Posts made by networkguy
-
RE: Fog Client - Snapins run after computer rename/domain join
-
RE: Fog Client - Snapins run after computer rename/domain join
@Jbob
If the hostname needs to be updated or the machine needs to be joined to the domain along with the accommodating reboot will the other modules continue to run until the computer is shutdown? If the other modules know to stop processing since a reboot is needed from a previous module, that may fix the issue I’m running into. Below is a fog.log from one of my deployments earlier today. The batch file to re-license Office 2013 with our KMS server and the powershell script to update the computer’s description didn’t work yesterday until I put in those first two you will see that require reboots.
5/25/2016 11:29 AM Main Overriding exception handling 5/25/2016 11:29 AM Main Bootstrapping Zazzles 5/25/2016 11:29 AM Controller Initialize 5/25/2016 11:29 AM Entry Creating obj 5/25/2016 11:29 AM Controller Start 5/25/2016 11:29 AM Service Starting service 5/25/2016 11:29 AM Bus Became bus server 5/25/2016 11:29 AM Bus { "self": true, "channel": "Status", "data": "{\r\n \"action\": \"load\"\r\n}" } 5/25/2016 11:29 AM Bus Emmiting message on channel: Status ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:29 AM Client-Info Version: 0.10.6 5/25/2016 11:29 AM Client-Info OS: Windows 5/25/2016 11:29 AM Middleware::Authentication Waiting for authentication timeout to pass 5/25/2016 11:29 AM Middleware::Communication Download: http://myfogserver/fog/management/other/ssl/srvpublic.crt 5/25/2016 11:30 AM Data::RSA FOG Server CA cert found 5/25/2016 11:30 AM Middleware::Authentication Cert OK 5/25/2016 11:30 AM Middleware::Authentication ERROR: Could not get security token 5/25/2016 11:30 AM Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'. 5/25/2016 11:30 AM Middleware::Communication POST URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService 5/25/2016 11:30 AM Middleware::Response Success 5/25/2016 11:30 AM Middleware::Authentication Authenticated 5/25/2016 11:30 AM Bus Registering ParseBus in channel Power 5/25/2016 11:30 AM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json 5/25/2016 11:30 AM Middleware::Response Success 5/25/2016 11:30 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?clientver&newService&json 5/25/2016 11:30 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?newService&json 5/25/2016 11:30 AM Service Creating user agent cache 5/25/2016 11:30 AM Middleware::Response Invalid time 5/25/2016 11:30 AM Middleware::Response No Printers ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:30 AM Client-Info Client Version: 0.10.6 5/25/2016 11:30 AM Client-Info Client OS: Windows 5/25/2016 11:30 AM Client-Info Server Version: 7659 5/25/2016 11:30 AM Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:30 AM Client-Info Client Version: 0.10.6 5/25/2016 11:30 AM Client-Info Client OS: Windows 5/25/2016 11:30 AM Client-Info Server Version: 7659 5/25/2016 11:30 AM Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:30 AM Client-Info Client Version: 0.10.6 5/25/2016 11:30 AM Client-Info Client OS: Windows 5/25/2016 11:30 AM Client-Info Server Version: 7659 5/25/2016 11:30 AM Middleware::Response Success 5/25/2016 11:30 AM HostnameChanger Checking Hostname 5/25/2016 11:30 AM HostnameChanger Removing host from active directory 5/25/2016 11:30 AM HostnameChanger The machine is not currently joined to a domain, code = 2692 5/25/2016 11:30 AM HostnameChanger Renaming host to MYPC-23 5/25/2016 11:30 AM Power Creating shutdown request 5/25/2016 11:30 AM Power Parameters: /r /c "FOG needs to rename your computer" /t 0 5/25/2016 11:30 AM HostnameChanger Unknown Return Code: 53 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:30 AM Client-Info Client Version: 0.10.6 5/25/2016 11:30 AM Client-Info Client OS: Windows 5/25/2016 11:30 AM Client-Info Server Version: 7659 5/25/2016 11:30 AM Middleware::Response Success 5/25/2016 11:30 AM SnapinClient Snapin Found: 5/25/2016 11:30 AM SnapinClient ID: 116 5/25/2016 11:30 AM SnapinClient RunWith: powershell.exe 5/25/2016 11:30 AM SnapinClient RunWithArgs: -ExecutionPolicy Bypass -NoProfile -File 5/25/2016 11:30 AM SnapinClient Name: 1_run-before-domain-join 5/25/2016 11:30 AM SnapinClient File: Update-ComputerDescription-MYPC.ps1 5/25/2016 11:30 AM SnapinClient Created: 2016-05-25 10:33:35 5/25/2016 11:30 AM SnapinClient Args: 5/25/2016 11:30 AM SnapinClient Action: reboot 5/25/2016 11:30 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=116 5/25/2016 11:30 AM SnapinClient C:\Program Files (x86)\FOG\tmp\Update-ComputerDescription-MYPC.ps1 5/25/2016 11:30 AM Bus { "self": true, "channel": "Notification", "data": "{\r\n \"title\": \"Installing 1_run-before-domain-join\",\r\n \"message\": \"Please do not shutdown until this is completed\",\r\n \"subjectID\": \"snapin-1_run-before-domain-join\"\r\n}" } 5/25/2016 11:30 AM Bus Emmiting message on channel: Notification 5/25/2016 11:30 AM SnapinClient Starting snapin... 5/25/2016 11:30 AM SnapinClient Snapin finished 5/25/2016 11:30 AM SnapinClient Return Code: 0 5/25/2016 11:30 AM Bus { "self": true, "channel": "Notification", "data": "{\r\n \"title\": \"1_run-before-domain-join Installed\",\r\n \"message\": \"Installation has finished and is now ready for use\",\r\n \"subjectID\": \"snapin-1_run-before-domain-join\"\r\n}" } 5/25/2016 11:30 AM Bus Emmiting message on channel: Notification 5/25/2016 11:30 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=116&exitcode=0&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json 5/25/2016 11:30 AM User ERROR: Unable to get logged in users 5/25/2016 11:30 AM User ERROR: A system shutdown is in progress. (Exception from HRESULT: 0x8007045B) 5/25/2016 11:30 AM Power Creating shutdown request 5/25/2016 11:30 AM Power Parameters: /r /c "Snapin requested restart" /t 0 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:30 AM Client-Info Client Version: 0.10.6 5/25/2016 11:30 AM Client-Info Client OS: Windows 5/25/2016 11:30 AM Client-Info Server Version: 7659 5/25/2016 11:30 AM Middleware::Response No Printers 5/25/2016 11:30 AM Service ERROR: Unable to run module 5/25/2016 11:30 AM Service ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -----------------------------------GreenFOG----------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:30 AM Client-Info Client Version: 0.10.6 5/25/2016 11:30 AM Client-Info Client OS: Windows 5/25/2016 11:30 AM Client-Info Server Version: 7659 5/25/2016 11:30 AM Middleware::Response No actions ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:30 AM Client-Info Client Version: 0.10.6 5/25/2016 11:30 AM Client-Info Client OS: Windows 5/25/2016 11:30 AM Client-Info Server Version: 7659 5/25/2016 11:30 AM Middleware::Response Success 5/25/2016 11:30 AM User ERROR: Unable to get logged in users 5/25/2016 11:30 AM User ERROR: A system shutdown is in progress. (Exception from HRESULT: 0x8007045B) ------------------------------------------------------------------------------ 5/25/2016 11:30 AM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json 5/25/2016 11:30 AM Middleware::Response Success 5/25/2016 11:30 AM Service Sleeping for 137 seconds 5/25/2016 11:31 AM Main Overriding exception handling 5/25/2016 11:31 AM Main Bootstrapping Zazzles 5/25/2016 11:31 AM Controller Initialize 5/25/2016 11:31 AM Entry Creating obj 5/25/2016 11:31 AM Controller Start 5/25/2016 11:31 AM Service Starting service 5/25/2016 11:32 AM Bus Became bus server 5/25/2016 11:32 AM Bus { "self": true, "channel": "Status", "data": "{\r\n \"action\": \"load\"\r\n}" } 5/25/2016 11:32 AM Bus Emmiting message on channel: Status ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:32 AM Client-Info Version: 0.10.6 5/25/2016 11:32 AM Client-Info OS: Windows 5/25/2016 11:32 AM Middleware::Authentication Waiting for authentication timeout to pass 5/25/2016 11:32 AM Middleware::Communication Download: http://myfogserver/fog/management/other/ssl/srvpublic.crt 5/25/2016 11:32 AM Data::RSA FOG Server CA cert found 5/25/2016 11:32 AM Middleware::Authentication Cert OK 5/25/2016 11:32 AM Middleware::Communication POST URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService 5/25/2016 11:32 AM Middleware::Response Success 5/25/2016 11:32 AM Middleware::Authentication Authenticated 5/25/2016 11:32 AM Bus Registering ParseBus in channel Power 5/25/2016 11:32 AM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json 5/25/2016 11:32 AM Middleware::Response Success 5/25/2016 11:32 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?clientver&newService&json 5/25/2016 11:32 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?newService&json 5/25/2016 11:32 AM Service Creating user agent cache 5/25/2016 11:32 AM Middleware::Response Invalid time 5/25/2016 11:32 AM Middleware::Response No Printers ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:32 AM Client-Info Client Version: 0.10.6 5/25/2016 11:32 AM Client-Info Client OS: Windows 5/25/2016 11:32 AM Client-Info Server Version: 7659 5/25/2016 11:32 AM Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:32 AM Client-Info Client Version: 0.10.6 5/25/2016 11:32 AM Client-Info Client OS: Windows 5/25/2016 11:32 AM Client-Info Server Version: 7659 5/25/2016 11:32 AM Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:32 AM Client-Info Client Version: 0.10.6 5/25/2016 11:32 AM Client-Info Client OS: Windows 5/25/2016 11:32 AM Client-Info Server Version: 7659 5/25/2016 11:32 AM Middleware::Response Success 5/25/2016 11:32 AM HostnameChanger Checking Hostname 5/25/2016 11:32 AM HostnameChanger Hostname is correct 5/25/2016 11:32 AM HostnameChanger Success, code = 0 5/25/2016 11:32 AM Power Creating shutdown request 5/25/2016 11:32 AM Power Parameters: /r /c "Host joined to Active Directory, restart required" /t 0 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:32 AM Client-Info Client Version: 0.10.6 5/25/2016 11:32 AM Client-Info Client OS: Windows 5/25/2016 11:32 AM Client-Info Server Version: 7659 5/25/2016 11:32 AM Middleware::Response Success 5/25/2016 11:32 AM SnapinClient Snapin Found: 5/25/2016 11:32 AM SnapinClient ID: 117 5/25/2016 11:32 AM SnapinClient RunWith: powershell.exe 5/25/2016 11:32 AM SnapinClient RunWithArgs: -ExecutionPolicy Bypass -NoProfile -File 5/25/2016 11:32 AM SnapinClient Name: 2_run-before-domain-join 5/25/2016 11:32 AM SnapinClient File: Update-ComputerDescription-MYPC.ps1 5/25/2016 11:32 AM SnapinClient Created: 2016-05-25 10:33:35 5/25/2016 11:32 AM SnapinClient Args: 5/25/2016 11:32 AM SnapinClient Action: reboot 5/25/2016 11:32 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=117 5/25/2016 11:32 AM SnapinClient C:\Program Files (x86)\FOG\tmp\Update-ComputerDescription-MYPC.ps1 5/25/2016 11:32 AM Bus { "self": true, "channel": "Notification", "data": "{\r\n \"title\": \"Installing 2_run-before-domain-join\",\r\n \"message\": \"Please do not shutdown until this is completed\",\r\n \"subjectID\": \"snapin-2_run-before-domain-join\"\r\n}" } 5/25/2016 11:32 AM Bus Emmiting message on channel: Notification 5/25/2016 11:32 AM SnapinClient Starting snapin... 5/25/2016 11:32 AM SnapinClient Snapin finished 5/25/2016 11:32 AM SnapinClient Return Code: 0 5/25/2016 11:32 AM Bus { "self": true, "channel": "Notification", "data": "{\r\n \"title\": \"2_run-before-domain-join Installed\",\r\n \"message\": \"Installation has finished and is now ready for use\",\r\n \"subjectID\": \"snapin-2_run-before-domain-join\"\r\n}" } 5/25/2016 11:32 AM Bus Emmiting message on channel: Notification 5/25/2016 11:32 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=117&exitcode=0&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json 5/25/2016 11:32 AM User ERROR: Unable to get logged in users 5/25/2016 11:32 AM User ERROR: A system shutdown is in progress. (Exception from HRESULT: 0x8007045B) 5/25/2016 11:32 AM Power Creating shutdown request 5/25/2016 11:32 AM Power Parameters: /r /c "Snapin requested restart" /t 0 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:32 AM Client-Info Client Version: 0.10.6 5/25/2016 11:32 AM Client-Info Client OS: Windows 5/25/2016 11:32 AM Client-Info Server Version: 7659 5/25/2016 11:32 AM Middleware::Response No Printers 5/25/2016 11:32 AM Service ERROR: Unable to run module 5/25/2016 11:32 AM Service ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -----------------------------------GreenFOG----------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:32 AM Client-Info Client Version: 0.10.6 5/25/2016 11:32 AM Client-Info Client OS: Windows 5/25/2016 11:32 AM Client-Info Server Version: 7659 5/25/2016 11:32 AM Middleware::Response No actions ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:32 AM Client-Info Client Version: 0.10.6 5/25/2016 11:32 AM Client-Info Client OS: Windows 5/25/2016 11:32 AM Client-Info Server Version: 7659 5/25/2016 11:32 AM Middleware::Response Success 5/25/2016 11:32 AM User ERROR: Unable to get logged in users 5/25/2016 11:32 AM User ERROR: A system shutdown is in progress. (Exception from HRESULT: 0x8007045B) ------------------------------------------------------------------------------ 5/25/2016 11:32 AM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json 5/25/2016 11:32 AM Middleware::Response Success 5/25/2016 11:32 AM Service Sleeping for 67 seconds 5/25/2016 11:34 AM Main Overriding exception handling 5/25/2016 11:34 AM Main Bootstrapping Zazzles 5/25/2016 11:34 AM Controller Initialize 5/25/2016 11:34 AM Entry Creating obj 5/25/2016 11:34 AM Controller Start 5/25/2016 11:34 AM Service Starting service 5/25/2016 11:34 AM Bus Became bus server 5/25/2016 11:34 AM Bus { "self": true, "channel": "Status", "data": "{\r\n \"action\": \"load\"\r\n}" } 5/25/2016 11:34 AM Bus Emmiting message on channel: Status ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:34 AM Client-Info Version: 0.10.6 5/25/2016 11:34 AM Client-Info OS: Windows 5/25/2016 11:34 AM Middleware::Authentication Waiting for authentication timeout to pass 5/25/2016 11:34 AM Middleware::Communication Download: http://myfogserver/fog/management/other/ssl/srvpublic.crt 5/25/2016 11:34 AM Data::RSA FOG Server CA cert found 5/25/2016 11:34 AM Middleware::Authentication Cert OK 5/25/2016 11:34 AM Middleware::Communication POST URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService 5/25/2016 11:34 AM Middleware::Response Success 5/25/2016 11:34 AM Middleware::Authentication Authenticated 5/25/2016 11:34 AM Bus Registering ParseBus in channel Power 5/25/2016 11:34 AM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json 5/25/2016 11:34 AM Middleware::Response Success 5/25/2016 11:34 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?clientver&newService&json 5/25/2016 11:34 AM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?newService&json 5/25/2016 11:34 AM Service Creating user agent cache 5/25/2016 11:34 AM Middleware::Response Invalid time 5/25/2016 11:34 AM Middleware::Response No Printers ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:34 AM Client-Info Client Version: 0.10.6 5/25/2016 11:34 AM Client-Info Client OS: Windows 5/25/2016 11:34 AM Client-Info Server Version: 7659 5/25/2016 11:34 AM Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:34 AM Client-Info Client Version: 0.10.6 5/25/2016 11:34 AM Client-Info Client OS: Windows 5/25/2016 11:34 AM Client-Info Server Version: 7659 5/25/2016 11:34 AM Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:34 AM Client-Info Client Version: 0.10.6 5/25/2016 11:34 AM Client-Info Client OS: Windows 5/25/2016 11:34 AM Client-Info Server Version: 7659 5/25/2016 11:34 AM Middleware::Response Success 5/25/2016 11:34 AM HostnameChanger Checking Hostname 5/25/2016 11:34 AM HostnameChanger Hostname is correct 5/25/2016 11:34 AM HostnameChanger Host is already joined to target domain ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 5/25/2016 11:34 AM Client-Info Client Version: 0.10.6 5/25/2016 11:34 AM Client-Info Client OS: Windows 5/25/2016 11:34 AM Client-Info Server Version: 7659 5/25/2016 11:34 AM Middleware::Response Success 5/25/2016 11:34 AM SnapinClient Snapin Found: 5/25/2016 11:34 AM SnapinClient ID: 118 5/25/2016 11:34 AM SnapinClient RunWith: 5/25/2016 11:34 AM SnapinClient RunWithArgs: 5/25/2016 11:34 AM SnapinClient Name: License Office 2013 5/25/2016 11:34 AM SnapinClient File: kms_office2013.bat 5/25/2016 11:34 AM SnapinClient Created: 2016-05-25 10:33:35 5/25/2016 11:34 AM SnapinClient Args: 5/25/2016 11:34 AM SnapinClient Action: 5/25/2016 11:34 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=118 5/25/2016 11:34 AM SnapinClient C:\Program Files (x86)\FOG\tmp\kms_office2013.bat 5/25/2016 11:34 AM Bus { "self": true, "channel": "Notification", "data": "{\r\n \"title\": \"Installing License Office 2013\",\r\n \"message\": \"Please do not shutdown until this is completed\",\r\n \"subjectID\": \"snapin-License Office 2013\"\r\n}" } 5/25/2016 11:34 AM Bus Emmiting message on channel: Notification 5/25/2016 11:34 AM SnapinClient Starting snapin... 5/25/2016 11:34 AM SnapinClient Snapin finished 5/25/2016 11:34 AM SnapinClient Return Code: 0 5/25/2016 11:34 AM Bus { "self": true, "channel": "Notification", "data": "{\r\n \"title\": \"License Office 2013 Installed\",\r\n \"message\": \"Installation has finished and is now ready for use\",\r\n \"subjectID\": \"snapin-License Office 2013\"\r\n}" } 5/25/2016 11:34 AM Bus Emmiting message on channel: Notification 5/25/2016 11:34 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=118&exitcode=0&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json 5/25/2016 11:34 AM SnapinClient Snapin Found: 5/25/2016 11:34 AM SnapinClient ID: 119 5/25/2016 11:34 AM SnapinClient RunWith: powershell.exe 5/25/2016 11:34 AM SnapinClient RunWithArgs: -ExecutionPolicy Bypass -NoProfile -File 5/25/2016 11:34 AM SnapinClient Name: Update Computer Description - MYPC (try2) 5/25/2016 11:34 AM SnapinClient File: Update-ComputerDescription-MYPC.ps1 5/25/2016 11:34 AM SnapinClient Created: 2016-05-25 10:33:35 5/25/2016 11:34 AM SnapinClient Args: 5/25/2016 11:34 AM SnapinClient Action: 5/25/2016 11:34 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=119 5/25/2016 11:34 AM SnapinClient C:\Program Files (x86)\FOG\tmp\Update-ComputerDescription-MYPC.ps1 5/25/2016 11:34 AM Bus { "self": true, "channel": "Notification", "data": "{\r\n \"title\": \"Installing Update Computer Description - MYPC (try2)\",\r\n \"message\": \"Please do not shutdown until this is completed\",\r\n \"subjectID\": \"snapin-Update Computer Description - MYPC (try2)\"\r\n}" } 5/25/2016 11:34 AM Bus Emmiting message on channel: Notification 5/25/2016 11:34 AM SnapinClient Starting snapin... 5/25/2016 11:35 AM SnapinClient Snapin finished 5/25/2016 11:35 AM SnapinClient Return Code: 0 5/25/2016 11:35 AM Bus { "self": true, "channel": "Notification", "data": "{\r\n \"title\": \"Update Computer Description - MYPC (try2) Installed\",\r\n \"message\": \"Installation has finished and is now ready for use\",\r\n \"subjectID\": \"snapin-Update Computer Description - MYPC (try2)\"\r\n}" } 5/25/2016 11:35 AM Bus Emmiting message on channel: Notification 5/25/2016 11:35 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=119&exitcode=0&mac=A4:1F:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json ------------------------------------------------------------------------------
-
RE: Problem adding hosts to a group
@Tom-Elliott Sounds good. I seem to have lost the ability to close the bug threads I’ve created. Call this one closed and thanks again!
-
RE: Problem adding hosts to a group
I didn’t really have anything in there worth saving I don’t think. With deleting that table, might I run into key relationship issues with other tables? I have a full DB backup taken just before the upgrade about 30 minutes ago.
select statements taken moments before dropping the table.
mysql> select * from groupMembers; +------+----------+-----------+ | gmID | gmHostID | gmGroupID | +------+----------+-----------+ | 3 | 5 | 3 | | 5 | 25 | 4 | +------+----------+-----------+ 2 rows in set (0.00 sec) mysql> select * from groupMembers \G *************************** 1. row *************************** gmID: 3 gmHostID: 5 gmGroupID: 3 *************************** 2. row *************************** gmID: 5 gmHostID: 25 gmGroupID: 4 2 rows in set (0.00 sec)
-
RE: Problem adding hosts to a group
drop table groupMembers; CREATE TABLE `groupMembers` ( `gmID` int(11) NOT NULL AUTO_INCREMENT, `gmHostID` int(11) NOT NULL, `gmGroupID` int(11) NOT NULL, PRIMARY KEY (`gmID`), UNIQUE KEY `gmHostID` (`gmHostID`,`gmGroupID`), UNIQUE KEY `gmHostID_2` (`gmHostID`,`gmGroupID`), KEY `new_index` (`gmHostID`), KEY `new_index1` (`gmGroupID`) ) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC ;
All is well now. Thanks again!
-
RE: Problem adding hosts to a group
I just updated to git version 7849 and am able to reproduce the problem. If there are any logs/screenshots that you would like me to include please let me know. Thanks!
-
RE: Fog Client - Snapins run after computer rename/domain join
The FOG server is git version 7659.
The FOG client version is 0.10.6.
I am deploying Windows 7 64bit. -
Problem adding hosts to a group
When I try to add multiple hosts to a new group only one host is added. If I add hosts after the group is created it also seems to only keep one of the hosts in the group. I’m running git version 7659. I don’t see any errors in the apache error logs.
-
Fog Client - Snapins run after computer rename/domain join
I seem to be having some issues where snapins don’t run or perform as expected. From what it appears it may be due to them running before the computer is renamed and joined to the network. Is there a way to delay them from running until after that has been completed? What I have done which seems to be a functional work around is running two snapins named appropriately so they run first that I have set to ‘Reboot after Install’ in the FOG GUI that shell out some needless commands.
I am relying on FOG rather than sysprep to handle the naming and domain joining functionality at the moment.
The latest work flow that I have been using is to setup the machine as needed in a VM with some base software, test, cleanup profiles, chkdsk, defrag, and then run the Prepare_for_fog.bat as administrator which makes some changes to the registry (I stripped out some stuff that was in there and needed for our Antivirus/Dell KACE/Helpdesk software), installs the FOG client, and then runs sysprep.
The script could use some work, please don’t judge lack of variables/etc, for the most part it works well for me at the moment.
Unattend.xml
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <RegisteredOrganization>Microsoft</RegisteredOrganization> <RegisteredOwner>AutoBVT</RegisteredOwner> <TimeZone>Eastern Standard Time</TimeZone> <DoNotCleanTaskBar>true</DoNotCleanTaskBar> <CopyProfile>false</CopyProfile> <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> <ShowWindowsLive>false</ShowWindowsLive> <StartPanelOff>false</StartPanelOff> <ComputerName>*</ComputerName> </component> <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Description>EnableAdmin</Description> <Order>1</Order> <Path>cmd /c net user Administrator /active:yes</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Description>EnableAdmin_ploc</Description> <Order>2</Order> <Path>cmd /c net user Administrator_ploc /active:yes</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Description>UnfilterAdministratorToken</Description> <Order>3</Order> <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path> </RunSynchronousCommand> </RunSynchronous> </component> <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <InputLocale>0409:00000409</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> <component name="Microsoft-Windows-TapiSetup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <TapiConfigured>0</TapiConfigured> <TapiUnattendLocation> <AreaCode>""</AreaCode> <CountryOrRegion>1</CountryOrRegion> <LongDistanceAccess>9</LongDistanceAccess> <OutsideAccess>9</OutsideAccess> <PulseOrToneDialing>1</PulseOrToneDialing> <DisableCallWaiting>""</DisableCallWaiting> <InternationalCarrierCode>""</InternationalCarrierCode> <LongDistanceCarrierCode>""</LongDistanceCarrierCode> <Name>Default</Name> </TapiUnattendLocation> </component> <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DisableSR>1</DisableSR> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <UserAccounts> <AdministratorPassword> <Value>blahdablahblahblah</Value> <PlainText>false</PlainText> </AdministratorPassword> <LocalAccounts> <LocalAccount wcm:action="add"> <Description>Administrator</Description> <DisplayName>Administrator</DisplayName> <Group>Administrators</Group> <Name>Administrator</Name> </LocalAccount> </LocalAccounts> </UserAccounts> <AutoLogon> <Enabled>false</Enabled> <Username>Administrator</Username> <Domain></Domain> <Password> <Value>blahdablahblahblah</Value> <PlainText>false</PlainText> </Password> <LogonCount>1</LogonCount> </AutoLogon> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Work</NetworkLocation> <ProtectYourPC>1</ProtectYourPC> <SkipUserOOBE>true</SkipUserOOBE> </OOBE> <RegisteredOrganization>MyOrg</RegisteredOrganization> <RegisteredOwner>MyDept</RegisteredOwner> <TimeZone>Eastern Standard Time</TimeZone> </component> <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <InputLocale>en-US</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> </settings> <cpi:offlineImage cpi:source="catalog://myserver/myshare$/operating systems/capture_win7x64/capture_win7x64_capture_win7x64ddrive.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
SetupComplete.cmd
rd /s /q c:\minint rd /s /q c:\_SMSTaskSequence rd /s /q c:\fog_prepare del "C:\Windows\System32\Sysprep\Unattend.xml" /f /q del "C:\Windows\Panther\Unattend.xml" /f /q "C:\Windows\System32\net.exe" user tempaccount /delete "C:\Windows\System32\sc.exe" config "FogService" start= auto START C:\Drivers\SAD3-130825\DP_Install_Tool.cmd /CR
Prepare_for_fog.bat
@ECHO OFF echo. echo. echo Are you running this as an Administrator pause echo. echo Checking rearm count: cscript C:\Windows\SysWOW64\slmgr.vbs /dlv | find "Remaining Windows rearm count" echo. echo If the rearm count is 0 then this will not work. Either try: slmgr /act echo or you can reinstall Windows or remove the WPA registry hive. pause echo. echo Are you sure you want to do this pause echo. echo. echo Remove Interactive Login (this affects runonce sysprep settings if enabled. Once back on the domain Group Policy will reconfigure this.) reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v legalnoticecaption /f reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v legalnoticetext /f echo. echo. Update Registry for Storage Controllers (sysprep may wipe this out?) :CHECKREG1 reg query HKLM\SYSTEM\CurrentControlSet\Services\iaStor if %ERRORLEVEL% EQU 0 goto UPDATEREG1 GOTO CHECKREG2 :UPDATEREG1 reg add "HKLM\SYSTEM\CurrentControlSet\Services\iaStor" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet001\Services\iaStor" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet002\Services\iaStor" /v Start /t REG_DWORD /d 0 /f :CHECKREG2 reg query HKLM\SYSTEM\CurrentControlSet\Services\iaStorV if %ERRORLEVEL% EQU 0 goto UPDATEREG2 GOTO CHECKREG3 :UPDATEREG2 reg add "HKLM\SYSTEM\CurrentControlSet\Services\iaStorV" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet001\Services\iaStorV" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet002\Services\iaStorV" /v Start /t REG_DWORD /d 0 /f :CHECKREG3 reg query HKLM\SYSTEM\CurrentControlSet\Services\LSI_SAS2 if %ERRORLEVEL% EQU 0 goto UPDATEREG3 GOTO CHECKREG4 :UPDATEREG3 reg add "HKLM\SYSTEM\CurrentControlSet\Services\LSI_SAS2" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet001\Services\LSI_SAS2" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet002\Services\LSI_SAS2" /v Start /t REG_DWORD /d 0 /f :CHECKREG4 reg query HKLM\SYSTEM\CurrentControlSet\Services\LSI_SAS if %ERRORLEVEL% EQU 0 goto UPDATEREG4 GOTO CHECKREG5 :UPDATEREG4 reg add "HKLM\SYSTEM\CurrentControlSet\Services\LSI_SAS" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet001\Services\LSI_SAS" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet002\Services\LSI_SAS" /v Start /t REG_DWORD /d 0 /f :CHECKREG5 reg query HKLM\SYSTEM\CurrentControlSet\Services\LSI_SCSI if %ERRORLEVEL% EQU 0 goto UPDATEREG5 GOTO CHECKREG6 :UPDATEREG5 reg add "HKLM\SYSTEM\CurrentControlSet\Services\LSI_SCSI" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet001\Services\LSI_SCSI" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet002\Services\LSI_SCSI" /v Start /t REG_DWORD /d 0 /f :CHECKREG6 reg query HKLM\SYSTEM\CurrentControlSet\Services\msahci if %ERRORLEVEL% EQU 0 goto UPDATEREG6 GOTO CHECKREG7 :UPDATEREG6 reg add "HKLM\SYSTEM\CurrentControlSet\Services\msahci" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet001\Services\msahci" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet002\Services\msahci" /v Start /t REG_DWORD /d 0 /f :CHECKREG7 reg query HKLM\SYSTEM\CurrentControlSet\Services\pciide if %ERRORLEVEL% EQU 0 goto UPDATEREG7 GOTO DONEREG :UPDATEREG7 reg add "HKLM\SYSTEM\CurrentControlSet\Services\pciide" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet001\Services\pciide" /v Start /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\ControlSet002\Services\pciide" /v Start /t REG_DWORD /d 0 /f :DONEREG mkdir C:\fog_prepare net use x: "\\server\share$\64 Bit Sysprep\prep_fog12" "apasswordforauser" /user:mydomain\auser PING 127.0.0.1 -n 1 -w 2000 >NUL x: copy /Y * C:\fog_prepare\ PING 127.0.0.1 -n 1 -w 2000 >NUL c: net use x: /delete /yes mkdir C:\Drivers\ net use x: "\\server\share$\64 Bit Sysprep\Drivers" "apasswordforauser" /user:mydomain\auser PING 127.0.0.1 -n 1 -w 2000 >NUL x: xcopy /s/e/c/i/h/y x:\* C:\Drivers\ PING 127.0.0.1 -n 1 -w 2000 >NUL c: net use x: /delete /yes net use \\server\share /delete /yes c: cd \fog_prepare echo Install FOG Client msiexec /i FOGService.msi /quiet USETRAY="0" HTTPS="0" WEBADDRESS="myfogserver" WEBROOT="/fog" ROOTLOG="1" echo. echo Stop the FOGService so it doesn't put us back on the domain bringing back the interactive logon policy which keeps screwing up the sysprep setupcomplete.cmd functionality. net stop "FogService" sc config "FogService" start= disabled echo. echo Copying SetupComplete.cmd to C:\Windows\Setup\Scripts\ move /Y .\SetupComplete.cmd C:\Windows\Setup\Scripts\SetupComplete.cmd echo. echo Running Sysprep move /Y .\Unattend.xml C:\Windows\System32\Sysprep\Unattend.xml "C:\Windows\System32\Sysprep\Sysprep.exe" /oobe /generalize /quiet /shutdown /Unattend:C:\Windows\System32\Sysprep\Unattend.xml
-
RE: ipxe dhcp timeout
@Sebastian-Roth
I picked up on the difference after posting the picture and changed my description slightly. Thank you for pointing that out.I appreciate you spending some time looking into this. One change I made which seems to work at least with this one computer, is changing the authentication order for the switch port. We aren’t really doing dot1x at the moment so it really doesn’t make sense to have the order as it was:
Previous port config(i switched both to mab dot1x):
authentication order dot1x mab
authentication priority dot1x mabAll is well at the moment, I will be changing the rest of the port configs and then follow up with changing our DHCP scopes again to see if any other problematic devices are reported.
-
RE: ipxe dhcp timeout
@george1421
fog server and dhcp server are on the same subnet, the client is on another. We have the dhcp server added on our router using ip helper-address. -
RE: ipxe dhcp timeout
@Sebastian-Roth
I have a very blurry screenshot that shows what I am seeing. I apologize for the quality. I also removed MAC/IP information from it.I do not see the ok after configuring (net0 …)
Pressing ‘s’ to get into the shell followed by dhcp and then chain http://myfogserver/fog/service/ipxe/boot.php does allow me to boot.
Regarding running tcpdump on the FOG server, is that with the assumption that it is our DHCP server? If so then in my case I won’t be able to take that approach as our DHCP runs on our domain controller. As much as I really appreciate this assistance, I’m also slightly hesitant to upload a pcap from our domain controller.
-
RE: ipxe dhcp timeout
@george1421
Great suggestion George, thank you. I will do that in the morning. We will also be attempting to improve upon the way the switches are connected. The computers in question are 6 switches down a stack which are daisy chained together… -
RE: ipxe dhcp timeout
@george1421
Sorry George. It would be helpful to know that we have 2 fog servers up and running. One at .29 that has been in use for many years and 1 at git version 7659. I updated the DHCP settings in our labs scope this morning to use the new server/undionly.kpxe and this issue cropped up. Due to not being able to troubleshoot further today I put the settings back to our old server’s IP/pxelinux.0. -
RE: ipxe dhcp timeout
@george1421
I’m not going to be able to get back to test this today. For now I updated the DHCP settings to use pxelinux.0. I will test with an unmanaged switch tomorrow and report my findings.The device is currently plugged into a Cisco Catalyst.
cisco WS-C3560-48PSThanks!
-
RE: ipxe dhcp timeout
I’m running git version: 7659
Our nac is using mab (mac-auth-bypass) so no supplicant is needed to pxe boot.
-
ipxe dhcp timeout
I’m having a similar behavior as to what was discussed here:
https://forums.fogproject.org/topic/4973/default-ipxe-connection-timeout-on-dell-only/7We have portfast enabled on our switch ports but it seems like ipxe just isn’t getting an IP address quick enough. We have a NAC appliance that delays the assignment of a vlan for a second or two and that seems to be the culprit, when I remove the dot1x configuration from the switch port the machine boots as expected. With the NAC(dot1x) configuration in place, if I press ‘s’ and then enter dhcp followed by the chain command at the ipxe shell I am able to see the boot menu and the machine boots as expected.
The machine in question is a Dell OptiPlex 3010. Is there any way to extend the dhcp timeout?
-
RE: Boot loop
@networkguy
I reverted from /home/fog_web_7727.BACKUP/ and am working ok for the moment. -
RE: Host Screen Resolution
@networkguy
Giving up on this. It seems that I need to be logged in as a user to make this work. When run through any of our scripting tools while the computer is at ctrl-alt-del just doesn’t seem to work. -
Boot loop
After updating to 7729 I am experiencing a boot loop.
Below is the Apache error log:
[Fri May 20 11:31:13 2016] [error] [client 1.1.1.1] PHP Strict Standards: Declaration of PDODB::debug() should be compatible with FOGBase::debug($txt, $data = Array) in /var/www/html/fog/lib/db/pdodb.class.php on line 198
From the client I see the following:
Received DHCP answer on interface net0 tftp://myfogserver/default.ipxe... ok http://myfogserver/fog/service/ipxe/boot.php... ok SQL:: command not found Could not boot: Exec format error (http://ipxe.org/2e022001) ...
When I access http://myfogserver/fog/service/ipxe/boot.php with a browser, this is the top of what is displayed.
SQL: [110] SELECT * FROM `hostMAC` WHERE `hostMAC`.`hmMAC`= AND `hostMAC`.`hmPending`='0' ORDER BY `hostMAC`.`hmID` ASC Params: 0 SQL: [110] SELECT * FROM `hostMAC` WHERE `hostMAC`.`hmPending`='0' AND `hostMAC`.`hmMAC`= ORDER BY `hostMAC`.`hmID` ASC Params: 0 #!ipxe