• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. networkguy
    3. Posts
    N
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 41
    • Best 3
    • Controversial 0
    • Groups 0

    Posts made by networkguy

    • RE: Host Screen Resolution

      @Jbob
      Well, still struggling. First off the file I downloaded to be sourced had strangely formatted double quotes so that prevented the file from being interpreted correctly. Fixed that easily with a quick find/replace.

      Secondly, the share that I was running these from appear to not have the appropriate permissions and I had to add in the -ExecutionPolicy Bypass which I completely overlooked the ability to set those options with the GUI (very nice!).

      What I ended up with was putting the file to be sourced in the ps1 that has the resolution I’m looking for and uploading that as a snapin. It runs perfectly fine when I manually download and run on the workstation but it is still giving me an error when running as a FOG snapin.

      Powershell script [Set-800x600.ps1]:

      Function Set-ScreenResolution { 
      param ( 
      [Parameter(Mandatory=$true, 
                 Position = 0)] 
      [int] 
      $Width, 
      [Parameter(Mandatory=$true, 
                 Position = 1)] 
      [int] 
      $Height 
      ) 
      $pinvokeCode = @" 
      using System; 
      using System.Runtime.InteropServices; 
      namespace Resolution 
      { 
          [StructLayout(LayoutKind.Sequential)] 
          public struct DEVMODE1 
          { 
              [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] 
              public string dmDeviceName; 
              public short dmSpecVersion; 
              public short dmDriverVersion; 
              public short dmSize; 
              public short dmDriverExtra; 
              public int dmFields; 
              public short dmOrientation; 
              public short dmPaperSize; 
              public short dmPaperLength; 
              public short dmPaperWidth; 
              public short dmScale; 
              public short dmCopies; 
              public short dmDefaultSource; 
              public short dmPrintQuality; 
              public short dmColor; 
              public short dmDuplex; 
              public short dmYResolution; 
              public short dmTTOption; 
              public short dmCollate; 
              [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] 
              public string dmFormName; 
              public short dmLogPixels; 
              public short dmBitsPerPel; 
              public int dmPelsWidth; 
              public int dmPelsHeight; 
              public int dmDisplayFlags; 
              public int dmDisplayFrequency; 
              public int dmICMMethod; 
              public int dmICMIntent; 
              public int dmMediaType; 
              public int dmDitherType; 
              public int dmReserved1; 
              public int dmReserved2; 
              public int dmPanningWidth; 
              public int dmPanningHeight; 
          }; 
          class User_32 
          { 
              [DllImport("user32.dll")] 
              public static extern int EnumDisplaySettings(string deviceName, int modeNum, ref DEVMODE1 devMode); 
              [DllImport("user32.dll")] 
              public static extern int ChangeDisplaySettings(ref DEVMODE1 devMode, int flags); 
              public const int ENUM_CURRENT_SETTINGS = -1; 
              public const int CDS_UPDATEREGISTRY = 0x01; 
              public const int CDS_TEST = 0x02; 
              public const int DISP_CHANGE_SUCCESSFUL = 0; 
              public const int DISP_CHANGE_RESTART = 1; 
              public const int DISP_CHANGE_FAILED = -1; 
          } 
          public class PrmaryScreenResolution 
          { 
              static public string ChangeResolution(int width, int height) 
              { 
                  DEVMODE1 dm = GetDevMode1(); 
                  if (0 != User_32.EnumDisplaySettings(null, User_32.ENUM_CURRENT_SETTINGS, ref dm)) 
                  { 
                      dm.dmPelsWidth = width; 
                      dm.dmPelsHeight = height; 
                      int iRet = User_32.ChangeDisplaySettings(ref dm, User_32.CDS_TEST); 
                      if (iRet == User_32.DISP_CHANGE_FAILED) 
                      { 
                          return "Unable To Process Your Request. Sorry For This Inconvenience."; 
                      } 
                      else 
                      { 
                          iRet = User_32.ChangeDisplaySettings(ref dm, User_32.CDS_UPDATEREGISTRY); 
                          switch (iRet) 
                          { 
                              case User_32.DISP_CHANGE_SUCCESSFUL: 
                                  { 
                                      return "Success"; 
                                  } 
                              case User_32.DISP_CHANGE_RESTART: 
                                  { 
                                      return "You Need To Reboot For The Change To Happen.\n If You Feel Any Problem After Rebooting Your Machine\nThen Try To Change Resolution In Safe Mode."; 
                                  } 
                              default: 
                                  { 
                                      return "Failed To Change The Resolution"; 
                                  } 
                          } 
                      } 
                  } 
                  else 
                  { 
                      return "Failed To Change The Resolution."; 
                  } 
              } 
              private static DEVMODE1 GetDevMode1() 
              { 
                  DEVMODE1 dm = new DEVMODE1(); 
                  dm.dmDeviceName = new String(new char[32]); 
                  dm.dmFormName = new String(new char[32]); 
                  dm.dmSize = (short)Marshal.SizeOf(dm); 
                  return dm; 
              } 
          } 
      } 
      "@ 
      Add-Type $pinvokeCode -ErrorAction SilentlyContinue 
      [Resolution.PrmaryScreenResolution]::ChangeResolution($width,$height) 
      }
      
      #Call Function Set-ScreenResolution & set resolution
      #Example Set-ScreenResolution 1024 768 or Set-ScreenResolution 1280 1024
      
      Set-ScreenResolution 800 600
      

      Error in fog.log

      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       5/17/2016 11:53 AM Client-Info Client Version: 0.10.6
       5/17/2016 11:53 AM Client-Info Client OS:      Windows
       5/17/2016 11:53 AM Client-Info Server Version: 7659
       5/17/2016 11:53 AM Middleware::Response Success
       5/17/2016 11:53 AM SnapinClient Snapin Found:
       5/17/2016 11:53 AM SnapinClient     ID: 20
       5/17/2016 11:53 AM SnapinClient     RunWith: powershell.exe
       5/17/2016 11:53 AM SnapinClient     RunWithArgs: -ExecutionPolicy Bypass -NoProfile -File
       5/17/2016 11:53 AM SnapinClient     Name: Set_Resolution_800x600
       5/17/2016 11:53 AM SnapinClient     File: Set-800x600.ps1
       5/17/2016 11:53 AM SnapinClient     Created: 2016-05-17 11:52:32
       5/17/2016 11:53 AM SnapinClient     Args: 
       5/17/2016 11:53 AM SnapinClient     Action: 
       5/17/2016 11:53 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=00:50:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=20
       5/17/2016 11:53 AM SnapinClient C:\Program Files (x86)\FOG\tmp\Set-800x600.ps1
       5/17/2016 11:53 AM Bus {
        "self": true,
        "channel": "Notification",
        "data": "{\r\n  \"title\": \"Installing Set_Resolution_800x600\",\r\n  \"message\": \"Please do not shutdown until this is completed\",\r\n  \"subjectID\": \"snapin-Set_Resolution_800x600\"\r\n}"
      }
       5/17/2016 11:53 AM Bus ERROR: Could not enter socket
       5/17/2016 11:53 AM Bus ERROR: Cannot load Counter Name data because an invalid index '' was read from the registry.
       5/17/2016 11:53 AM Bus Emmiting message on channel: Notification
       5/17/2016 11:53 AM SnapinClient Starting snapin...
       5/17/2016 11:53 AM SnapinClient Snapin finished
       5/17/2016 11:53 AM SnapinClient Return Code: 0
       5/17/2016 11:53 AM Bus {
        "self": true,
        "channel": "Notification",
        "data": "{\r\n  \"title\": \"Set_Resolution_800x600 Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\",\r\n  \"subjectID\": \"snapin-Set_Resolution_800x600\"\r\n}"
      }
       5/17/2016 11:53 AM Bus ERROR: Could not enter socket
       5/17/2016 11:53 AM Bus ERROR: Cannot load Counter Name data because an invalid index '' was read from the registry.
       5/17/2016 11:53 AM Bus Emmiting message on channel: Notification
       5/17/2016 11:53 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=20&exitcode=0&mac=00:50:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
      ------------------------------------------------------------------------------
      
      posted in Feature Request
      N
      networkguy
    • RE: Host Screen Resolution

      @Jbob
      Thank you for the suggestion Jbob but something is wonky. 'The system cannot find the file specified.

      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       5/17/2016 11:16 AM Client-Info Client Version: 0.10.6
       5/17/2016 11:16 AM Client-Info Client OS:      Windows
       5/17/2016 11:16 AM Client-Info Server Version: 7659
       5/17/2016 11:16 AM Middleware::Response Success
       5/17/2016 11:16 AM SnapinClient Snapin Found:
       5/17/2016 11:16 AM SnapinClient     ID: 15
       5/17/2016 11:16 AM SnapinClient     RunWith: powershell.exe -file
       5/17/2016 11:16 AM SnapinClient     RunWithArgs: 
       5/17/2016 11:16 AM SnapinClient     Name: Set-800x600
       5/17/2016 11:16 AM SnapinClient     File: Set-800x600.ps1
       5/17/2016 11:16 AM SnapinClient     Created: 2016-05-17 11:15:15
       5/17/2016 11:16 AM SnapinClient     Args: 
       5/17/2016 11:16 AM SnapinClient     Action: 
       5/17/2016 11:16 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=00:50:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=15
       5/17/2016 11:16 AM SnapinClient C:\Program Files (x86)\FOG\tmp\Set-800x600.ps1
       5/17/2016 11:16 AM Bus {
        "self": true,
        "channel": "Notification",
        "data": "{\r\n  \"title\": \"Installing Set-800x600\",\r\n  \"message\": \"Please do not shutdown until this is completed\",\r\n  \"subjectID\": \"snapin-Set-800x600\"\r\n}"
      }
       5/17/2016 11:16 AM Bus ERROR: Could not enter socket
       5/17/2016 11:16 AM Bus ERROR: Cannot load Counter Name data because an invalid index '' was read from the registry.
       5/17/2016 11:16 AM Bus Emmiting message on channel: Notification
       5/17/2016 11:16 AM SnapinClient Starting snapin...
       5/17/2016 11:16 AM SnapinClient ERROR: Could not start snapin
       5/17/2016 11:16 AM SnapinClient ERROR: The system cannot find the file specified
       5/17/2016 11:16 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=15&exitcode=-1&mac=00:50:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
      ------------------------------------------------------------------------------```
      posted in Feature Request
      N
      networkguy
    • RE: Host Screen Resolution

      @Tom-S
      Hi Tom. I tried that approach but it doesn’t seem to be working when run it as a snapin. When logged in as Administrator I run the exact same command (i just append the -updatereg in my case) and it does what is expected. Have you run into this behavior? I’m using Windows 7 64 bit and the latest nircmd.exe 64 bit.

      Log file containing the error:

      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       5/17/2016 9:30 AM Client-Info Client Version: 0.10.6
       5/17/2016 9:30 AM Client-Info Client OS:      Windows
       5/17/2016 9:30 AM Client-Info Server Version: 7613
       5/17/2016 9:30 AM Middleware::Response Success
       5/17/2016 9:30 AM SnapinClient Snapin Found:
       5/17/2016 9:30 AM SnapinClient     ID: 12
       5/17/2016 9:30 AM SnapinClient     RunWith: 
       5/17/2016 9:30 AM SnapinClient     RunWithArgs: 
       5/17/2016 9:30 AM SnapinClient     Name: vmware_800x600x16
       5/17/2016 9:30 AM SnapinClient     File: vmware_800x600x16.bat
       5/17/2016 9:30 AM SnapinClient     Created: 2016-05-17 09:27:58
       5/17/2016 9:30 AM SnapinClient     Args: 
       5/17/2016 9:30 AM SnapinClient     Action: 
       5/17/2016 9:30 AM Middleware::Communication Download: http://myfogserver/fog/service/snapins.file.php?mac=00:50:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&taskid=12
       5/17/2016 9:30 AM SnapinClient C:\Program Files (x86)\FOG\tmp\vmware_800x600x16.bat
       5/17/2016 9:30 AM Bus {
        "self": true,
        "channel": "Notification",
        "data": "{\r\n  \"title\": \"Installing vmware_800x600x16\",\r\n  \"message\": \"Please do not shutdown until this is completed\",\r\n  \"subjectID\": \"snapin-vmware_800x600x16\"\r\n}"
      }
       5/17/2016 9:30 AM Bus ERROR: Could not enter socket
       5/17/2016 9:30 AM Bus ERROR: Cannot load Counter Name data because an invalid index '' was read from the registry.
       5/17/2016 9:30 AM Bus Emmiting message on channel: Notification
       5/17/2016 9:30 AM SnapinClient Starting snapin...
       5/17/2016 9:30 AM SnapinClient Snapin finished
       5/17/2016 9:30 AM SnapinClient Return Code: -1
       5/17/2016 9:30 AM Bus {
        "self": true,
        "channel": "Notification",
        "data": "{\r\n  \"title\": \"vmware_800x600x16 Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\",\r\n  \"subjectID\": \"snapin-vmware_800x600x16\"\r\n}"
      }
       5/17/2016 9:30 AM Bus ERROR: Could not enter socket
       5/17/2016 9:30 AM Bus ERROR: Cannot load Counter Name data because an invalid index '' was read from the registry.
       5/17/2016 9:30 AM Bus Emmiting message on channel: Notification
       5/17/2016 9:30 AM Middleware::Communication URL: http://myfogserver/fog/service/snapins.checkin.php?taskid=12&exitcode=-1&mac=00:50:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
      ------------------------------------------------------------------------------
      
      posted in Feature Request
      N
      networkguy
    • RE: FOGService errors for all modules

      @Tom-Elliott
      This behavior seems to be back in git version 7597

      posted in Bug Reports
      N
      networkguy
    • Host Screen Resolution

      Does Host Screen Resolution work with the latest version of FOG Server & Client?

      I’m running the following version of the server: 7591 (git) and 0.10.6 for the client but can’t seem to set the resolution of a machine to 800x600.

      Fog Configuration–>Fog Settings–>FOG Client - Display Manager is enabled with the default settings of 1024 x 768, 60.

      For the Host I am testing with I have Display Manager enabled for the Service Settings and the Host Screen Resolution are set to 60, 800, 600.

      They appear to be set in the database appropriately as well.

      mysql> select * from hostScreenSettings;
      +-------+-----------+----------+-----------+------------+----------------+-----------+-----------+
      | hssID | hssHostID | hssWidth | hssHeight | hssRefresh | hssOrientation | hssOther1 | hssOther2 |
      +-------+-----------+----------+-----------+------------+----------------+-----------+-----------+
      |     1 |         4 |      800 |       600 |         60 |              0 |         0 |         0 |
      +-------+-----------+----------+-----------+------------+----------------+-----------+-----------+
      

      I’ve rebooted a few times, logged off and back on, as well as uninstalled and re-installed the Fog client with no success. I do not see any mention of that module in the FOG.log either.

      posted in Feature Request
      N
      networkguy
    • RE: FOGService errors for all modules

      @Tom-Elliott
      Perfect! Thank you again sir!!

       5/11/2016 1:52 PM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json
       5/11/2016 1:52 PM Middleware::Response Success
       5/11/2016 1:52 PM Service Sleeping for 109 seconds
       5/11/2016 1:52 PM Controller Stop
       5/11/2016 1:52 PM Service Stop requested
       5/11/2016 1:52 PM Bus {
        "self": true,
        "channel": "Status",
        "data": "{\r\n  \"action\": \"unload\"\r\n}"
      }
       5/11/2016 1:52 PM Bus Emmiting message on channel: Status
       5/11/2016 1:52 PM Main Overriding exception handling
       5/11/2016 1:52 PM Main Bootstrapping Zazzles
       5/11/2016 1:52 PM Controller Initialize
       5/11/2016 1:52 PM Entry Creating obj
       5/11/2016 1:52 PM Controller Start
      
       5/11/2016 1:52 PM Service Starting service
       5/11/2016 1:53 PM Bus Became bus server
       5/11/2016 1:53 PM Bus {
        "self": true,
        "channel": "Status",
        "data": "{\r\n  \"action\": \"load\"\r\n}"
      }
       5/11/2016 1:53 PM Bus Emmiting message on channel: Status
      
      ------------------------------------------------------------------------------
      --------------------------------Authentication--------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:53 PM Client-Info Version: 0.10.6
       5/11/2016 1:53 PM Client-Info OS:      Windows
       5/11/2016 1:53 PM Middleware::Authentication Waiting for authentication timeout to pass
       5/11/2016 1:53 PM Middleware::Communication Download: http://myfogserver/fog/management/other/ssl/srvpublic.crt
       5/11/2016 1:53 PM Data::RSA FOG Server CA cert found
       5/11/2016 1:53 PM Middleware::Authentication Cert OK
       5/11/2016 1:53 PM Middleware::Communication POST URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService
       5/11/2016 1:53 PM Middleware::Response Success
       5/11/2016 1:53 PM Middleware::Authentication Authenticated
      
      
       5/11/2016 1:53 PM Bus Registering ParseBus in channel Power
       5/11/2016 1:53 PM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&mac=00:50:56:8A:0C:C3||00:00:00:00:00:00:00:E0&newService&json
       5/11/2016 1:53 PM Middleware::Response Success
       5/11/2016 1:53 PM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?clientver&newService&json
       5/11/2016 1:53 PM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?newService&json
      
       5/11/2016 1:53 PM Service Creating user agent cache
       5/11/2016 1:53 PM Middleware::Response Success
       5/11/2016 1:53 PM Middleware::Response No Printers
      
      ------------------------------------------------------------------------------
      ---------------------------------ClientUpdater--------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:53 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:53 PM Client-Info Client OS:      Windows
       5/11/2016 1:53 PM Client-Info Server Version: 7591
       5/11/2016 1:53 PM Middleware::Response Success
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      ----------------------------------TaskReboot----------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:53 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:53 PM Client-Info Client OS:      Windows
       5/11/2016 1:53 PM Client-Info Server Version: 7591
       5/11/2016 1:53 PM Middleware::Response Success
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      --------------------------------HostnameChanger-------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:53 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:53 PM Client-Info Client OS:      Windows
       5/11/2016 1:53 PM Client-Info Server Version: 7591
       5/11/2016 1:53 PM Middleware::Response Success
       5/11/2016 1:53 PM HostnameChanger Checking Hostname
       5/11/2016 1:53 PM HostnameChanger Hostname is correct
       5/11/2016 1:53 PM HostnameChanger Host is already joined to target domain
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:53 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:53 PM Client-Info Client OS:      Windows
       5/11/2016 1:53 PM Client-Info Server Version: 7591
       5/11/2016 1:53 PM Middleware::Response No snapins
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      --------------------------------PrinterManager--------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:53 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:53 PM Client-Info Client OS:      Windows
       5/11/2016 1:53 PM Client-Info Server Version: 7591
       5/11/2016 1:53 PM Middleware::Response No Printers
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      -----------------------------------GreenFOG-----------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:53 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:53 PM Client-Info Client OS:      Windows
       5/11/2016 1:53 PM Client-Info Server Version: 7591
       5/11/2016 1:53 PM Middleware::Response No actions
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      ----------------------------------UserTracker---------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:53 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:53 PM Client-Info Client OS:      Windows
       5/11/2016 1:53 PM Client-Info Server Version: 7591
       5/11/2016 1:53 PM Middleware::Response Success
      
      posted in Bug Reports
      N
      networkguy
    • RE: FOGService errors for all modules

      @Tom-Elliott
      I still see the same issue. My Client-Info Server Version is reading the appropriate version unlike Wayne.

      5/11/2016 1:42 PM Main Overriding exception handling
       5/11/2016 1:42 PM Main Bootstrapping Zazzles
       5/11/2016 1:42 PM Controller Initialize
       5/11/2016 1:42 PM Entry Creating obj
       5/11/2016 1:42 PM Controller Start
      
       5/11/2016 1:42 PM Service Starting service
       5/11/2016 1:42 PM Bus Became bus server
       5/11/2016 1:42 PM Bus {
        "self": true,
        "channel": "Status",
        "data": "{\r\n  \"action\": \"load\"\r\n}"
      }
       5/11/2016 1:42 PM Bus Emmiting message on channel: Status
      
      ------------------------------------------------------------------------------
      --------------------------------Authentication--------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:42 PM Client-Info Version: 0.10.6
       5/11/2016 1:42 PM Client-Info OS:      Windows
       5/11/2016 1:42 PM Middleware::Authentication Waiting for authentication timeout to pass
       5/11/2016 1:42 PM Middleware::Communication Download: http://myfogserver/fog/management/other/ssl/srvpublic.crt
       5/11/2016 1:42 PM Data::RSA FOG Server CA cert found
       5/11/2016 1:42 PM Middleware::Authentication Cert OK
       5/11/2016 1:42 PM Middleware::Communication POST URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService
       5/11/2016 1:42 PM Middleware::Response Success
       5/11/2016 1:42 PM Middleware::Authentication Authenticated
      
      
       5/11/2016 1:42 PM Bus Registering ParseBus in channel Power
       5/11/2016 1:42 PM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&mac=00:50:XX:XX:XX:XX||00:00:00:00:00:00:00:E0&newService&json
       5/11/2016 1:42 PM Middleware::Response ERROR: Could not parse data
       5/11/2016 1:42 PM Middleware::Response ERROR: Unexpected character encountered while parsing value: #. Path '', line 0, position 0.
       5/11/2016 1:42 PM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?clientver&newService&json
       5/11/2016 1:42 PM Middleware::Communication URL: http://myfogserver/fog/service/getversion.php?newService&json
       5/11/2016 1:42 PM Service ERROR: Unable to get cycle data
       5/11/2016 1:42 PM Service ERROR: Object reference not set to an instance of an object.
       5/11/2016 1:42 PM Middleware::Response Success
      
      ------------------------------------------------------------------------------
      ---------------------------------ClientUpdater--------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:42 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:42 PM Client-Info Client OS:      Windows
       5/11/2016 1:42 PM Client-Info Server Version: 7589
       5/11/2016 1:42 PM Middleware::Response ERROR: Unable to get subsection
       5/11/2016 1:42 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
       5/11/2016 1:42 PM Service ERROR: Unable to run module
       5/11/2016 1:42 PM Service ERROR: Object reference not set to an instance of an object.
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      ----------------------------------TaskReboot----------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:42 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:42 PM Client-Info Client OS:      Windows
       5/11/2016 1:42 PM Client-Info Server Version: 7589
       5/11/2016 1:42 PM Middleware::Response ERROR: Unable to get subsection
       5/11/2016 1:42 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
       5/11/2016 1:42 PM Service ERROR: Unable to run module
       5/11/2016 1:42 PM Service ERROR: Object reference not set to an instance of an object.
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      --------------------------------HostnameChanger-------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:42 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:42 PM Client-Info Client OS:      Windows
       5/11/2016 1:42 PM Client-Info Server Version: 7589
       5/11/2016 1:42 PM Middleware::Response ERROR: Unable to get subsection
       5/11/2016 1:42 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
       5/11/2016 1:42 PM Service ERROR: Unable to run module
       5/11/2016 1:42 PM Service ERROR: Object reference not set to an instance of an object.
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:42 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:42 PM Client-Info Client OS:      Windows
       5/11/2016 1:42 PM Client-Info Server Version: 7589
       5/11/2016 1:42 PM Middleware::Response ERROR: Unable to get subsection
       5/11/2016 1:42 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
       5/11/2016 1:42 PM Service ERROR: Unable to run module
       5/11/2016 1:42 PM Service ERROR: Object reference not set to an instance of an object.
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      --------------------------------PrinterManager--------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:42 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:42 PM Client-Info Client OS:      Windows
       5/11/2016 1:42 PM Client-Info Server Version: 7589
       5/11/2016 1:42 PM Middleware::Response ERROR: Unable to get subsection
       5/11/2016 1:42 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
       5/11/2016 1:42 PM Service ERROR: Unable to run module
       5/11/2016 1:42 PM Service ERROR: Object reference not set to an instance of an object.
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      -----------------------------------GreenFOG-----------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:42 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:42 PM Client-Info Client OS:      Windows
       5/11/2016 1:42 PM Client-Info Server Version: 7589
       5/11/2016 1:42 PM Middleware::Response ERROR: Unable to get subsection
       5/11/2016 1:42 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
       5/11/2016 1:42 PM Service ERROR: Unable to run module
       5/11/2016 1:42 PM Service ERROR: Object reference not set to an instance of an object.
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      ----------------------------------UserTracker---------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 1:42 PM Client-Info Client Version: 0.10.6
       5/11/2016 1:42 PM Client-Info Client OS:      Windows
       5/11/2016 1:42 PM Client-Info Server Version: 7589
       5/11/2016 1:42 PM Middleware::Response ERROR: Unable to get subsection
       5/11/2016 1:42 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
      ------------------------------------------------------------------------------
      
       5/11/2016 1:42 PM Middleware::Communication URL: http://myfogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json
       5/11/2016 1:42 PM Middleware::Response Success
       5/11/2016 1:42 PM Service Sleeping for 91 seconds
      
      posted in Bug Reports
      N
      networkguy
    • RE: FOGService errors for all modules

      @Jbob
      Much appreciated, I apologize if this is a dup post.

      posted in Bug Reports
      N
      networkguy
    • RE: FOGService errors for all modules

      Is there a recommended version of the client I should install or is the issue with the server (mysql connections I thought I came across while reading posts)?

      posted in Bug Reports
      N
      networkguy
    • FOGService errors for all modules

      I’m running a new install of FOG on RHEL 6.7. Deployments are working fine but I see the following Errors in the FOG client log for nearly all modules. Can someone point me in the right direction for troubleshooting this? The module I’m most interested with working at the moment is the snapin module.

      Currently running FOG server version 7583 (git)

      ------------------------------------------------------------------------------
      --------------------------------HostnameChanger-------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 12:02 PM Client-Info Client Version: 0.10.6
       5/11/2016 12:02 PM Client-Info Client OS:      Windows
       5/11/2016 12:02 PM Client-Info Server Version: 7567
       5/11/2016 12:02 PM Middleware::Response ERROR: Unable to get subsection
       5/11/2016 12:02 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
       5/11/2016 12:02 PM Service ERROR: Unable to run module
       5/11/2016 12:02 PM Service ERROR: Object reference not set to an instance of an object.
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 12:02 PM Client-Info Client Version: 0.10.6
       5/11/2016 12:02 PM Client-Info Client OS:      Windows
       5/11/2016 12:02 PM Client-Info Server Version: 7567
       5/11/2016 12:02 PM Middleware::Response ERROR: Unable to get subsection
       5/11/2016 12:02 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
       5/11/2016 12:02 PM Service ERROR: Unable to run module
       5/11/2016 12:02 PM Service ERROR: Object reference not set to an instance of an object.
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      --------------------------------PrinterManager--------------------------------
      ------------------------------------------------------------------------------
       5/11/2016 12:02 PM Client-Info Client Version: 0.10.6
       5/11/2016 12:02 PM Client-Info Client OS:      Windows
       5/11/2016 12:02 PM Client-Info Server Version: 7567
       5/11/2016 12:02 PM Middleware::Response ERROR: Unable to get subsection
       5/11/2016 12:02 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
       5/11/2016 12:02 PM Service ERROR: Unable to run module
       5/11/2016 12:02 PM Service ERROR: Object reference not set to an instance of an object.
      ------------------------------------------------------------------------------
      

      Mod edited to use code box.

      posted in Bug Reports
      N
      networkguy
    • RE: Snapin Error in PHP

      @Tom-Elliott
      Updated and works like a charm. Thank you very much.

      I’ve been away from the FOG project a long time(0.29) and happy to be back; you and the community have made some awesome improvements. Support is top notch. Thanks again for your efforts!

      posted in Bug Reports
      N
      networkguy
    • RE: Snapin Error in PHP

      @Tom-Elliott
      I’m also seeing this from a new install via git yesterday. I don’t recall the version but I just updated and still see it at version 7577.

      [Wed May 11 08:49:25 2016] [error] [client X.X.X.X] PHP Fatal error: Call to a member function save() on null in /var/www/html/fog/lib/pages/snapinmanagementpage.class.php on line 161, referer: http://myfogserver/fog/management/index.php?node=snapin&sub=add

      PHP 5.6.21 (cli) (built: Apr 28 2016 07:47:46)
      Copyright © 1997-2016 The PHP Group
      Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies
      [root@fog2 bin]#

      posted in Bug Reports
      N
      networkguy
    • RE: Adding custom advanced tasks or modifying existing ones?

      For the custom task to clear itself from Active Tasks you may be able to switch out pxelinux with ipxe. Using the following embedded script to undionly.kpxe will send the mac to a php script on your web server which can delete the task. This method would delete the active task before it has finished though which may not be desirable in your environment.

      -fogboot.ipxe

      [CODE]#!ipxe
      dhcp
      chain http://1.1.1.1/images/boot.php?mac=${net0/mac}&asset=${asset:uristring}
      boot[/CODE]

      -build command
      [CODE]make bin/undionly.kpxe EMBED=fogboot.ipxe[/CODE]

      -sample boot.php
      [CODE]<?php
      $mac = urldecode($_GET[‘mac’]);
      // Do some stuff with the mac here…

      $fogServer = “1.1.1.1”;
      $kernel = “images/bzImage”;
      $kernelOptions = “root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= mode=onlydebug”
      $initrd = “images/init.gz”;

      echo writeIPXE($fogServer, $kernel, $kernelOptions, $initrd);

      function writeIPXE($fogServer, $kernel, $kernelOptions, $initrd){
      $ipxe = <<<DOC
      #!ipxe
      kernel http://$fogServer/$kernel $kernelOptions
      initrd http://$fogServer/$initrd
      boot
      DOC;
      return $ipxe;
      }
      ?>[/CODE]

      posted in FOG Problems
      N
      networkguy
    • RE: Help needed Code red can not acces WEBUI

      when you run the hostname command does it display: image.localhost.localdomain and if so when you ping that from your fog server do you get any replies?

      posted in General
      N
      networkguy
    • RE: Mac images

      Fog is great but you may find deploystudio a better fit for your needs. It works very well and is very intuitive for imaging macs although it will be yet another service you will have to manage.

      posted in Tutorials
      N
      networkguy
    • RE: Help needed Code red can not acces WEBUI

      What has changed recently??

      do you have image.localhost.localdomain defined in your dns server? If not add the following entry to /etc/hosts

      127.0.0.1 image.localhost.localdomain

      posted in General
      N
      networkguy
    • RE: PXE Boot menu not working on Dell Latitude E6510

      hmm, so you are working fine now or it still doesn’t allow you to register/deploy/etc? The issue you just mentioned where you would select an item and then it would go right back to the menu is exactly what I was seeing for most menu options on a particular dell laptop (E5420). The menu options for loading iso’s would start to load and then either go back to the menu or occasionally give me some memory error. I had 4GB of memory installed and the ISO was only around 100MB so I knew it couldn’t be a lack of memory and I tried different sticks and putting it in a different slot (ironically all the memory for these laptops was installed in slot 2 and slot 1 was empty). After trying different kernels/pxelinux/memdisk versions I stumbled across a different BIOS version on Dell’s website listed for the model and that worked. The PITA is that the version was newer (A09) than what they had listed in the downloads section for the laptop, I had to click A08 and then another link listing other versions to see the latest which worked like a charm.

      posted in FOG Problems
      N
      networkguy
    • RE: PXE Boot menu not working on Dell Latitude E6510

      I’m not sure that this sounds like a kernel issue. It sounds like you don’t even get to the point where you would load a kernel. If you are sure that their isn’t some sort of other network device/security in place that would be preventing it from obtaining an IP address with the pxe server information then I would attempt trying different bios versions. Sometimes the latest/greatest can contain a bug that a previous version didn’t. I see the version below the one you are running now mentions having pxe changes, maybe try that one. Sorry for not responding after asking about the bios version, I recently assisted a co-worker with a similar issue and thought I could comment on that solution but it was for a different model and I haven’t heard back whether or not we have the same model you are using to test with. Good luck.

      posted in FOG Problems
      N
      networkguy
    • RE: PXE Boot menu not working on Dell Latitude E6510

      What is the version of the BIOS you are running?

      posted in FOG Problems
      N
      networkguy
    • RE: Customize Partimage GUI

      one is based off of rhel the other ubuntu so it won’t be as easy as getting those images into the init/bzimage as both os’s handle splash/init a bit differently but I’ve taken apart init enough times and am fairly familiar with ubuntu so I think I should be able to marry the two without too much of a headache and in the end we can/will have a usb/cd bootable image that can come in handy aside from loading via pxe.

      posted in General
      N
      networkguy
    • 1 / 1