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

Host Name Max Characters

Scheduled Pinned Locked Moved
FOG Problems
2
4
608
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.
  • W
    WT_101
    last edited by Aug 4, 2022, 11:27 AM

    Hi,

    Wanted to ask if i were to enhance FOG Project max host name character to 50 is it possible to make the enhancement?

    As what i look on the code i just have to change the table structure & host name validation. Is there any things i need to take/notes?

    Why I need to make this changes due to I need to rename the host with longer name for some automation use case.

    Thank You
    Best Regards

    G 1 Reply Last reply Aug 4, 2022, 12:01 PM Reply Quote 0
    • G
      george1421 Moderator @WT_101
      last edited by Aug 4, 2022, 12:01 PM

      @wt_101 This is really a question for the developers, but…

      Looking into the code it looks like you can update the database schema to 50 and then change the web ui from 15 to 50 characters in here fog/lib/pages/hostmanagementpage.class.php search for maxlength=“15”

      I don’t see any other restrictions. There may be some qualifications when importing hosts via the web ui, but it looks like most of the code just takes hostname as it was entered.

      As you are debugging this keep an eye on the php-fpm error log in /var/logs directory. If something unexpected happens in the UI, look there for the details on what happened.

      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!

      W 1 Reply Last reply Aug 4, 2022, 2:32 PM Reply Quote 1
      • W
        WT_101 @george1421
        last edited by Aug 4, 2022, 2:32 PM

        @george1421 said in Host Name Max Characters:

        hosts

        I just look up from google the host name for windows is 15 characters. If i were to customized it should I remain the limit for windows?
        3a6c2ba2-573c-4479-bf97-7bbe125574df-image.png

        The enhancement for more characters length is only for linux os usage instead of windows

        G 1 Reply Last reply Aug 4, 2022, 3:20 PM Reply Quote 0
        • G
          george1421 Moderator @WT_101
          last edited by george1421 Aug 4, 2022, 9:21 AM Aug 4, 2022, 3:20 PM

          @wt_101 Well juggling three with running chainsaws doesn’t make it a bad idea, does it?

          The 15 character limit is a windows NT thing. Since the majority of the folks that use fog for image deployment the developers have set it to 15 characters. If you have a use case where you need more than 15, I don’t see the harm in expanding it to more than 15 characters. That is the beauty of opensource. If it doesn’t work for you out of the box, if you have the skills you can change it.

          You just need to be mindful if you have to interact with windows that the computer name might get truncated 15 characters when the computer name is set.

          But also be aware that I don’t know of anyone who has tried to set computer names long that the MS defined standards either. Other things in FOG may break (thinking fog client if its hard coded at 15 characters).

          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!

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

          199

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project