Jump to content

MoellerAero

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by MoellerAero

  1. Thank you, your suggestion lead me in the right direction. I was right in assuming I had to recompile the .dll for the snapin, but thought putting it on the server was where it was launched - it was actually on the client it needed to be updated. For anyone who wants to fix this, here's the solution - email me ([email protected]) for a copy of the DLL if you aren't able to make it yourself: 1. Copy the directory /fog_0.32/FOG Service/src/FOG_SnapinClient/ from your fog installation to a directory on a Windows PC that has Visual Studio - pretty sure studio express would be sufficient but I haven't tried that since I have the full version. 2. Change the code below to what values you want ( for example, I used r.next(10, 20) ) try { Random r = new Random(); int intSleep = r.Next(350, 500); log(MOD_NAME, "Sleeping for " + intSleep + " seconds."); System.Threading.Thread.Sleep(intSleep * 1000); } catch{} 3. build the solution 4. copy the SnapInClient.dll in the solution directory (/bin/release/snapinclient.dll) to the FOG Directory on the CLIENT TO IMAGE in its Program Files. (for me - C:\Program Files\FOG\) 5. Upload a new image and the next time you deploy the snap in will only sleep for 10-20 seconds before attempting to start your snap ins.
  2. I've got a FOG server up and running and am extremely pleased with everything except for the sleep timer for the SnapIn Client. Is there any way to speed this up? The log in my freshly imaged machines show sleep times of upwards of 500 seconds (8 minutes, really?). I want to set this to something a little more reasonable, say, 10-20 seconds. I've tried to modify the script in "fog_0.32/FOG Service/src/FOG_SnapinClient/MOD_SnapinClient.cs" to decrease the sleep time displayed from (350, 500) to (10, 20). Saved the file, restarted the FOG server. I've also modified the solution with visual studio to recompile the snapin .dlls - still no luck. try { Random r = new Random(); int intSleep = r.Next(350, 500); log(MOD_NAME, "Sleeping for " + intSleep + " seconds."); System.Threading.Thread.Sleep(intSleep * 1000); } catch{} Has anyone had any experience modifying the installation to tweak certain system variables such as this?
×
×
  • Create New...