• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Mwebb_Sureline
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Mwebb_Sureline

    @Mwebb_Sureline

    0
    Reputation
    182
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Mwebb_Sureline Unfollow Follow

    Latest posts made by Mwebb_Sureline

    • RE: Register Host using Chassis Serial number

      Thanks for the quick response šŸ™‚

      I’d be happy to use quick register, but I can’t see where to change the host from registering with the MAC address and instead register with the Chassis serial number…

      I’d also like it to prompt for which Image ID, but that’s not a must.

      I did have this working on 0.32 using this:

      host=echo $caseserial | base64;

      posted in FOG Problems
      M
      Mwebb_Sureline
    • Register Host using Chassis Serial number

      Hi All,

      I’ve been trying to adjust fog so when we use a custom fog registration it doesn’t prompt for the Hostname but instead uses the chassis serial number which for Dell’s and HP’s normally relates to the service tag.

      To create the custom.fog.reg I’ve duplicated fog.man.reg and changed line 158 from: ā€˜read host’

      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=$(wget --post-data="host=$host" -qO - http://${web}service/hostnameloop.php 2>/dev/null)
          [[ $res != "#!ok" ]] && echo "$res"
      

      To

      # 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=$(wget --post-data="host=$host" -qO - http://${web}service/hostnameloop.php 2>/dev/null)
      #    [[ $res != "#!ok" ]] && echo "$res"
      #done
      host=$(dmidecode -s chassis-serial-number)
      echo ā€œHost: ${host}ā€
      

      Using the code from funcs.sh to grab the chassis-serial number unfortunately this is not working and the pxe seems to load the BZimage and then just skips to ā€œcompleteā€ then reboots.

      Can someone please help?

      Please go easy on my I’m learning as I go here and this is all new territory to me!

      posted in FOG Problems
      M
      Mwebb_Sureline