Policy to kick in when a computer is manually upgraded or rebuilt

donmontalvo
Esteemed Contributor III

For logistical reasons, there are times when a Mac has to be manually upgraded (pop in DVD, upgrade from 10.5 > 10.6) or manually rebuilt (clean-install).

That said, the techs ALWAYS reinstall Casper agent (QuickAdd) since we noticed it breaks.

Is there a way to flag a computer as having been rebuilt, so we can trigger a policy to kick in and fix other stuff that may have broken?

Thanks,
Don

--
https://donmontalvo.com
9 REPLIES 9

bentoms
Release Candidate Programs Tester

Would jamf -flushpolicyhistory work?

Regards,

Ben.

donmontalvo
Esteemed Contributor III

Thanks Tom and Ben,

We're looking for a way to identify computers that were originally imaged using Casper, but that have been rebuilt/upgraded manually (using Apple DVD). This way once the tech reinstalls QuickAdd, we can have JSS do the rest (run a policy that fixes/reinstalls stuff that broke because of the manual rebuild/upgrade). We want to automate so the techs don't have to learn any command line stuff (which they're not comfortable with).

Thanks,
Don

--
https://donmontalvo.com

bentoms
Release Candidate Programs Tester

Create a custom pkg of quickadd that creates a dummy receipt at time of install?

Regards,

Ben.

tlarkin
Honored Contributor

create a custom package that does a policy flush, any once only policy will be reran.

-Tom

stevewood
Honored Contributor II
Honored Contributor II

I think you two hit it on the head. Put a PostInstall script into the Quick
On Mon, Jun 6, 2011 at 2:44 PM, Thomas Larkin <tlarki at kckps.org> wrote:
Add package that simply calls the JAMF flush:

jamf -flushPolicyHistory

That should trigger the policies to run.

Steve Wood
Director of IT
swood at integer.com

The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201
T 214.758.6813 | F 214.758.6901 | C 940.312.2475

RobertHammen
Valued Contributor II

What I do in a similar situation:
On Jun 6, 2011, at 12:40 PM, Don Montalvo wrote:

1) All of the initial, first-run policies (establish proxy servers, install VPN profile, install AV, ensure current versions of Flash/Flip4Mac/Silverlight et. al. are deployed) are set up using a custom trigger

2) Modify the QuickAdd that the techs use to call the custom trigger in the postflight script.

Machine gets upgraded, techs run special QuickAdd, all of the first-run setup items get done. Boom!

tlarkin
Honored Contributor

If a machine becomes unmanaged how do you plan on managing it again via a casper policy?

donmontalvo
Esteemed Contributor III

After the manual upgrade or rebuild (both done using Apple installer DVD), the tech reinstalls QuickAdd.

Don

--
https://donmontalvo.com

donmontalvo
Esteemed Contributor III

We need to keep using the current QuickAdd, since introducing a new one would disrupt day to day work. Several teams, many geographical regions, many techs speaking many languages. So we're trying to find a way to manage this in JSS.

The problem with "jamf -flushpolicyhistory" is that most of these techs are no comfortable in Terminal (I know...why are they supporting Macs!).

One of the reasons for needing to manually upgrade or manually rebuild a Mac is to prevent from having to deal with reinstalling a lot of "heavy" applications, so flushing policy history can bite us there.

We're exploring pulling ticket reports to identify those computers...hope that does the trick.

Thanks,
Don

--
https://donmontalvo.com