[SCAP-On-Apple-Dev] [SCAP-On-Apple] Mac OS X proposed pkginfo OVAL Test.
david at joval.org
Mon Jul 15 14:35:49 PDT 2013
The system profiler has been the go-to authority for inventory
information on OSX for as long as I can remember. So long, in fact,
that I'd forgotten about it! (I once used it as the data source for an
OSX Mac inventory solution for a demo).
Perhaps a systemprofiler_test is what's really in order, that could
accept an XPATH like the OVAL ind:xmlfilecontent_test...
On 7/15/2013 12:50 PM, Peter Link wrote:
> Jasen and Josh, does this help?
> system_profiler -xml SPApplicationsDataType > ~/Desktop/SPlist
> gives complete listing of all applications found on the Mac, including
> drivers and anything application related. Output is XML file stored
> wherever you want it.
> typical entry for printer driver. Shouldn't be a problem extracting
> whatever information you want from it.
> <string>HP LaserJet 400 M401dn (F739D8)</string>
> <string>/Users/link/Library/Printers/HP LaserJet 400 M401dn
> disclaimer: I'm not a programmer, I'm more a facilitator who can
> sometimes find answers for things. I spent 18 years managing a
> Mac-based publication system and an additional 8 years trying to make
> sure our OS configurations met DOE requirements.
> On Jul 15, 2013, at 8:33 AM, Josh Wisenbaker <dubs at apple.com
> <mailto:dubs at apple.com>> wrote:
>> Remember too that you can pass categories to system_profiler to
>> control what info it returns.
>> It also can give you your output in XML format.
>> Josh Wisenbaker
>> Consulting Engineer - Apple U.S. Commercial and Governmental Sales
>> dubs at apple.com <mailto:dubs at apple.com>
>> On Jul 14, 2013, at 9:08 PM, Peter Link <plink53 at mac.com
>> <mailto:plink53 at mac.com>> wrote:
>>> The system report is the results of running
>>> This simple command contains the current status of just about
>>> everything system related. The application's reporter files
>>> (.spreporter) are found in /System/Library/SystemProfiler. There is
>>> a SPApplicationsReporter.spreporter file but the basic operation of
>>> running the command system_profiler doesn't appear to run this file
>>> while using the GUI does. I'm still looking for more information.
>>> Many of you might want more information on certain files but I
>>> suggest looking at the System Profiler to see how much can be found
>>> using existing, simple applications.
>>> As for browser plugins, they are normally found in /Library/Internet
>>> Plug-Ins making it a simple task to find them.
>>> Excuse me if I'm trying to use the simple way to find things on OSX.
>>> On Jul 14, 2013, at 4:58 PM, Peter Link <plink53 at mac.com
>>> <mailto:plink53 at mac.com>> wrote:
>>>> OSX provides a very simple method of displaying all applications
>>>> using About this Mac/More Info as the front end to a System Report.
>>>> Just need to figure out how the application finds everything. This
>>>> also finds all devices including printers.
> Peter Link
> LLNL retired
> plink53 at mac.com <mailto:plink53 at mac.com>
> SCAP-On-Apple-Dev mailing list
> SCAP-On-Apple-Dev at lists.macosforge.org
jOVAL.org: SCAP Simplified.
Learn More <http://www.joval.org> | Features
<http://www.joval.org/features/> | Download
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SCAP-On-Apple-Dev