• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Cannot change fog hostname of a machine

Scheduled Pinned Locked Moved Solved
FOG Problems
cannot change hostname
2
3
897
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    kick54
    last edited by Sep 12, 2017, 6:08 PM

    Server
    • FOG Version: 1.4.4
    • OS: Linux Ubuntu
    Client
    • Service Version: 0.11.12
    • OS: W7
    Description

    Hello everybody !

    Here is my problem :
    I can’t change the host name of a machine to a certain value (crn-cr02-19p) in fog interface.
    However, the “certain value” host name is not in the “List All Host” list, but I find that it appears in the “hosts” table (SQL) while the host key doesn’t appear in “hostMAC” table.

    … for the moment I set another value(crn-cr02-19), but obviously this is not the real host name 😞

    I hesitate to abruptly delete the “extra” line in the ‘host’ table …

    Is there a “clean” method for putting the database back into a healthy state ?

    Thanks for your help

    Christian

    mysql> select hostID, hostName from hosts where hostName like '%cr02-19%';
    +--------+--------------+
    | hostID | hostName     |
    +--------+--------------+
    |    394 | crn-cr02-19p | <<--- the the "certain value" ...
    |    413 | crn-cr02-19  |
    +--------+--------------+
    mysql> select hmHostID, hmMAC from hostMAC where hmHostID in (394, 413) ;
    +----------+-------------------+
    | hmHostID | hmMAC             |
    +----------+-------------------+
    |      413 | 74:e6:e2:d7:d0:c4 | ... that i want to link to this machine (MAC address)
    +----------+-------------------+
    
    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Sep 12, 2017, 7:01 PM

      run:
      DELETE from hosts where hostID=394;

      Then just edit from GUI or edit directly in db:
      UPDATE hosts SET hostName='crn-cr02-19p' WHERE hostID=413;

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • K
        kick54
        last edited by Sep 13, 2017, 5:59 AM

        Hello,
        I deleted the record and then I updated “crn-cr02-19” with fog’s graphic interface
        It’s OK
        Thanks a lot !

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          Last post

        151

        Online

        12.1k

        Users

        17.3k

        Topics

        155.3k

        Posts
        Copyright © 2012-2024 FOG Project