possible way to find out when Macs started first time appearing in Casper

Not applicable

Hi All,
Is it possible using Casper that These are the MACs we’re trying to identify as to when they first appeared in Casper by date’s? As policy runes everyday for inventory update for all reporting clients, dates get changes with current one. for Last Time (Contact) & Last Report Time.
Is anyone noticed this activity.
Regards,Vinay Washimkar

3 REPLIES 3

ernstcs
Contributor III

So you are asking if there is a way to determine the very first time a system talked to the JSS?

This has been a feature request of mine actually. Currently there is nothing built into the JSS that would do this for you unless you manually entered it into one of the fields for inventory somehow.

You could also do something with extended attributes to accomplish this. Create an attribute for Install Date and have a script that you run during imaging the very first time only, that returns the date and populates that field.

Otherwise I'm not sure what your asking for.

Craig E

Janowski
New Contributor II

you could come up with the order of which they were entered by JSS ID. I know we forgot about this for a little bit after our jumpstart :)

But like Craig alluded to, if you can explain what your trying to do with this info or why you need it, perhaps we can suggest an alternative to "date added?"

ben janowski
Senior Macintosh Support Technician
Kohl's Mac Support Team
262.703.1396 | benjamin.janowski at kohls.com

noah_swanson
New Contributor

Couldn’t you get the creation date of one of the files that gets placed? (maybe /system/library/startupitems/jamf) I know I had to do an inventory item stating when McAfee got installed. Here’s what I did:

#!/bin/sh

McCreateDate=stat -f '%Sm' /Library/McAfee

if [ "$McCreateDate" == "" ]; then echo "<result>McAfee Not Found</result>"
else echo "<result>"$McCreateDate"</result>"
fi

Hope this helps,
Noah