So yeah its me again, every year we image 500 computers usually takes me and one other person quite some time. Is it possible to just double click on an application or submit one command to have it just start the imaging process?
So right now we do it by, booting one computer in target mode, taking newly imaged computer and format the computer in target modes HD, then use carbon copy cloner to image. once we are done we have to rename the computer and set the start up disk.
I was thinking bout writing an apple script to do it, however neither, CCC or Disk utility are scriptable. Disk utility however is just a GUI for unix command so I can run a shell script inside of the applescript. So can you clone HD's from a unix command? (I am not that fimiliar with with shell script)
Now Renaming I can deal with, if we pull out Preferences.plist, to retain the name of the computer, but what about the start up disk, does anyone know where that is saved? because if it is just a plist we can pull it off and save it then put it back after the image, then just run the network change command to reset the network. which seems the easiest, but all that in one script (seems fun)
I am just gona post my thought process here because I am lost if I dont keep it somewhere.
So what I have come up with. step 1: Copy boot.plist and preferences.plist to host computer. step 2: Format disk, and then clone with rsync. step 3: copy boot.plist and preferences.plist back to newly imaged computer. step 4: run network setup applescript. step 5 test.
I have step 4 done, and step 1 and 3 are pretty much the same and I am almost done with that. and testing the rsync right now. If it works once one starts it should que off the rest, we would only have to restart it once and then send 1 command via remote desktop to login and then que off step 4.
Once I am done witht he whole thing I will post the results. Also any input will help!!! haven't got any input yet. Ideas of wut else would work if rsync doesnt work.
It is when you have to do it 500 times. I had to first of all make the image. (not bad) then do the formatting/partitioning with disk utility, then run carbon copy cloner (put in password) wait, then restart, set name of computer, install ocs client, and set boot disk. but for 500 computers it takes a LONG TIME, so I have figured to have a host computer.
take the system config folder, move it to the host. do the rsync and format. when it is doen with a format, it will send simple shell script to meh computer telling me that computer # is done. and I will then walk over restart from target mode, run command 2 through remote desktop, and it will "log in, change network password, IF it doesnt set boot device then it will set that, but before it does I will have that computer send me another alert, to que off an app, to delay for 2 minutes to shut down). ehhhh so all I need to do is: plug in, target mode, sumbit command 1, restart, sumbit command 2, and BOOM DONE
I am currently working on the whole shell command to keep variables once recieved to send back and shutdown at a delay.
Rsync commands are being tested, and the moving config folders are easy enough. Ocs client will also copy to host. If it doenst retain the start up disk then I will jsut wright an applescript to set it and restart.
if at all you guys think of anythign that can help LET ME KNOW
and gizmo it really isn't a lot of work but to know that I might be at this job for quite a while, and I have to do this every year, it is slow right now might as well spend little itme now so I can have a vacation later
But Where does the computer look for the boot device. to recognize that I have looked at the boot.plist, not it. there are two files in coreservices but that is not either?
Anyone have an idea?
Thanks for the history, it's appreciated.
I believe the boot device info is in the logic board PRAM or something, but that only would come into play if you have more than one bootable drive in the machine.
Do you mean you want the Startup Disk preferences to have the HD highlighted? Again that really doesn't matter if there is only on boot drive, it will just take a little longer on startup as it also looks for a Network boot drive, which you don't use.
Got to run, busy with projects here, I'll look into this in the next day or so.
Xplain's use of MacNews, AppleCentral and AppleExpo are not affiliated with Apple, Inc. MacTech is a registered trademark of Xplain Corporation. AppleCentral, MacNews, Xplain, "The journal of Apple technology", Apple Expo, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, MacTech Central, MacTech Domains, MacForge, and the MacTutorMan are trademarks or service marks of Xplain Corp. Sprocket is a registered trademark of eSprocket Corp. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders.
All contents are Copyright 1984-2010 by Xplain Corporation. All rights reserved. Theme designed by Icreon.