• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Greg Plamondon
    3. Posts
    • Profile
    • Following 1
    • Followers 0
    • Topics 75
    • Posts 403
    • Groups 1

    Posts

    Recent Best Controversial
    • 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
    • RE: Data missing from the database after host is imaged.

      @tom-elliott said in Data missing from the database after host is imaged.:

      Fixed in working.

      Basically what was happening was the other1 field is used to send emails. That part still can happen (as any value that’s not an email will just not receive an email), but it was clearing the field after it sent the email out.

      I just commented out the line as I cannot remember exactly why I was clearing it to begin with.

      Thanks Tom!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Data missing from the database after host is imaged.

      @tom-elliott said in Data missing from the database after host is imaged.:

      Found it.

      WOW that was fast

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Data missing from the database after host is imaged.

      @tom-elliott said in Data missing from the database after host is imaged.:

      @greg-plamondon I’ve yet to hear of imaging causing a change on the other tags. Only during registration does this happen. I’ll take a look at the inventory update script, maybe I missed something?

      I have found a work around using the “Other Tag #2” for now.
      Thanks!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Data missing from the database after host is imaged.

      @george1421 said in Data missing from the database after host is imaged.:

      @greg-plamondon So just for clarity, if you disable your fog post install script from running (from the master script) the Othertag data is removed from the database?

      I could see if you might have altered Othertag data it might happen.

      Yes, the othertag is removed. Interesting enough I am able to use the “Other Tag #2” ie “iOtherTag1” field fine.

      I also reverted back to fog 1.5.2 and I am having the same issue.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Data missing from the database after host is imaged.

      Ok, it doesn’t matter what I do with the scripts. the Othertag data is removed after I image the PC.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Data missing from the database after host is imaged.

      @greg-plamondon said in Data missing from the database after host is imaged.:

      @george1421

      if i comment out this section…

             case $othertag in
                  BAY)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.bay_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
                  MPMI)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.canada_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
                  JET)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.jet_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;	
                  *)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
              esac
      

      the data remains after imaging.

      I take that back… The data doesn’t persist regardless if I comment it out.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Data missing from the database after host is imaged.

      @george1421

      It’s not removing the host. its removing data from the inventory section of the database.

      You are currently running version: 1.5.2.10
      

      did you watch the video?

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Data missing from the database after host is imaged.

      I really don’t know how to explain this issue without using a –>>VIDEO<<–.
      We use the “iOtherTag” in the inventory section to determine what company a PC belongs to, we also use this field to trigger what unattend.xml amongst other post init scripts to use. When we image the PC the “iOtherTag” table data for that host gets removed from the DB.

      Here is my “fog.postdownload”

      #!/bin/bash
      . /usr/share/fog/lib/funcs.sh
      curl -A "" -Lkso /tmp/hinfo.sh "${web}/service/hostinfo.php?mac=$mac"
      . /tmp/hinfo.sh
      [[ -z $postdownpath ]] && postdownpath="/images/postdownloadscripts/"
      case $osid in
          5|6|7|9)
              clear
              [[ ! -d /ntfs ]] && mkdir -p /ntfs
              getHardDisk
              if [[ -z $hd ]]; then
                  handleError "Could not find hdd to use"
                  
              fi
              getPartitions $hd
              for part in $parts; do
                  true
              done
              dots "Mounting partition $part"
              ntfs-3g -o force,rw $part /ntfs >/dev/null 2>&1
              if [[ ! $? -eq 0 ]]; then
                  echo "Failed"
                  debugPause
                  handleError "Failed to mount $part ($0)\n    Args: $*"
              fi
              echo "Done"
              case $othertag in
                  BAY)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.bay_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
                  MPMI)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.canada_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
                  JET)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.jet_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;	
                  *)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
              esac
              umount /ntfs
              ;;
          *)
              echo "Invalid OS"
              debugPause
              return
              ;;
      esac
      

      as always thanks for the help all!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Extended fog variables problem.

      @george1421 said in Extended fog variables problem.:

      @greg-plamondon

      Change anything: No you are just telling wget to not pass the user agent parameters to FOG.

      CURL: Just replace the wget line with the curl line Tom posted. Same results just a different tool. The fog code has been updated (under the hood) to only use curl. There may be a time where curl specific calls are used. But today both work interchangeably.

      I had to use the -A option for curl to specify the user agent.

      curl -A "" -Lkso /tmp/hinfo.sh ${web}/service/hostinfo.php -d "mac=$mac" 
      

      That worked like a charm!
      Thanks @george1421 @Tom-Elliott

      posted in General
      Greg PlamondonG
      Greg Plamondon
    • RE: Extended fog variables problem.

      @greg-plamondon said in Extended fog variables problem.:

      wget -q --user-agent=“” -O /tmp/hinfo.txt “${web}/service/hostinfo.php?mac=$mac”

      Thanks @george1421 that worked.
      do i need to change anything when running that from my fog.postdownload?

      #!/bin/bash
      . /usr/share/fog/lib/funcs.sh
      wget -q --user-agent="" -O /tmp/hinfo.sh "$web/service/hostinfo.php?mac=$mac"
      . /tmp/hinfo.sh
      [[ -z $postdownpath ]] && postdownpath="/images/postdownloadscripts/"
      case $osid in
          5|6|7|9)
              clear
              [[ ! -d /ntfs ]] && mkdir -p /ntfs
              getHardDisk
              if [[ -z $hd ]]; then
                  handleError "Could not find hdd to use"
      
              fi
              getPartitions $hd
              for part in $parts; do
                  true
              done
              dots "Mounting partition $part"
              ntfs-3g -o force,rw $part /ntfs >/dev/null 2>&1
              if [[ ! $? -eq 0 ]]; then
                  echo "Failed"
                  debugPause
                  handleError "Failed to mount $part ($0)\n    Args: $*"
              fi
              echo "Done"
              debugPause
              pccompany=${hostname:2:1}
              case $pccompany in
                              2)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.bay_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
                              5)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.canada_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
                              7)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.jet_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
                              *)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
              esac
                  umount /ntfs
              ;;
          *)
              echo "Invalid OS"
              debugPause
              return
              ;;
      esac
      

      How would I make this use curl?

      curl -A "" -Lkso /tmp/hinfo.sh ${web}/service/hostinfo.php -d "mac=$mac" 
      
      posted in General
      Greg PlamondonG
      Greg Plamondon
    • 1
    • 2
    • 6
    • 7
    • 8
    • 9
    • 10
    • 20
    • 21
    • 8 / 21