• 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
    • RE: Access Control Plugin

      @Sebastian-Roth
      Hey just wanted to post an update, I ran into one problem with this method. If you click the clear fields and then save, and then set the checkbox for “Join Domain after deploy” it doesn’t save the AD password to the database its left null

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Mount windows ntfs Volume

      @george1421 Thanks!

      posted in General Problems
      Greg PlamondonG
      Greg Plamondon
    • Mount windows ntfs Volume

      I am trying to mount the windows volume in fog debug for troubleshooting. I have done this a long time ago but since have forgotten the steps required.
      can anyone lend a hand?

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

      @Sebastian-Roth Thank you!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: shell script to sync folder to storage node.

      @Sebastian-Roth Thanks for the input,
      I was able to figure out what was going wrong. when I was ssh-copy-d root@storagenode it was copying the sshkey i use to login to the server. I needed to use ssh-copy-id -i /root/.ssh/id_rsa and then your suggestio of rsync ... -avze "ssh -i /full/path/to/ssh_private_key" /images/Sync root@$i:/images/ ... worked great.

      Thanks!

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

      @Sebastian-Roth doing a git pull now will let you know shortly

      EDIT:

      I installed the change you made and it looks the same as when you made the changes to my system at least from a fog.log stand point.
      its is calling the IP address of the storage node.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: shell script to sync folder to storage node.

      @Wayne-Workman contents of /tmp/whoami.txt is “root”

      posted in Linux Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: shell script to sync folder to storage node.

      @Sebastian-Roth the cronjob runs hourly as root.

      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:

      mysql> SELECT * FROM location;

      MariaDB [fog]> SELECT * FROM location;
      +-----+--------------------------------------------+-------+-----------------+----------------+------------+---------------------+--------------+
      | lID | lName                                      | lDesc | lStorageGroupID | lStorageNodeID | lCreatedBy | lCreatedTime        | lTftpEnabled |
      +-----+--------------------------------------------+-------+-----------------+----------------+------------+---------------------+--------------+
      |   1 | 23 - Kansas City, MO - 10MB                |       |               1 |             15 | gp1001     | 2018-03-26 13:56:25 | 1            |
      |   2 | 10 - Help Desk - Byron Center, MI          |       |               1 |             31 | gp1001     | 2018-03-21 13:36:01 | 0            |
      |   3 | 11 - Spring Lake, MI - 10MB                |       |               1 |             38 | gp1001     | 2018-03-21 13:36:46 | 1            |
      |   4 | 13 - James P. Cole BLVD - Flint, MI - 10MB |       |               1 |              7 | gp1001     | 2018-03-21 13:37:28 | 1            |
      |   5 | 14 - Lansing, MI - 5MB                     |       |               1 |              8 | gp1001     | 2018-03-21 13:37:59 | 1            |
      |   6 | 30 - Windsor, Ontario, CA - 10MB           |       |               1 |              5 | gp1001     | 2018-03-21 13:39:30 | 1            |
      |   8 | 17 - Toledo, OH - 10MB                     |       |               1 |             41 | gp1001     | 2018-03-23 16:17:04 | 1            |
      |   9 | 18 - Bertrand, MO - 3MB                    |       |               1 |             37 | gp1001     | 2018-03-26 10:17:35 | 1            |
      |  10 | 19 - Wayne, MI                             |       |               1 |             12 | gp1001     | 2018-03-26 10:29:28 | 1            |
      |  12 | 21 - White Pine, TN - 10MB                 |       |               1 |             13 | gp1001     | 2018-03-26 12:00:22 | 1            |
      |  13 | 25 - Marshall, MI - 5MB                    |       |               1 |             16 | gp1001     | 2018-03-27 08:54:57 | 1            |
      |  14 | 28 - Grand Prairie, TX - 10MB              |       |               1 |             17 | gp1001     | 2018-03-27 12:46:43 | 1            |
      |  15 | 29 - Port Huron, MI - 5MB                  |       |               1 |             27 | gp1001     | 2018-03-27 14:26:09 | 1            |
      |  16 | 33 - Coldwater, MI - VPN                   |       |               1 |             19 | gp1001     | 2018-03-27 15:41:24 | 1            |
      |  17 | 34 - Lima, OH - 10MB                       |       |               1 |             35 | gp1001     | 2018-03-27 16:03:53 | 1            |
      |  18 | 43 - Dayton, OH - 50MB                     |       |               1 |             33 | gp1001     | 2018-03-27 16:50:25 | 1            |
      |  19 | 44 - Marion, IN. - 10MB                    |       |               1 |             22 | gp1001     | 2018-03-28 10:10:30 | 1            |
      |  20 | 99 - Mobile Office - MIFI                  |       |               1 |             23 | gp1001     | 2018-03-29 16:28:13 | 1            |
      |  21 | 27 - Indianapolis, IN. - 5MB               |       |               1 |             26 | gp1001     | 2018-04-03 13:31:21 | 1            |
      |  23 | 36 - Springfield, IL - 10MB                |       |               1 |             25 | gp1001     | 2018-04-11 11:20:02 | 1            |
      |  26 | 32 - Hecla                                 |       |               1 |             29 | gp1001     | 2018-06-08 17:04:05 | 1            |
      |  25 | 10 - Byron Center                          |       |               1 |              1 | gp1001     | 2018-05-01 16:40:42 | 1            |
      |  27 | 15 - Hamtramck                             |       |               1 |             28 | gp1001     | 2018-06-11 09:38:24 | 1            |
      |  28 | 12 - Ypsilanti, MI                         |       |               1 |             30 | gp1001     | 2018-06-11 10:42:42 | 0            |
      |  30 | 31 - Grand Haven Road, Spring Lake MI -    |       |               1 |             44 | gp1001     | 2019-07-29 13:15:55 | 0            |
      |  29 | 38 - St Louis                              |       |               1 |             43 | gp1001     | 2019-05-31 16:00:28 | 1            |
      +-----+--------------------------------------------+-------+-----------------+----------------+------------+---------------------+--------------+
      26 rows in set (0.00 sec)
      
      
      posted in FOG Problems
      Greg PlamondonG
      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
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 20
    • 21
    • 7 / 21