• 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
    869
    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.
    • kick54K
      kick54
      last edited by

      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
      • Tom ElliottT
        Tom Elliott
        last edited by

        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
        • kick54K
          kick54
          last edited by

          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
          • First post
            Last post

          174

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project