Looking to make a custom inventory field to display this info

Answer Summary:
0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer


The terminal command would be

 system_profiler SPMemoryDataType
Answered 05/22/2013 by: mpace
Red Belt

  • You could probably use grep or awk to pare it down, but assuming you were talking about a K1000, the custom inventory rule would be something like:

    ShellCommandTextReturn(system_profiler SPMemoryDataType)

    This shows some other options when using system_profiler: http://macstuff.beachdogs.org/blog/?p=21
    • Thanks jknox that worked! It is with the k1000, it outputs it to a script log, are you familiar with how to have it dump the results into a custom inventory field?
      • If you created a dummy software inventory item for it, it would display on the computer's inventory page under Software>Custom Inventory Field. See below. (the results will look a little different for a physical machine, that was a Mountain Lion VM.)
  • it was very informative page thanks
Please log in to comment



Answered 05/24/2013 by: jknox
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja