[Casper] Computer Name is not populating when imaging
Ryan Harter
rharter at uwsp.edu
Thu Nov 13 11:56:50 PST 2008
This may have been said, but I have seen when imaging a machine that
Casper does not seem to set all of the "computer names." What I mean
by this is that you can set the computer name using scutil with three
different locations, ComputerName, HostName, and LocalHostName. I
don't remember exactly what each is used for, but in the past we've
always wanted all of them to be set. I've found the most reliable
solution for this is to run a script at reboot that does:
#!/bin/bash
computerName=$2
scutil -set ComputerName $computerName
scutil -set HostName $computerName
scutil -set LocalHostName $computerName
This is only a workaround, but reliably renames the computer. I've
had issues where the computer just gets the name of the machine I
built the base image on if I don't.
Ryan Harter
UW - Stevens Point
Workstation Developer
715.346.2716
Ryan.Harter at uwsp.edu
On Nov 13, 2008, at 1:43 PM, Steve Wood wrote:
> And to be clear, the tests I’m running are on a system that is
> already imaged and running, and issuing the commands from the
> terminal. I am not laying down a new image on the machine.
>
>
> On 11/13/08 1:08 PM, "Ernst, Craig S." <ERNSTCS at uwec.edu> wrote:
>
>> No, it does not name it at startup for FirstRun, once the OS is
>> laid down and the packages, it runs commands against Macintosh HD
>> to name it before you boot to it. That would be why when you reboot
>> you see the correct name.
>>
>> Craig
>>
>> On 11/13/08 1:00 PM, "Steve Wood" <swood at integerdallas.com> wrote:
>>
>>> After executing the jamf binary command, and then using hostname
>>> or scutil, I still receive the old name of the computer. So, it
>>> appears that the jamf command must write to a startup item that
>>> renames the computer. Again, upon restart the name is changed.
>>>
>>>
>>>
>>> On 11/12/08 10:51 AM, "Miles Leacy" <miles.leacy at themacadmin.com>
>>> wrote:
>>>
>>>> 2008/11/12 Steve Wood <swood at integerdallas.com>
>>>>> The test that the JAMF folks had me try was to use the jamf
>>>>> binary to rename:
>>>>>
>>>>> sudo jamf setComputerName -target "/Volumes/Macintosh HD/" -name
>>>>> "JAMF"
>>>>>
>>>>> When we did that the name would not change in the Sharing Pref
>>>>> panel until the machine was restarted. Once restarted the
>>>>> machine showed the new name, JAMF in this case.
>>>>
>>>> If you execute "hostname" after running this command, what is the
>>>> output?
>>>>
>>>> What about "scutil --get ComputerName"?
>>>>
>>>> I ask because if the name is being changed, and it shows the new
>>>> name in the system tools that you will interact with, but you
>>>> just don't see it in the GUI until restart, is that really a
>>>> problem?
>>>>
>>>>
>>>
>>>
>>>
>>> Steve Wood
>>> Director of IT
>>> swood at integerdallas.com
>>>
>>> The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX
>>> 75201
>>> T 214.758.6813 | F 214.758.6901 | C 940.312.2475
>>>
>>>
>>> --
>>> The information contained in this email transmission is solely for
>>> the addressee(s) named above and is privileged and/or
>>> confidential. If the reader of this message is not the intended
>>> recipient or the person responsible to deliver it to the intended
>>> recipient; he or she is prohibited from reading or disclosing the
>>> information contained in this transmission. Any examination, use,
>>> dissemination, distribution, or copying of this communication is
>>> strictly prohibited. Please contact us immediately by telephone
>>> for instructions if you have received this communication in error:
>>> (214) 758-6800
>>>
>>
>> _______________________________________________
>> Casper mailing list
>> Casper at list.jamfsoftware.com
>> http://list.jamfsoftware.com/mailman/listinfo/casper
>
>
>
> Steve Wood
> Director of IT
> swood at integerdallas.com
>
> The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX
> 75201
> T 214.758.6813 | F 214.758.6901 | C 940.312.2475
>
>
> --
> The information contained in this email transmission is solely for
> the addressee(s) named above and is privileged and/or confidential.
> If the reader of this message is not the intended recipient or the
> person responsible to deliver it to the intended recipient; he or
> she is prohibited from reading or disclosing the information
> contained in this transmission. Any examination, use,
> dissemination, distribution, or copying of this communication is
> strictly prohibited. Please contact us immediately by telephone for
> instructions if you have received this communication in error: (214)
> 758-6800
> <ATT00001.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20081113/1fb5d249/attachment.html
More information about the Casper
mailing list