• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Chris Whiteley
    3. Posts
    • Profile
    • Following 2
    • Followers 1
    • Topics 37
    • Posts 173
    • Best 6
    • Controversial 0
    • Groups 0

    Posts made by Chris Whiteley

    • RE: Specific OU's during host registration

      I would love to chat with you and get help on this. I am not so savvy with too much being in the weeds of linux/database stuff, but I would certainly love to know how to do this. Any time you have I am more than willing to sit and chat.

      Thank you!

      posted in General
      Chris WhiteleyC
      Chris Whiteley
    • Specific OU's during host registration

      Developers and fellow ridiculously smart people,

      I am trying to find a way to be able to create a question within the “Full Host Registration” to be able to ask what OU I would like to put it in, so this question has 2 parts to it.

      1. Can there be an option to create the option to choose an OU like you do an image or Snapin?
      2. Can we export some sort of data from our active directory that would populate the Database in FOG so that when using the ? feature, it would bring up our OU’s and fill the “Orginizational Unit (Blank for Default)” slot for the Host?

      I know this is a lot to ask for, but I am always looking for a way to save myself some time and this would be a HUGE time saver.

      Thanks,

      posted in General
      Chris WhiteleyC
      Chris Whiteley
    • RE: Host Registration Automatically

      Thank you 🙂 That worked great!

      posted in General
      Chris WhiteleyC
      Chris Whiteley
    • RE: Host Registration Automatically

      I actually have both and was planning to use PDQ Deploy to push it out with a dynamic collection that I use from PDQ Inventory. I am working on that as we speak. I just didn’t know how to get FOG to allow the client in the system.

      Thank you!

      posted in General
      Chris WhiteleyC
      Chris Whiteley
    • Host Registration Automatically

      Hey All,

      I was wondering if anyone has had this same though before or not…I was wondering if it is possible to install the FOG client on all the machines I have, and then have FOG pull the computer information and create the host with all necessary data and then I can just add them to a group to do the finishing touches. I would love to not have to hand touch almost 800 machines…

      Thanks!

      posted in General
      Chris WhiteleyC
      Chris Whiteley
    • RE: Client with too many mac addresses

      @tom-elliott I am not quite sure what was wrong. I was working with someone else here on the forums on trying to do the automation and he had me run a script on mysql which ended up messing up a few things (accident). I was trying to work with the persistent groups piece. I ended up having to do a restore of the FOG server and that’s when the issues happened. I think I just had some duplicate entries somehow once I did the restore.

      I look forward to a new GUI layout! You guys are rock stars!

      posted in Linux Problems
      Chris WhiteleyC
      Chris Whiteley
    • RE: Client with too many mac addresses

      @wayne-workman This fixed it! Thank you!

      posted in Linux Problems
      Chris WhiteleyC
      Chris Whiteley
    • RE: Client with too many mac addresses

      @tom-elliott There are no pending macs in the “Pending Mac List”. There is an issue where this one machine has multiple mac addresses assigned to it and I can’t see them anywhere.

      posted in Linux Problems
      Chris WhiteleyC
      Chris Whiteley
    • RE: Client with too many mac addresses

      So I maybe didn’t word this correctly. In FOG I show only one Mac Address for this host. When FOG checks in on the client machine, it shows 3 Mac addresses. I need to find out where these 2 extras are in the database and delete them.

      posted in Linux Problems
      Chris WhiteleyC
      Chris Whiteley
    • Client with too many mac addresses

      Hey All,

      I am having an issue where one of my clients has too many mac addresses, yet I can’t see them in the FOG anywhere. I am looking for a command in mysql to delete mac addresses from a particular host. I am on version 1.4.4.

      I would be grateful for any help someone could provide!

      Thanks,

      posted in Linux Problems
      Chris WhiteleyC
      Chris Whiteley
    • RE: Limit FOG image download speed

      Thanks for your help! I will try the wondershare tool to see if I can limit it.

      posted in FOG Problems
      Chris WhiteleyC
      Chris Whiteley
    • Limit FOG image download speed

      Hey All,

      I know that in FOG you can limit the amount of sessions you have going simultaneously, but I curious if there is a way that regardless of the clients you have (50 or 2), it will only ever push half of a 1 Gbps link during download or upload? I have a site that is across a 1Gbps link and all internet traffic and phone traffic goes across it as well. I want to at most limit that to 500Mbps if possible. Any help would be much appreciated!

      Thanks,

      posted in FOG Problems
      Chris WhiteleyC
      Chris Whiteley
    • RE: Automatically add FOG Snapin on registration

      Thank you both for the replies! I would love to edit the fog.menu.reg to automatically select the snapin and not even ask the user about it. What would I do to make that happen? It is currently snapin ID = 3.

      #!/bin/bash
      . /usr/share/fog/lib/funcs.sh
      clearScreen
      displayBanner
      disks=""
      disk=""
      hd=""
      getHardDisk
      sysman=""
      sysman64=""
      sysproduct=""
      sysproduct64=""
      sysversion=""
      sysversion64=""
      sysserial=""
      systype=""
      biosversion=""
      biosvendor=""
      biosdate=""
      mbman=""
      mbproductname=""
      mbversion=""
      mbserial=""
      mbasset=""
      cpuman=""
      cpuversion=""
      cpucurrent=""
      cpumax=""
      mem=""
      hdinfo=""
      caseman=""
      casever=""
      caseserial=""
      casesasset=""
      sysserial64=""
      systype64=""
      biosversion64=""
      biosvendor64=""
      biosdate64=""
      mbman64=""
      mbproductname64=""
      mbversion64=""
      mbserial64=""
      mbasset64=""
      cpuman64=""
      cpuversion64=""
      cpucurrent64=""
      cpumax64=""
      mem64=""
      hdinfo64=""
      caseman64=""
      casever64=""
      caseserial64=""
      casesasset64=""
      dots "Using disk device"
      echo $hd
      echo " * Starting host registration"
      mac=$(getMACAddresses | base64)
      exists=$(curl -ks --data "mac=$mac" http://${web}service/man.hostexists.php 2>/dev/null)
      checkAndSet() {
          local testvar="$1"
          local onlynum="$2"
          [[ -z $testvar ]] && return
          if [[ $onlynum =~ [Tt][Rr][Uu][Ee] && $testvar =~ ^[0-9]+$ ]]; then
              echo $testvar | base64
          elif [[ $testvar =~ ^[0-9,]+$ ]]; then
              echo $testvar | base64
          else
              return
          fi
      }
      setIDs() {
          local varVar="$1"
          local str="$2"
          local csvstyle="$3"
          local dummy="$4"
          local max="$5"
          local res=""
          local url=""
          local oIFS=$IFS
          local line=""
          while [[ -z ${!varVar} ]]; do
              [[ $csvstyle =~ [Tt][Rr][Uu][Ee] ]] && echo -n "    Enter the $str IDs separated with , to associate with computer (? for listing): " || echo -n "    Enter the $str ID to associate with computer (? for listing): "
              read dummy
              dummy=$(echo $dummy | sed -e 's/^,//' -e 's/,$//')
              case $dummy in
                  [?])
                      url="http://${web}service/${str}listing.php"
                      clearScreen
                      res=$(echo -e $(curl -ks $url 2>/dev/null))
                      i=0
                      IFS=$'\n'
                      for line in $res; do
                          let i+=1
                          echo $line
                          if [[ $i -eq $max ]]; then
                              [[ $csvstyle =~ [Tt][Rr][Uu][Ee] ]] && echo -n "    Press [Enter] to proceed or enter the $str IDs separated with , to associate with computer: " || echo -n "    Press [Enter] to proceed or enter the $str ID to associate with computer: "
                              read dummy
                              case $dummy in
                                  [?]|"")
                                      i=0
                                      clearScreen
                                      continue
                                      ;;
                              esac
                              case $csvstyle in
                                  [Tt][Rr][Uu][Ee])
                                      [[ $dummy =~ ^[0-9,]+$ ]] && printf -v "$varVar" $(checkAndSet $dummy) || setIDs "$varVar" "$str" "$csvstyle" "$dummy" "$max"
                                      break
                                      ;;
                                  *)
                                      [[ $dummy =~ ^[0-9]+$ ]] && printf -v "$varVar" $(checkAndSet $dummy "true") || setIDs "$varVar" "$str" "$csvstyle" "$dummy" "$max"
                                      break
                                      ;;
                              esac
                              i=0
                              dummy=$(echo $dummy | sed -e 's/^,//' -e 's/,$//')
                              clearScreen
                          fi
                      done
                      ;;
                  ""|0)
                      printf -v "$varVar" 0
                      ;;
                  *)
                      dummy=$(echo $dummy | sed -e 's/^,//' -e 's/,$//')
                      [[ -z $dummy ]] && setIDs "$varVar" "$str" "$csvstyle" "$dummy" "$max"
                      case $csvstyle in
                          [Tt][Rr][Uu][Ee])
                              [[ $dummy =~ ^[0-9,]+$ ]] && printf -v "$varVar" $(checkAndSet $dummy) || setIDs "$varVar" "$str" "$csvstyle" "$dummy" "$max"
                              ;;
                          *)
                              [[ $dummy =~ ^[0-9]+$ ]] && printf -v "$varVar" $(checkAndSet $dummy "true") || setIDs "$varVar" "$str" "$csvstyle" "$dummy" "$max"
                              ;;
                      esac
                      ;;
              esac
          done
          IFS=$oIFS
      }
      [[ $exists != "#!ok" ]] && handleError "Unable to register host: $exists ($0)\n   Args Passed: $*"
      host=""
      ip=""
      productKey=""
      imageid=""
      primaryuser=""
      other1=""
      other2=""
      blImage=""
      blDoAddGroup=""
      blDoAddSnapin=""
      keyEnter=""
      blDoAD=""
      res=""
      while [[ $res != "#!ok" ]]; do
          echo -n " * Enter hostname for this computer: "
          read host
          if [[ ${#host} -gt 15 ]]; then
              host=${host:0:15}
              echo " | Truncated to 15 characters: $host"
              usleep 2000000
          fi
          host=$(echo $host | base64)
          res=$(curl -ks --data "host=$host" http://${web}service/hostnameloop.php 2>/dev/null)
          [[ $res != "#!ok" ]] && echo "$res"
      done
      imageid=""
      setIDs "imageid" "image" "" "" 20
      if [[ $(curl -ks http://${web}service/locationcheck.php 2>/dev/null) == "##" ]]; then
          while [[ -z $askme ]]; do
              echo -n "    Would you like to assign a location for this host? (y/N) "
              read askme
              case $askme in
                  [Nn]|[Nn][Oo]|"")
                      askme="N"
                      ;;
                  [Yy]|[Yy][Ee][Ss])
                      setIDs "locationid" "location" "" "" 20
                      location64=$locationid
                      ;;
                  *)
                      askme=""
                      echo " * Invalid input, please try again"
                      ;;
              esac
          done
      fi
      askme=""
      while [[ -z $askme ]]; do
          echo -n "    Would you like to associate this host with groups? (y/N) "
          read askme
          case $askme in
              [Nn]|[Nn][Oo]|"")
                  askme="N"
                  ;;
              [Yy]|[Yy][Ee][Ss])
                  setIDs "groupid" "group" "true" "" 20
                  group64=$groupid
                  ;;
              *)
                  askme=""
                  echo " * Invalid input, please try again"
                  ;;
          esac
      done
      askme=""
      while [[ -z $askme ]]; do
          echo -n "    Would you like to associate this host with snapins? (y/N) "
          read askme
          case $askme in
              [Nn]|[Nn][Oo]|"")
                  askme="N"
                  ;;
              [Yy]|[Yy][Ee][Ss])
                  setIDs "snapinid" "snapin" "true" "" 20
                  snapin64=$snapinid
                  ;;
              *)
                  askme=""
                  echo " * Invalid input, please try again"
                  ;;
          esac
      done
      askme=""
      while [[ -z $askme ]]; do
          echo -n "    Would you like to associate a product key to this host? (y/N) "
          read askme
          case $askme in
              [Nn]|[Nn][Oo]|"")
                  askme="N"
                  ;;
              [Yy]|[Yy][Ee][Ss])
                  echo -n " * Enter the product key for this computer: "
                  read productKey
                  productKey=$(echo $productKey | base64)
                  ;;
              *)
                  askme=""
                  echo " * Invalid input, please try again"
                  ;;
          esac
      done
      askme=""
      while [[ -z $askme ]]; do
          echo -n "    Would you like this host to join a domain, (using default settings)? (y/N) "
          read askme
          case $askme in
              [Nn]|[Nn][Oo]|"")
                  askme="N"
                  ;;
              [Yy]|[Yy][Ee][Ss])
                  blDoAD=$(echo -n 1 | base64)
                  askme="Y"
                  ;;
              *)
                  askme=""
                  echo " * Invalid input, please try again"
                  ;;
          esac
      done
      askme=""
      while [[ -z $askme ]]; do
          echo -n "    Would you like to deploy image to this computer now? (y/N) "
          read askme
          case $askme in
              [Nn]|[Nn][Oo]|"")
                  askme="N"
                  ;;
              [Yy]|[Yy][Ee][Ss])
                  tmp=""
                  ret=""
                  retry=3
                  while [[ $ret != "#!ok" && ! $retry -eq 0 ]]; do
                      echo " * Enter FOG GUI Username and Password"
                      echo -n "    Username: "
                      read username
                      echo -n "    Password: "
                      read -s password
                      user64=$(echo $username | tr -d '\012' | base64)
                      pass64=$(echo $password | tr -d '\012' | base64)
                      ret=$(curl -ks --data "mac=$mac&username=$user64&password=$pass64" http://${web}service/checkcredentials.php 2>/dev/null)
                      case $ret in
                          '#!ok')
                              echo
                              echo " * This host will reboot and deployment will start!"
                              ret=$tmp
                              realdoimage=$(echo -n 1 | base64)
                              break
                              ;;
                          '#!il')
                              echo
                              echo " * Error: Invalid Login! ($retry remaining)"
                              let retry-=1
                              ;;
                      esac
                  done
                  askme="Y"
                  ;;
              *)
                  askme=""
                  echo " * Invalid input, please try again"
                  ;;
          esac
      done
      dots "Attempting to register host"
      res=""
      while [[ -z $res ]]; do
          res=$(curl -ks --data "mac=$mac&advanced=$(echo -n 1 | base64)&host=$host&imageid=$imageid$realdoimage&doad=$blDoAD&location=$location64&username=$user64&groupid=$group64&snapinid=$snapin64&productKey=$productKey" http://${web}service/auto.register.php 2>/dev/null)
          echo "$res"
          usleep 2000000
      done
      . /bin/fog.inventory
      usleep 2000000```
      posted in FOG Problems
      Chris WhiteleyC
      Chris Whiteley
    • Automatically add FOG Snapin on registration

      Hey All,

      I was wondering if there is a way to automatically add a snapin to every computer that registers with the FOG server and needs to be joined to the domain? I know that is very specific, but there are cases where we have machines that don’t need to be joined to the domain and don’t need the snapin software.

      Any help would be much appreicated!

      Thanks,

      posted in FOG Problems
      Chris WhiteleyC
      Chris Whiteley
    • FOG Server + PDQ Deploy Baseline Image

      Hello All,

      I am trying to get FOG imaging working with PDQ deploy and I can’t seem to figure out what I need to do to make it work. I have an image all setup and I have it join to our domain, but when it comes to running a powershell script to start a baseline package from PDQ deploy, I can’t seem to figure it out. I have tired multiple websites to figure out the answer and even the youtube video that PDQ deploy did, but the problem is that they didn’t really give any instruction, they just told what it did. Since I am pretty new to powershell I would love to get some help on how to make this work. These are the sites I looked at. Maybe someone can explain it better for me? We are using FOG 1.4.4 and PDQ Deploy version 15 release 4 (Paid version). We also have PDQ inventory (Paid).

      https://www.pdq.com/blog/automating-software-installs-for-imaged-computers/
      https://www.youtube.com/watch?v=xoxwUC-fOJU

      Thanks!

      posted in General
      Chris WhiteleyC
      Chris Whiteley
    • Dell Precision T3620

      I am trying to image my Dell Precision T3620 that has an Intel Rapid Storage Controller 12.0 and it will not even image. It just goes quickly through the imaging screen and says it will reboot in a second. I tried to do a hardware compatibility and it says that it has an error when seeing /dev/sda and /dev/sdb. Anyone run into this?

      posted in Hardware Compatibility
      Chris WhiteleyC
      Chris Whiteley
    • RE: MySQL and Deleting Hosts

      thanks a bunch, I actually used what you did there hostimage=#; and just entered all numbers but the ones we were using and that cleaned it up. Thanks!

      posted in General
      Chris WhiteleyC
      Chris Whiteley
    • RE: MySQL and Deleting Hosts

      So apparently there is a hostImage attached to them but it doesn’t exist anymore. Is there a way to find out what a particular host has as its hostImage?

      posted in General
      Chris WhiteleyC
      Chris Whiteley
    • MySQL and Deleting Hosts

      I was wondering if there would be a command in mysql that would delete hosts if they have no image assigned to them? I am trying to clean up old machines and that is the easiest way to do it. Thanks,

      posted in General
      Chris WhiteleyC
      Chris Whiteley
    • RE: Organizational Unit Feature

      Or here was another thought…

      Maybe we can set the “Join to group” option so that when a particular new machine gets joined to a group, it automatically pulls down the group settings for that group. (IE AD OU stuff)?

      posted in Feature Request
      Chris WhiteleyC
      Chris Whiteley
    • 1 / 1