[Casper] Asset Tags in casper
adamshep07 at aol.com
adamshep07 at aol.com
Mon May 4 11:12:01 PDT 2009
We use the asset tag in our naming convention
Example: CS-123456
Below is the script that simply grabs the last 6 characters and
populates this into casper. The script is set to run at reboot so the
name has already been set when imaging.
#!/bin/sh
COMPNAME=`/usr/sbin/scutil --get ComputerName`
echo "jamf recon -assetTag ${COMPNAME:(-6)}"
jamf recon -skipApps -skipFonts -skipPlugins -assetTag ${COMPNAME:(-6)}
Cheers,
-Adam
Adam Shepard
Creighton School District
Web Developer / System Administrator
[Office 602-381-6000][Cell 602-319-8935]
-----Original Message-----
From: Nichols, Jared <jared.nichols at ll.mit.edu>
To: Casper List <casper at list.jamfsoftware.com>
Sent: Mon, 4 May 2009 10:10 am
Subject: [Casper] Asset Tags in casper
Hi-
So I keep track of computers’ asset tag numbers in Casper. Right now
it’s a manual process whereby I ask the user what their asset tag
number is and then I plunk it into Casper. We’re going to be going to
production soon and this would require a lot of manual overhead on my
(or any other admin’s) part. Ideally, I’d like to prompt the user for
this information and then store it in Casper. I know how to prompt a
user on the command line (e.g. Use a script for this), store it and
then write it out to a dummy receipt file, but I’d like it to look
better. What’s the best way to do this? I
could make an AppleScript
studio app to do it, but I don’t know if that’s the best way. I don’t
know any cocoa, but I have a feeling that would be the best way to go –
perhaps that’d be a good “first app” to create?
Thoughts?
j
---
Jared F. Nichols
Desktop Engineer, Infrastructure and Operations
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436 _______________________________________________
Casper mailing list
Casper at list.jamfsoftware.com
http://list.jamfsoftware.com/mailman/listinfo/casper
More information about the Casper
mailing list