Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When you manage a setting on a mac client through workgroup manager/open directory, you can verify its effect on the client in two ways.

  1. Open a Terminal and run mcxquery

  2. Run System Profiler, and choose Software -> Managed Client from the left column.

I expect the two to yield identical results, but more than once I've seen that they do not. Why are they different? Was I right in thinking they should be identical?

Addendum: When preferences are actually composited, which of these two sees things the same way as the compositor?

share|improve this question

1 Answer 1

The computer where I just saw this was not on the network, and when I reconnected it, results were as I expected. This leads me to believe that mcxquery gets the information live, and that the data used by System Profiler is cached. I wonder what the compositor uses.


Update: In 10.6, the mcxquery command has a -useCache flag that "Returns the caches computer settings in the local node if they are available".

This makes it seem clear to me that the system profiler reports cached data, and mcxquery does not (without the flag). I would guess that the compositor uses cached values.

Note, however, that mcxquery does show preferences managed on the local computer (and not on a directory), but System Preferences does not appear to do so.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.