Posted on 06-23-2015 01:31 PM
Hi All-
I recently re-imaged a machine using Casper Imaging and Netboot. During the imaging process, I selected to "Erase Target Disk." After imaging, I was reviewing jamf.log and I noticed it had information in it from before the most recent imaging. How does that work? There was even a line in the log that stated the volume was just imaged, but the log had information in from the past year.
Thanks,
Scott
Posted on 06-23-2015 01:52 PM
@asd_software This doesn't sound possible to me. If the Mac truly was nuked and paved, the jamf.log file would not have survived with older data in it. I suspect the drive was not erased.
There are cases when a drive can't be unmounted due to a variety of reasons, and Casper Imaging will drop back from block copy to file by file copy instead. The latter method simply copies over your base image on top of what's already there and can leave older files intact, especially something like the jamf.log since that probably isn't in your base image.
I would check to see if that's what happened.
Something else you can use to verify is the Creation Date on the /Library/Application Support/JAMF/Receipts/ directory. Not Date Modified since it will be changing all the time, but the creation date, which should closely match up with your imaging date (if it was really fully re-imaged)
Posted on 06-24-2015 05:52 AM
I see the same behavior and have just always assumed that Casper Imaging restores the jam.log after imaging. The computers are definitely fully re-imaged and the hard drive is wiped, but in the log you will see entries like this in between formats:
*****************************************************************
Formatted Macintosh HD on <date> at <time>
*****************************************************************
Posted on 06-24-2015 06:54 AM
When I checked that folder, it did have a recent creation date. When I checked other logs, they only showed information following the imaging. The jamf.log file was the only one with older data in it. It even specifically states "<computer> was formatted on <date>" in the jamf.log file. As another test, I wiped the system using Disk Utility in the Recovery Partition. In that case the jamf.log was wiped. Therefore, I'm wondering if Casper Imaging does something different when you select "Erase Target Drive." Maybe it makes a copy of that log or something?
Posted on 06-24-2015 06:57 AM
I suppose its possible it backs up the log and restores it afterwards, just like @rdwhitt stated, but that would be strange. I'm not sure what the reason would be for that unless its strictly for troubleshooting purposes after a re-image?
I can't effectively test anything as we use DeployStudio for imaging, not Casper Imaging.
Posted on 06-24-2015 10:29 AM
A little off topic, but where is the jamf.log file stored on client machines?
Posted on 06-24-2015 10:31 AM
/var/log/jamf.log
Posted on 08-17-2015 07:01 AM
I have also seen this happen. Normally, when we reimage a machine, with Casper Imaging 9.7, it will wipe the drive and everything is fine. (no old log entries), but once an while, I see the
Has anyone had issues when reimaging, where it has a problem enrolling in JSS or sometimes, it will enroll, but not create my management account. This only happens if you don't delete the old computer from the JSS before imaging.
Posted on 08-17-2015 07:43 AM
Has anyone had issues when reimaging, where it has a problem enrolling in JSS or sometimes, it will enroll, but not create my management account. This only happens if you don't delete the old computer from the JSS before imaging.
Happens with my test machines (re-imaged often).
Posted on 08-17-2015 08:19 AM
It's almost like the JSS doesn't see it as a "new" enrollment, so it doesn't create the admin account / "enroll" the computer. (which really go hand in hand) I wonder if this "working as designed" or do we have a problem in our environment with imaging?
Maybe I should be running a script at the very beginning to remove the computer from the JSS? Thoughts?
Posted on 08-17-2015 08:33 AM
Maybe I should be running a script at the very beginning to remove the computer from the JSS?
This is probably the only solution, unless your techs delete the computer from the JSS prior to re-imaging (people will always forget).
Delete the machine before imaging, run a quickadd during imaging
Would this be done using an API or a pre-exsisintg JAMF command?
Posted on 08-17-2015 09:53 AM
i just figured this was a feature. Doesn't bother me except when I'm searching the log file for errors and its full of stuff from previous imaging.
Posted on 07-22-2016 02:06 PM
I just noticed the same exact issue on a test machine that asd_software mentions in the first post in this thread.
To add to the variable isolation, this occurred on a test computer that was imaged and enrolled in a JSS that had no computers in it at all. In other words, it's not a matter of a device record saving this information to the jamf.log on that computer at the time of imaging. The jss that this computer was enrolled in had no computer records, thus it had no data that could be written to the jamf.log for this computer.
To summarize:
Has anyone found any answers on this issue in the meantime?
Posted on 08-12-2016 06:48 AM
Working through this issue with support now. In my case:
caspermgmt account gets created but not added to ssh group
Posted on 09-20-2016 08:23 AM
@jleomcdo Looking to talk to you about your Managed by EA. Trying to get it to work.