• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Greg Plamondon
    3. Posts
    • Profile
    • Following 1
    • Followers 0
    • Topics 74
    • Posts 394
    • Best 14
    • Controversial 0
    • Groups 1

    Posts made by Greg Plamondon

    • shell script to sync folder to storage node.

      I have modified a shell script that was in the fogproject git hub to update all storage nodes.

      I can get the shell script to run from an ssh session but not from a cronjob.
      does anyone have any suggestions?

      #!/bin/bash
      export TERM=xterm
      PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
      array=( 10fog-helpdesk 11storage 13storage 14storage 15storage 17storage 19storage 21storage 23storage 25storage 27storage 28storage 29storage 30storage 32storage 34storage 36storage 38storage 43storage 44storage )
      LOCKFILE=/tmp/synclock.txt
      if [ -e ${LOCKFILE} ] && kill -0 `cat ${LOCKFILE}`; then
          echo "already running"
          exit
      fi
      # make sure the lockfile is removed when we exit and then claim it
      trap "rm -f ${LOCKFILE}; exit" INT TERM EXIT
      echo $$ > ${LOCKFILE}
      
      clear
      echo
      echo
      echo "Syncing defined systems."
      echo
      for i in "${array[@]}"
      do
          printf "FOG Sync Started at: $i..."
          successCheck=$(rsync --progress --stats --prune-empty-dirs --delete --bwlimit=500 -avz /images/Sync root@$i:/images/ > /var/log/fog/shopsync.$i.log; rsync --progress --stats --prune-empty-dirs --delete --bwlimit=500 -avz /images/drivers root@$i:/images/ > /var/log/fog/driversync.$i.log;)
          if [[ "$successCheck" -eq 0 ]]; then
              printf "Success!\n"
          else
              printf "Failed!\n"
          fi
          printf "\n"
      done
      #sleep 1000
      rm -f ${LOCKFILE}
      

      I have ssh-copy-id root@10fog-helpdesk to imort my key
      I am able too shh root@10fog-helpdesk without a password with no issues.
      This is what the cronjob log looks like.

      FOG Sync Started at: 10fog-helpdesk...Permission denied, please try again.
      Permission denied, please try again.
      Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
      rsync: connection unexpectedly closed (0 bytes received so far) [sender]
      rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]
      Permission denied, please try again.
      Permission denied, please try again.
      Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
      rsync: connection unexpectedly closed (0 bytes received so far) [sender]
      rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]
      Success!
      

      Any pointers?

      Thanks!

      posted in Linux Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: snapins not deploying from storage nodes: Version 1.5.7.4

      @Sebastian-Roth said in snapins not deploying from storage nodes: Version 1.5.7.4:

      SELECT * FROM globalSettings WHERE settingKey LIKE ‘%SNAPIN_LOCATION_SEND_ENABLED%’;

      MariaDB [fog]> SELECT * FROM globalSettings WHERE settingKey LIKE '%SNAPIN_LOCATION_SEND_ENABLED%';
      +-----------+----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------+
      | settingID | settingKey                       | settingDesc                                                                                                                                                                                  | settingValue | settingCategory      |
      +-----------+----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------+
      |       206 | FOG_SNAPIN_LOCATION_SEND_ENABLED | This setting defines sending the location url based on the host that checks in. It tells the client to download snapins from the host defined location where available. Default is disabled. | 1            | FOG Client - Snapins |
      +-----------+----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+----------------------+
      1 row in set (0.00 sec)
      

      this is the fog.log on the client.

      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       10/21/2019 2:30 PM Client-Info Client Version: 0.11.16
       10/21/2019 2:30 PM Client-Info Client OS:      Windows
       10/21/2019 2:30 PM Client-Info Server Version: 1.5.7.4
       10/21/2019 2:30 PM Middleware::Response Success
       10/21/2019 2:30 PM SnapinClient Running snapin 00 - UltraVNC
       10/21/2019 2:30 PM Middleware::Communication Download: http://10fogserver.domain-name.com/fog/service/snapins.file.php?mac=00:0C:29:A6:AD:01&taskid=9092
      

      shouldnt it be the storage nodes hostname?

      Download: http://23storage.domain-name.com/fog/...
      
      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: snapins not deploying from storage nodes: Version 1.5.7.4

      @Sebastian-Roth any ideas on where I could start to troubleshoot this? I don’t see anything in the logs standing out.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Access Control Plugin

      @Lee-Rowlett Thanks!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: snapins not deploying from storage nodes: Version 1.5.7.4

      @Fernando-Gietz it worked before, not sure what version it changed in.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Access Control Plugin

      @Lee-Rowlett said in Access Control Plugin:

      removehosteditgen.hook.php

      Lee, I searched everywhere for that file and cannot find it.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Access Control Plugin

      @Fernando-Gietz ok, Thanks. Is there any way that i can remove the ability to see the Domain password in the Active Directory section of the host settings?

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Access Control Plugin

      I am trying to use the Access Control plugin to limit what the helpdesk technicians can see.

      I have an issue trying to restrict the active directory menu option within a host.

      IMAGE

      I have tried the following with no success.

      alt text

      Any help or suggestion would be appreciated.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • snapins not deploying from storage nodes: Version 1.5.7.4

      Version 1.5.7.4
      when deploying an image to a pc that is at a location with a storage node the image is pulled correctly from the storage node but when it comes to the snapins it pulls them from the master. I have verified that the location is set on the host and snapins exist on the storage node and the snapin hashes match up.

      Thanks!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Active Directory - Fog 1.5.5

      @Tom-Elliott Thanks!

      For now, I have created a fog AD user that has rights to join the domain. the only issue with that is the helpdesk tech needs to have one of the domain admins remove the PC from AD if it’s preexisting.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Fog 1.5.5 - Snapin replication loop

      @Sebastian-Roth said in Fog 1.5.5 - Snapin replication loop:

      dev-branch

      Thanks!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Fog 1.5.5 - Snapin replication loop

      I am having issues with the snapins replicating over and over, here is a snippet of the logs.

      03-05-19 3:55:58 pm]  | Started sync for Snapin 01a - BAY-Teamviewer - Resource id #375436
      [03-05-19 3:55:58 pm]   # 01a - BAY-Teamviewer: File does not exist optfogsnapinsTeamViewer-Bay.sfx.exe (13Storage)
      [03-05-19 3:55:58 pm]   # 01a - BAY-Teamviewer: File does not exist on master node, deleting TeamViewer-Bay.sfx.exe on 13Storage
      [03-05-19 3:55:59 pm]  | CMD: lftp -e 'set xfer:log 1; set xfer:log-file /opt/fog/log/fogsnapinrep.01a - BAY-Teamviewer.transfer.13Storage.log;set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; set net:limit-rate 0:384000; mirror -c --parallel=20 -R -i "TeamViewer-Bay.sfx.exe" --ignore-time -vvv --exclude ".srvprivate" "/opt/fog/snapins" "/opt/fog/snapins"; exit' -u fog,[Protected] 10.13.40.39
      

      [03-05-19 3:55:58 pm] # 01a - BAY-Teamviewer: File does not exist optfogsnapinsTeamViewer-Bay.sfx.exe (13Storage)
      it doesnt exist because the path is being included in the name.

      Sorry if this has been addressed already but I couldn’t find a solution.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Active Directory - Fog 1.5.5

      @Tom-Elliott
      I am good with either. I just don’t want my help desk techs seeing the password.

      Thanks!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Active Directory - Fog 1.5.5

      the fog GUI is now showing the unencrypted password for joining the domain when you press the eyeball.
      Ho do I would like to have it not show the password if possible.

      alt text

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Fog 1.5.5.3 - password install issues

      When upgrading I get this message.

      * Setting up fog user.........................................Already setup
      * Setting up fog password.....................................Failed
      # The fog system account password includes characters we cannot properly
      # handle. Please remove the following character(s) from the password in
      # your .fogsettings file before re-running the installer: 283332
      

      it seems that it doesn’t like any numeric characters in the password in /opt./fog/.fogsettings

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: FOG Version 1.5.5 replicating over and over

      Thanks that worked!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • FOG Version 1.5.5 replicating over and over

      I am having issues with the server replicating to the remote nodes over and over again.

      [01-28-19 2:15:32 pm]  | Started sync for Snapin 11a - SimplifyPrinting - Resource id #21838
      [01-28-19 2:15:40 pm]   # 11a - SimplifyPrinting: File does not exist optfogsnapinsSimplifySuite.sfx.exe (11Storage)
      [01-28-19 2:15:40 pm]   # 11a - SimplifyPrinting: File does not exist on master node, deleting SimplifySuite.sfx.exe on 11Storage
      [01-28-19 2:15:53 pm]  | CMD: lftp -e 'set xfer:log 1; set xfer:log-file /opt/fog/log/fogsnapinrep.11a - SimplifyPrinting.transfer.11Storage.log;set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; set net:limit-rate 0:128000; mirror -c --parallel=20 -R -i "SimplifySuite.sfx.exe" --ignore-time -vvv --exclude ".srvprivate" "/opt/fog/snapins" "/opt/fog/snapins"; exit' -u fog,[Protected] 10.11.40.39
      

      I notice that the snapin name is including the path without the / in its name. “optfogsnapinsSimplifySuite.sfx.exe”
      also its not adhering to the speed limits set.
      all nodes are on the same version 1.5.5
      I have to disable all replication on the server or it saturates our 100mb mpls connections
      Any help would be great.

      Thanks!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: SQL script to cleanup database

      @tom-elliott
      Thanks Tom

      posted in General
      Greg PlamondonG
      Greg Plamondon
    • Windows Boot manager set as default after imaging

      I am having issues with the UEFI boot order being changed to Windows Boot Manager after successfully imaging a PC.
      I have to manually enter BIOS and change the boot order back to LAN
      This makes imaging PC at remote sites very difficult, I would have to drive to the remote site and change the BIOS settings and that’s just not going to happen.

      Does anyone know of a workaround for this issue?
      I am using Lenovo ThinkCentre PC’s

      posted in General Problems
      Greg PlamondonG
      Greg Plamondon
    • SQL script to cleanup database

      does anyone have a cleanup query to cleanup hosts in the database that haven’t reported back in a specified amount of time?

      posted in General
      Greg PlamondonG
      Greg Plamondon
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 19
    • 20
    • 7 / 20