+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
O/S Deployment Thread, HostnameChanger Could not find any recognizable digits in Technical; Ive setup FOG over the holidays and - after a shed load of testing - it appears to be working ...
  1. #1

    Join Date
    Sep 2005
    Posts
    143
    Thank Post
    0
    Thanked 3 Times in 3 Posts
    Rep Power
    18

    HostnameChanger Could not find any recognizable digits

    Ive setup FOG over the holidays and - after a shed load of testing - it appears to be working nicely! Tested, tested and tested again my image until it was right, everything on FOG service I wanted was working (hostname registration/changing only). Got all the drivers right/working Sysprep'd, took image, imaged out to about 150pcs over weekend, no probs!

    Came in today (Monday off) and the hostname changer isnt working, and wont register them on the domain.
    Ive enabled hostname changer for the 'host' and globally in fog.
    Heres what the log says:
    Code:
     18/08/2009 14:22 FOG Service Engine Version: 3
     18/08/2009 14:22 Starting all sub processes
     18/08/2009 14:22 3 modules loaded
     18/08/2009 14:22  * Starting FOG.SnapinClient
     18/08/2009 14:22  * Starting FOG.HostNameChanger
     18/08/2009 14:22 FOG::ClientUpdater Starting client update process...
     18/08/2009 14:22 FOG::ClientUpdater Sleeping for 435 seconds.
     18/08/2009 14:22  * Starting FOG.HostRegister
     18/08/2009 14:22 FOG::HostnameChanger Starting hostname change process...
     18/08/2009 14:22 FOG::HostnameChanger Yielding to other subservices for 8 seconds.
     18/08/2009 14:22 FOG::HostRegister Starting host registration process...
     18/08/2009 14:22 FOG::HostRegister Attempting to connect to fog server...
     18/08/2009 14:22 FOG::HostRegister Module is active...
     18/08/2009 14:22 FOG::HostRegister Attempting to connect to fog server...
     18/08/2009 14:22 FOG::HostRegister MAC already registered.
     18/08/2009 14:22 FOG::HostnameChanger Attempting to connect to fog server...
     18/08/2009 14:22 FOG::HostnameChanger Module is active...
     18/08/2009 14:22 FOG::HostnameChanger AD mode requested, confirming settings.
     18/08/2009 14:22 FOG::HostnameChanger Could not find any recognizable digits.
     18/08/2009 14:22 FOG::HostnameChanger    at System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos)
       at System.Convert.ToByte(String value, Int32 fromBase)
       at FOG.FOGCrypt.hexToByte(String hex)
       at FOG.HostNameChanger.changeHostName()
    Any ideas? It worked fine on my test image pc when asking it to rename the pc just before i took the image.
    Also installed it onto a working pc with the previous image, works fine, renames/joins domain ok.
    I was hoping this little service was going to save me a shed load of time wandering round rooms!

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223
    Seems to be barfing on your password.

  3. #3

    Join Date
    Sep 2005
    Posts
    143
    Thank Post
    0
    Thanked 3 Times in 3 Posts
    Rep Power
    18
    Cheers!
    Generated the encrypted password again with FOGCrypt and seems to have fixed it. Im going to blame copy and paste :P

  4. #4

    Join Date
    Nov 2010
    Posts
    401
    Thank Post
    56
    Thanked 58 Times in 52 Posts
    Rep Power
    25
    Note to others with problems here (aka fruits of an hour or twos head-scratching).

    AD password is specified in system settings and per host.

    It needs to be encrypted by FOGCrypt which exists in /opt/fog-setup/fog_0.30/FOGCrypt . This needs to be transferred (with the etc dir and contents) to a windows machine and run there.

    In the AD settings for the host, under fog 0.30, the domain username has to be specified as domain\username.

    Fog 0.30, Ubuntu 10.04 LTS, Dell GX620

  5. #5

    Join Date
    Apr 2008
    Location
    Aigburth, Liverpool
    Posts
    154
    Thank Post
    31
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    I don't suppose anyone knows why FOG is changing the hostname of the workstations to the MAC address of the network card? I simply can't get the hostname changer to work. Anyone have any ideas?

  6. #6
    Chad's Avatar
    Join Date
    May 2007
    Location
    Elgin
    Posts
    74
    Thank Post
    5
    Thanked 20 Times in 19 Posts
    Rep Power
    18
    It uses the mac if you do a quick register on the host rather than a full register, in which case it asks what hostname you want the PC to have. Quick registration doesn't require any user input so FOG makes up values based on the values set under "FOG Settings".

    If you list the hosts from the FOG server web interface you'll see what it thinks they should be called, and you can rename them there to whatever naming scheme you really want. Next reboot, the PCs will check in with FOG and they'll see they have a new name assigned and change themselves to match.

    You can also change the default naming convention should you prefer to use quick registration from FOG settings. Rather than MAC based you can make it, e.g. PC-xxxx where xxxx is an auto incrementing number.

    Cheers,

    Chad

  7. Thanks to Chad from:

    sven (24th May 2011)

  8. #7

    Join Date
    Apr 2008
    Location
    Aigburth, Liverpool
    Posts
    154
    Thank Post
    31
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    Brilliant, I can see exactly where you are coming from on this. I keep getting a failure with the hostname changer, saying that it couldn't find and recognizable digits. I working on some stuff I have read about FOGCrypt, in relation to changing the passkey and running it on the Windows machine or something. If I have any other questions I will write back. thanks for your time.

  9. #8
    Chad's Avatar
    Join Date
    May 2007
    Location
    Elgin
    Posts
    74
    Thank Post
    5
    Thanked 20 Times in 19 Posts
    Rep Power
    18
    No problem!

    The failure you're getting seems to be related to the password as suggested. To initially get things working I left the pass-phrase in the hostnamechanger.dll at the default and encrypted the password for the AD account I used with the FOGCrypt tool. Once you get it working then you can look at securing it up by changing the pass-phrase and recompiling hostnamechanger.dll if you wish. Don't forget that all the clients will need this modified version copied to them too though.

  10. #9

    Join Date
    Apr 2008
    Location
    Aigburth, Liverpool
    Posts
    154
    Thank Post
    31
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    Typically, I just get the following:

    C:\>FOGCrypt password

    Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
    embly 'IniReaderObj, Version=1.0.2424.11454, Culture=neutral, PublicKeyToken=nul
    l' or one of its dependencies. The system cannot find the file specified.
    File name: 'IniReaderObj, Version=1.0.2424.11454, Culture=neutral, PublicKeyToke
    n=null'
    at FOGCrypt.Program..ctor(String strData)
    at FOGCrypt.Program.Main(String[] args)

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\M
    icrosoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus
    ion!EnableLog].

  11. #10
    Chad's Avatar
    Join Date
    May 2007
    Location
    Elgin
    Posts
    74
    Thank Post
    5
    Thanked 20 Times in 19 Posts
    Rep Power
    18
    I've never had FOGCrypt fail on me like that! Do you have another PC you can try it on, or do you get the same result there? Have you tried downloading it again, perhaps it's corrupt or didn't extract properly? I think I extracted it from the tar.gz on my PC using 7zip and it was fine.

  12. #11

    Join Date
    Apr 2008
    Location
    Aigburth, Liverpool
    Posts
    154
    Thank Post
    31
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    Got it working. some further reading revealed I needed Microsoft Support tools installing before it would work. Back to work!

  13. #12
    Chad's Avatar
    Join Date
    May 2007
    Location
    Elgin
    Posts
    74
    Thank Post
    5
    Thanked 20 Times in 19 Posts
    Rep Power
    18
    Do you mean netdom? That's no longer required as from FOG v0.29 - I've never installed it and hostname changes and domain joins work fine. Are you on an old version of FOG?

    Glad you got it working anyway!

  14. #13

    Join Date
    Apr 2008
    Location
    Aigburth, Liverpool
    Posts
    154
    Thank Post
    31
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    No, I'm on FOG 0.30. Whatever I did worked. Just firing an image onto a workstation now, and hopefully it should change the hostname on completion. Thanks for your help!

  15. #14

    Join Date
    Apr 2008
    Location
    Aigburth, Liverpool
    Posts
    154
    Thank Post
    31
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    Still no joy. I still get a message about "unrecognized digits", even after adding the encrypted password into FOG Settings, as well as checking that each host is using the correct username and pass. I have also specified the domain name in the username field as suggested in the posts above.

  16. #15

    Join Date
    Apr 2008
    Location
    Aigburth, Liverpool
    Posts
    154
    Thank Post
    31
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    FQDN sorted that right out! The hostname now changes perfectly. Just got to get it to join the domain and my life will be complete

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Find OU for PC
    By somabc in forum Windows
    Replies: 8
    Last Post: 8th January 2009, 02:31 PM
  2. Where will I find . . .
    By leco in forum Educational IT Jobs
    Replies: 5
    Last Post: 7th December 2008, 11:27 PM
  3. Help me find...
    By originofsymmetry in forum Hardware
    Replies: 0
    Last Post: 16th October 2007, 11:38 AM
  4. You can find me at
    By Gatt in forum General Chat
    Replies: 12
    Last Post: 21st May 2007, 09:06 PM
  5. Can you find it?
    By Gatt in forum Jokes/Interweb Things
    Replies: 24
    Last Post: 15th February 2007, 12:03 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •