+ Post New Thread
Results 1 to 4 of 4
O/S Deployment Thread, How to modify SnapIn Client sleep timer? in Technical; I've got a FOG server up and running and am extremely pleased with everything except for the sleep timer for ...
  1. #1

    Join Date
    Mar 2012
    Location
    michigan
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question How to modify SnapIn Client sleep timer?

    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.

    Code:
    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?
    Last edited by MoellerAero; 21st March 2012 at 11:25 PM.

  2. #2
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    815
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    39
    I'm pretty sure that you can adjust this in a config file on the client, but I don't have a client to check.
    Unless you only have a few computers I wouldn't think that a really number like 10 seconds is a good idea, I imagine you could start to overload the webserver and have a negative effect on network performance.

  3. #3

    Join Date
    Mar 2012
    Location
    michigan
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by morganw View Post
    I'm pretty sure that you can adjust this in a config file on the client, but I don't have a client to check.
    Unless you only have a few computers I wouldn't think that a really number like 10 seconds is a good idea, I imagine you could start to overload the webserver and have a negative effect on network performance.
    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 (aepriest@gmail.com) 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) )
    Code:
    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.
    Last edited by MoellerAero; 22nd March 2012 at 04:43 PM.

  4. #4
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    815
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    39
    I'm pretty sure there is a .ini file somewhere on the client that you can alter instead of having to recompile anything.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 3
    Last Post: 20th January 2010, 09:56 PM
  2. How to get started in thin client networking?
    By hunter_alexander in forum Thin Client and Virtual Machines
    Replies: 15
    Last Post: 5th August 2009, 06:56 AM
  3. How to Deploy the ICA Web Client Through Web Interface 4.5
    By cookie_monster in forum Thin Client and Virtual Machines
    Replies: 1
    Last Post: 30th April 2009, 11:14 AM
  4. How to add clients to Altiris Deployment Solution
    By meastaugh1 in forum Thin Client and Virtual Machines
    Replies: 6
    Last Post: 16th May 2007, 10:04 PM
  5. internet on/off how to terminal clients
    By Uraken in forum Thin Client and Virtual Machines
    Replies: 6
    Last Post: 31st March 2007, 03:13 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •