Use serial number as hostname in Fog
-
@AlexisPHC You can set this by putting the name field of quick registration as {SYSSERIAL}
-
@Tom-Elliott said in Use serial number as hostname in Fog:
{SYSSERIAL}
Ah, lovely, thanks Tom, I’ll give that a go - I tried SYSSERIAL on it’s own and it didn’t work but didn’t realise it needed the curly brackets!
-
@AlexisPHC said in Use serial number as hostname in Fog:
did you ever get round to writing a guide for this?
Yes. I think the previous comment to your post referenced the files.
the file
fog.customhostnameuses a linux commanddmidecodeto extract the serial number from the smbios. And the rest of the ‘hack’ will pump that name into the full registration files. When I wrote that script I worked for a company that had a composite host name with the site code, a hardware type and then the dell asset tag appended onto the end. That is what this tutorial shows.Now Tom mentioned that
{SYSSERIAL}in the quick registration field works too. I wasn’t aware of that feature, it must be new. I know FOG version 0.30 had that feature but it was removed when FOG 1.x was released. If its back, that’s great!! that makes my script(s) unnecessary. -
@george1421 I’ll give that guide a whirl, {SYSSERIAL} doesn’t seem to work - this is what happened when I tried it!

-
@AlexisPHC I’m apologizing, yes SYSSERIAL is existing (in working-1.6).
If you’re willing (and slightly daring) you could update to the working-1.6 branch (give us another tester of it) and SYSSERIAL is re-introduced overthere.
I am workign with 2 different systems and often look in the primary place I’m working to find information. I can assure you the SYSSERIAL lookup/adjustment is in the working-1.6 branch (and that just happened to be where I was when I looked this up so again my apologies)
-
@Tom-Elliott aha, that explains it, I installed the stable branch and I’m on 1.5.10. Guess I need to upgrade then to working-1.6!
-
@Tom-Elliott can confirm, this does now appear to work in 1.6 - huzzah! @george1421 looks like your hard work has paid off and it will eventually be in the stable branch!