Posted on 03-17-2012 10:20 AM
I'm having a curious issue where machines being imaged aren't having their names applied. These machines haven't been imaged or reconned by the JSS in the past and if I add them to the inventory manually first they get named correctly.
Where I encounter the issue is when I try to image a new machine, I enter its name into Casper imaging, the imaging logs say the computer name was set but the machines name ends up being blank.
I haven't dug too deep yet but I wondered if anyone else had encountered this?
Solved! Go to Solution.
Posted on 08-21-2013 09:39 PM
I know it's a bit late, but I did get it working by implementing this script. It's in the imaging workflow to run after a machine has been imaged. It picks up those few machines who sometimes don't have a name. I also use it to keep the names of the machines updated. Our students have admin rights as so, regularly change their machine names. This sets them back :)
#!/bin/sh
NAME=grep "Binding" /var/log/jamf.log | tail -1 | awk '/Binding/ {print $5}'
/usr/sbin/jamf setComputerName -target / -name "$NAME"
jamf recon
Posted on 03-18-2012 01:23 AM
but the machines name ends up being blank.
Which name? LocalHost, Host or Computer?
I've only seen this once. I've recently been having issues with using images from an MBP on an MBA (en0/en1 are getting "mixed up"). One suggestion given to me was to delete some of the network specific files in /Library/Preferences/SystemConfiguration. When I deleted preferences.plist and NetworkInterfaces.plist, I ended up with machines with no name set for any of the three. Are you deleting these from the image you're laying down?
The other thing I'd check is your DNS config. When we're having problems with DNS, the LocalHostName seems to either be set incorrectly or not at all which caused AD bind issues for us at one point.
HTH. Cheers
Posted on 03-18-2012 02:27 AM
Hi Emil,
I'll have to check when I'm back in the office tomorrow but I'm pretty sure that all three are blank. I created the image on a MB and am imaging MB's but I have had that issue with the network interfaces getting mixed up using a MBA image.
I have deleted /Library/Preferences/SystemConfiguration/ from the imaging I'm using. I can see how a DNS issue could cause issues with the Localhost name but as both names are blank, and using a different imaging system (deploy studio) has no issues I don't think DNS will be the cause of our issue.
Are you suggesting to leave the SystemConfiguration folder in the image?
JC
Posted on 03-19-2012 12:05 PM
I was having some issues with this when I recently started to move to 10.7. We ended up having to delete the auto run data from the JSS about that computer even though we really don't mess with auto run. We also had to make sure we were choosing a configuration that had the management user inputted.
Posted on 03-29-2012 03:39 PM
Do you have apostrophes in the names? With my 8.43 install apostrophes cause the hostname to be blank, the name in the sharing sys pref to be blank, and the name in the JSS to be "No Name". I have an open bug ticket (dev ID D-002592) with JAMF regarding this.
Posted on 04-04-2012 07:17 AM
I am getting this error
Computer Deleted (ID: -1) Wednesday, March 28 2012 at 10:16 AM .
It properly images the machine and names it however it deletes it from the Casper inventory and I have to do a recon to re add the machine.
Posted on 04-09-2012 08:35 AM
I was getting this error "Computer Deleted (ID: -1)" with version 8.43, I have upgraded to 8.51 and now am no longer getting an entry in the Casper Imaging Logs at all, also the computer isn't getting added to inventory at image time. A Recon after the fact does add the machine to inventory.
Posted on 09-11-2012 08:43 AM
I am also having this same issue. Were you ever able to get a resolution for it? I'm using version 8.6.
Thanks
Posted on 08-21-2013 09:39 PM
I know it's a bit late, but I did get it working by implementing this script. It's in the imaging workflow to run after a machine has been imaged. It picks up those few machines who sometimes don't have a name. I also use it to keep the names of the machines updated. Our students have admin rights as so, regularly change their machine names. This sets them back :)
#!/bin/sh
NAME=grep "Binding" /var/log/jamf.log | tail -1 | awk '/Binding/ {print $5}'
/usr/sbin/jamf setComputerName -target / -name "$NAME"
jamf recon
Posted on 08-22-2013 03:21 AM
Have seen a few times where a policy can knock out the name but ticking the advanced option to reset name from jss on the problem policy sorts that out.