Hmm. Not sure that there is anything built into the Casper Suite that reports on that. Looking thru a few records I don't see any mention of the graphics cards and VRAM, for example.
You could add an Extension Attribute. This is not well tested, so I don't know how reliable it would be against all types of Macs, but try this-
#!/bin/sh
echo "<result>$(system_profiler SPDisplaysDataType | awk '/Chipset Model/,/Displays/{print}' | sed '$d;s/^ *//g')</result>"
@mm2270's is pretty much the same as the one I used except I awk instead of sed:
#!/bin/bash
# Returns the GPU chipset for a Mac. Because Macs may have two chipsets for discrete switching
# the last result is what is always returned (Intel HD Graphics are always the first result)
echo "<result>${/usr/sbin/system_profiler SPDisplaysDataType | awk -F': ' '/Chipset Model/ {print $2}' | tail -1}</result>"
exit 0
Thanks for the replies, I'll check these out
We had a request to report on which Macs have dedicated graphics card.
Cobbled something together based this, and other posts:
#!/bin/sh
system_profiler SPDisplaysDataType | grep 'Chipset Model:' | cut -f2- -d':' | tr -d ' '
Output from Terminal shows proper carriage return:
$ system_profiler SPDisplaysDataType | grep 'Chipset Model:' | cut -f2- -d':' | tr -d ' '
AMDRadeonR9M370X
IntelIrisPro
When you bring up the computer in JSS you see:

When you view the computer in a list with the EA displayed, the column loses its line returns:

Is there a way to force the column to preserve the line return for this EA?
TIA,
Don
To be honest, an EA outputting either of these two values would be fine as well:
"BuiltIn" for computers that only have built in graphics; "PCIe" for computers that have a dedicated graphics card.
Something like this?
#!/usr/bin/python
import subprocess
p = subprocess.Popen(['system_profiler', 'SPDisplaysDataType'], stdout=subprocess.PIPE)
output, err = p.communicate()
count = len([x for x in output.split('
') if 'Chipset Model' in x])
print('<result>{}</result>'.format('BuiltIn' if count < 2 else 'PCIe'))
For what it's worth, I had problems with this on Sierra until I modified the script a bit. This works well for me:
#!/bin/bash
# Returns the GPU chipset for a Mac. Because Macs may have two chipsets for discrete switching
# the last result is what is always returned (Intel HD Graphics are always the first result)
vidcard=`/usr/sbin/system_profiler SPDisplaysDataType | awk -F': ' '/Chipset Model/ {print $2}' | tail -1`
echo "<result>$vidcard</result>"
exit 0
Sorry to bring up an old thread but I didn't find anything more current. I am trying to get egjerde's solution to work but probably missing a step. I created an EA with the following settings:
Display Name: GPU
Enabled: Yes
Data Type: String
Inventory Display: Hardware
Input Type: Script
Mode: Shell
Then pasted the above script from egjerde and saved. The new EA does not display the GPU for any enrolled machine. Also tried all of the previously mentioned scripts in this thread. Am I missing something or does the script no longer work on newer OS's?
@steagle , try removing the exit command and see if that works.