If I type "echo $HostName" in terminal the system will return the actual host name of the computer because that value is an environmental variable that can be read with this method. "LocalHostName" doesn't seem to be an environmental variable that can be extracted in this manner. Anybody know how I might be able to get a hold of LocalHostName for use in a script?
When I use Casper Imaging to set the name of a computer it seem that Casper Imaging sets the "LocalHostName" (link local address) to what I have specified but not "HostName" or "ComputerName". I would like to find a way to set ComputerName with the same value I have in LocalHostName but I am having trouble. I have a script in mind that would extract LocalHostName from the system and copy that into ComputerName but I can't find a way to get LocalHostName into the script. I am probably going about this the wrong way so if there is a better method to get ComputerName and LocalHostName to match at the time of imaging I would love to hear about it. Thanks.