• 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: Postdownload scripts variable issues.

      @Tom-Elliott
      That was it, Tom. Thank you so much for helping me with this. I was starting to lose some hair!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Postdownload scripts variable issues.

      To debug a little further, I placed an echo statement and debugPause before the case statement.

              echo "Othertag = $othertag"
              debugPause
              case $othertag in
                 [Hh][Oo][Mm][Ee])
                      . ${postdownpath}fog.replace-files_home
                      . ${postdownpath}fog.eastereggs
                      . ${postdownpath}fog.drivers
                      ;;
                 [Bb][Aa][Yy])
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files_bay
                      . ${postdownpath}fog.eastereggs
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_bay
                      ;;
                 [Kk][Ee][Ee][Nn][Aa][Nn])
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files_keenan
                      . ${postdownpath}fog.eastereggs
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_keenan
                      ;;
                 [Mm][Tt][Ss])
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files
                      . ${postdownpath}fog.eastereggs
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_mts
                      ;;
                   *)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files
                      . ${postdownpath}fog.eastereggs
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_mts
                      ;;
              esac
      

      While running a debug deploy, it returned: Othertag=

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Postdownload scripts variable issues.

      @Tom-Elliott said in Postdownload scripts variable issues.:

      @Greg-Plamondon Are you sure the machien that’s loading has an other1 tag defined to it?

      Looking at the php that returns the export variables, other1 maps to $othertag and other2 maps to $othertag1

      Tom,

      I ran this query on the fog database to confirm the field is populate.

      SELECT *
          -> FROM inventory
          -> WHERE iHostID = 248;
      +-----+---------+--------------+-----------+------------+---------------------+---------------------+---------+-------------+-------------------+------------+---------------+--------------+-------------+------------+--------+----------------+------------------------------+-----------+----------+----------------------+------------------------------------------+-------------------------+---------------------+----------------------+---------------------------+-------------+----------------+----------+----------+-------------+------------+--------------------------------------+-------------------+-----------------+
      | iID | iHostID | iPrimaryUser | iOtherTag | iOtherTag1 | iCreateDate         | iDeleteDate         | iSysman | iSysproduct | iSysversion       | iSysserial | iSystype      | iBiosversion | iBiosvendor | iBiosdate  | iMbman | iMbproductname | iMbversion                   | iMbserial | iMbasset | iCpuman              | iCpuversion                              | iCpucurrent             | iCpumax             | iMem                 | iHdmodel                  | iHdfirmware | iHdserial      | iCaseman | iCasever | iCaseserial | iCaseasset | iSystemUUID                          | iGpuvendors       | iGpuproducts    |
      +-----+---------+--------------+-----------+------------+---------------------+---------------------+---------+-------------+-------------------+------------+---------------+--------------+-------------+------------+--------+----------------+------------------------------+-----------+----------+----------------------+------------------------------------------+-------------------------+---------------------+----------------------+---------------------------+-------------+----------------+----------+----------+-------------+------------+--------------------------------------+-------------------+-----------------+
      | 205 |     248 |              | HOME      | HOME       | 2022-05-18 15:47:26 | 0000-00-00 00:00:00 | LENOVO  | 10MR0004US  | ThinkCentre M710q | MJ080Q8C   | Type: Mini PC | M1AKT48A     | LENOVO      | 11/22/2019 | LENOVO | 3111           | SDK0J40697 WIN 3305170406748 |           |          | Intel(R) Corporation | Intel(R) Core(TM) i5-7500T CPU @ 2.70GHz | Current Speed: 2600 MHz | Max Speed: 3300 MHz | MemTotal: 7934940 kB | SAMSUNGMZVLB256HAHQ-000L7 | 1L2QEXD7    | S41GNX1KA42571 | LENOVO   | None     | MJ080Q8C    |            | e3669280-1ea8-11e9-892a-6e6ca85d4600 | Intel Corporation | HD Graphics 630 |
      +-----+---------+--------------+-----------+------------+---------------------+---------------------+---------+-------------+-------------------+------------+---------------+--------------+-------------+------------+--------+----------------+------------------------------+-----------+----------+----------------------+------------------------------------------+-------------------------+---------------------+----------------------+---------------------------+-------------+----------------+----------+----------+-------------+------------+--------------------------------------+-------------------+-----------------+
      1 row in set (0.001 sec)
      
      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Postdownload scripts variable issues.

      @Greg-Plamondon said in Postdownload scripts variable issues.:

      @Tom-Elliott

      Well, this seems strange to me…
      I can see the field populated in the GUI, but if I look in the database in the inventory table for host ID 248, the iOtherTag and iOthertag1 tables are empty

      iID 248 wasn’t the host i thought it was. I needed to search for I iHostID 248 set the other tag to a specific string and verified it was getting set in the database, So it is getting set in the table from the GUI.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Postdownload scripts variable issues.

      @Tom-Elliott

      Well, this seems strange to me…
      I can see the field populated in the GUI, but if I look in the database in the inventory table for host ID 248, the iOtherTag and iOthertag1 tables are empty

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Postdownload scripts variable issues.

      @Tom-Elliott
      When in debug, if I type “echo $othertag” it doesn’t return any results.

      echo $hostname, $osid, $mac all return results.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Postdownload scripts variable issues.

      I am having issues with the $othertag populating when imaging a pc.
      if I set the Othertag under the host inventory to “Home” it doesn’t fire the appropriate “fog.replace-files_home” postdownload script.
      I am running Version 1.5.10.1639

      Thanks!

      #!/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
                  umount /ntfs >/dev/null 2>&1
                  fsTypeSetting "$part"
                  case $fstype in
                      ntfs)
                          dots "Testing partition $part"
                          ntfs-3g -o force,rw $part /ntfs
                          ntfsstatus="$?"
                          if [[ ! $ntfsstatus -eq 0 ]]; then
                              echo "Skipped"
                              continue
                          fi
                          if [[ ! -d /ntfs/windows && ! -d /ntfs/Windows && ! -d /ntfs/WINDOWS ]]; then
                              echo "Not found"
                              umount /ntfs >/dev/null 2>&1
                              continue
                          fi
                          echo "Success"
                          break
                          ;;
                      *)
                          echo " * Partition $part not NTFS filesystem"
                          ;;
                  esac
              done
              if [[ ! $ntfsstatus -eq 0 ]]; then
                  echo "Failed"
                  debugPause
                  handleError "Failed to mount $part ($0)\n    Args: $*"
              fi
              debugPause
              case $othertag in
                 [Hh][Oo][Mm][Ee])
                      . ${postdownpath}fog.replace-files_home
                      . ${postdownpath}fog.eastereggs
                      . ${postdownpath}fog.drivers
                      ;;
                 [Bb][Aa][Yy])
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files_bay
                      . ${postdownpath}fog.eastereggs
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_bay
                      ;;
                 [Kk][Ee][Ee][Nn][Aa][Nn])
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files_keenan
                      . ${postdownpath}fog.eastereggs
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_keenan
                      ;;
                 [Mm][Tt][Ss])
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files
                      . ${postdownpath}fog.eastereggs
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_mts
                      ;;
      
                   *)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files
                      . ${postdownpath}fog.eastereggs
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad_mts
                      ;;
              esac
              umount /ntfs
              ;;
          *)
              echo "Non-Windows Deployment"
              debugPause
              return
              ;;
      esac
      
      
      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Location Plugin - PHP Warning and Location Assigned Node not working

      @Clebboii
      I have the same issue. I have 27 storage nodes using the Location plugin. When adding a storage node, I have to manually assign the Storage group to the new location via editing it in mysql

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Fogservice is transferring a lot of network data

      @Midview-Tech
      I Like being able to deploy software to the remote clients from time to time so disabling the fogservice isn’t an option for us.
      What we did is change the “CLIENT CHECKIN TIME” under fog settings in the console so it doesn’t check in so often.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • fog replication stops

      I am seeing the following:
      alt text

      When this happens I need to restart:
      FOGImageSize
      FOGImageReplicator
      FOGPingHosts
      FOGMulticastManager
      FOGSnapinHash
      FOGSnapinReplicator

      in order for things to start replicating again.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Log Viewer Permissions issue.

      Ubuntu 20.04.4 LTS
      I am getting the following error message in the GUI when trying to view the apache error log.

      Unable to open file for reading
      

      here is the /var/log/apache2/error.log

      [Tue Aug 09 13:12:08.387251 2022] [proxy_fcgi:error] [pid 2159911] [client 192.168.10.238:34466] AH01071: Got error 'PHP message: PHP Warning:  fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/fog/status/logtoview.php on line 86'
      
      
      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: mysql query for user tracking

      @george1421
      I need to know what PC a user has logged into.
      you can find it in the GUI under Reports > User Tracking

      from there you can type a users login ID ito the field and search it will list what PC the user has logged into.

      posted in General Problems
      Greg PlamondonG
      Greg Plamondon
    • mysql query for user tracking

      Can anyone help me with a Mysql query to track users?
      I would like to search by username.

      The reason I am asking is the user tracking function is giving me fits, we have a very large database.

      Thanks.

      posted in General Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Ubuntu 18.04 LTS - Install Fails

      @george1421
      Thanks, I did manage to get fog installed, turns out that I was using the TFTP password and not the MySQL Password, it was a long day and I am glad it’s Friday!

      What other tweaks do you have for me?

      Thanks!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Disable USB support in iPXE?

      @markg said in Disable USB support in iPXE?:

      FOG.

      Do you have Secure boot disabled in BIOS?

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Ubuntu 18.04 LTS - Install Fails

      @george1421 said in Ubuntu 18.04 LTS - Install Fails:

      ng not intel.

      I am installing it on an Raspberry Pi4

      *** Sorry forgot the log

      fog_error_1.5.9.log

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Ubuntu 18.04 LTS - Install Fails

      I am trying to install a fog v1.5.9 on Ubuntu 18.04.02 LTS and its failing.

       * Setting up fogproject user..................................Skipped
       * Locking fogproject as a system account......................OK
       * Setting up fogproject password..............................OK
       * Checking connection to master database......................Failed!
      
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      !! The installer was not able to run all the way to the end as   !!
      !! something has caused it to fail. The following few lines are  !!
      !! from the error log file which might help us figure out what's !!
      !! wrong. Please add this information when reporting an error.   !!
      !! As well you might want to take a look at the full error log   !!
      !! in /root/fogproject-1.5.9/bin/error_logs/fog_error_1.5.9.log !!
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      
      ii  vsftpd         3.0.3-9build1 arm64        lightweight, efficient FTP server written for security
      ii  wget           1.19.4-1ubuntu2.2 arm64        retrieves files from the web
      ii  xinetd         1:2.3.15.3-1 arm64        replacement for inetd with many enhancements
      ii  zlib1g:arm64   1:1.2.11.dfsg-0ubuntu2 arm64        compression library - runtime
      Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
      root@FOGPI-DEV:~/fogproject-1.5.9/bin#
      
      

      Does anyone have a fix for this?
      Thanks.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Fog Client not auto registering hosts

      Fog Server 1.59
      Fog Client V 0.12.0

      
       2/10/2022 11:05:03 AM Service Sleeping for 70 seconds
       2/10/2022 11:06:13 AM Middleware::Communication URL: http://10fogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json
       2/10/2022 11:06:13 AM Middleware::Response Success
       2/10/2022 11:06:13 AM Middleware::Communication URL: http://10fogserver/fog/management/index.php?sub=requestClientInfo&mac=00:09:0F:FE:00:01|00:09:0F:AA:00:01|BC:E9:2F:DE:40:8B|C8:58:C0:F4:AC:55|CA:58:C0:F4:AC:54|C8:58:C0:F4:AC:54|C8:58:C0:F4:AC:58&newService&json
       2/10/2022 11:06:13 AM Middleware::Response Invalid host
       2/10/2022 11:06:13 AM Middleware::Communication URL: http://10fogserver/fog/service/getversion.php?clientver&newService&json
       2/10/2022 11:06:13 AM Middleware::Communication URL: http://10fogserver/fog/service/getversion.php?newService&json
      
       2/10/2022 11:06:13 AM Service Creating user agent cache
       2/10/2022 11:06:13 AM Middleware::Response Module is disabled globally on the FOG server
       2/10/2022 11:06:13 AM Middleware::Response Module is disabled globally on the FOG server
       2/10/2022 11:06:13 AM Middleware::Response Module is disabled globally on the FOG server
      

      Long story short, I migrated to a new server and lost access to the old server cert files so now the clients do not authenticate to the new server.
      I have a script that uninstalls the old client and reinstalls the new 0.12.0 client but it doesn’t want to register the clients in fog.
      I don’t see pending hosts in the GUI.

      I do have FOG_CLIENT_HOSTREGISTER_ENABLED set to 1
      Any help would be greatly appreciated.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • 1 / 1