Recon wiping extension attributes previously set using a popup

PeterClarke
Contributor II

I am having an issue with Recon wiping extension attributes previously set using a popup menu
I don't recall this happening before.. I am fairly sure they were previously retained.
Perhaps I am mistaken.. ?

So I want to ask the question: Is this normal behaviour ?
Could someone please verify if "a standard recon"
should wipe attributes previously manually set using a popup ?

( I am running Casper Vn 8.64 on OS X ( 10.6.8 .. 10.8.4 ) clients
and JSS on OSX 10.6.8 Server. )

Is there some way to avoid this issue ?
I was expecting manually set items to be retained, not wiped.

Since I had a server crash recently, though Casper said that the DB was OK
I am wondering if it's behaviour has changed, or if I am simply mistaken about this.
But since I have been using Casper for sometime, I think I would have noticed this issue before by now.

( I could set several EA's using a scripts, which I am now doing )
( but not all of the EA's I am using could be easily set that way..)

5 REPLIES 5

krichterjr
Contributor

Are you talking about during a inventory report jamf recon of currently enrolled computers or are you speaking about when running the Recon.app?

I know there are ways to tell the SQL database to retain or flush certain data during a Reconing (re-enrolling) of computers with the Recon.app
.

PeterClarke
Contributor II

Hi, Sorry I didn't spot your reply earlier.
The answer is a little complicated - since I have been doing both..

But the issue was arising with the 'normal' regular scheduled recon process.
It's clear now to me that my JAMF DB is at least partly corrupted, and this is one side effect of that.
A very large number of machine movements, with incorrect process handling is partly to blame for this.
Casper is in fact mostly still working well, despite this.

My main resolution will be to re-enroll the majority of machines, which will hopefully fix the problem.
Meanwhile, I've noticed that 'Static' info in some Extension Attributes, set via pop-down menu, is now frequently going missing.

And if I re-enrol a machine, then it always goes missing.

I was hoping the someone might be able to give me some hints, about how to preserve these attributes, so that they are not flushed by the standard periodic recon of already enrolled machines.

Meanwhile a partial solution I've come up with, and a process improvement, has been to introduce another set of extension attributes for some items - which are now filled in via scripts.
Though that's not possible of all combinations, some items really can only be set manually.

I am planning to 'clean up' the DB as far as I can. Hopefully then it will be OK.
An alternative of restoring from an older version of the DB, would need to take the system back some way in time.
– and the very large number of changes since then, would make that a poor solution.

Later, I plan to update Casper, so the issue of Extension attributes is likely to arise again there.

Any info or advice you have would be of interest to me..

franton
Valued Contributor III

I've been told that if you run a few recon's close together, it can have this effect. Once I got rid of most of the "update inventory" selections on our policies, this cleared itself for us.

PeterClarke
Contributor II

Hi thanks for the advice.
That's possible. I did recently have a startup policy, with a recon, but where the startup policy caused a restart, so recon got terminated. And with the daily startup set to do a recon.

I have since changed that so that startup policy no longer does a recon.
Also the problem we encountered started before that startup policy, but the policy did seem to extend the problem.

I am now planning to do a wide-scale recon, (in a series of steps) to try to resolve the problem, and bring the DB back into sync. But I may not be able to do that for a little while.

When I do, I'll let you all know how I get on.

krichterjr
Contributor

I'll preface this by saying I'm no expert on this. I can only provide this info as I recently worked on changing some of these preferences with support.

There is a way you can tell the Recon (re-enrolling) to not flush certain data such as the Location information, policy history, etc. You may want to contact support depending on how much you know about working with the MySQL database.

I would start by taking a look at the preferences of your database. You can do this by opening up the SQL Command line utility on the server.

Navigate to the proper database with this command.

use jamfsoftware

Run this command to see what the preferences are set to.

select * from management_framework_preferencesG

1's = true
0's = false

To change a setting such as telling Recon to not flush the location data you can run this command.

update management_framework_preferences set flush_location_information_on_remanage =0;

Again, I'm know very little on this but I'm happy to share the little I know. I would be careful changing much but if you take a look at something is set differently than you would expect you could give this a try.

Hope that helps some.