We're having issues with a Canon printer driver and it seems a newer version seems to be fixing these issues.
I'd like to create an Extension Attribute to show the same Driver Version shown under Options & Supplies > General tab for the printer in Printer & Scanners in System Preferences.
Then I can setup a Policy to track the printer driver versions.
Thanks for any assistance.
Solved
Extension Attribute for Printer Driver version
Best answer by stevewood
What @bentoms suggested is probably the way to go, but I wanted to find a way to pull driver version without having to grab all of the printers like @clrlmiller had suggested.
Instead, use the ppd directory that CUPS uses: /etc/cups/ppd You can then look for exactly the PPD you need.
#!/bin/sh
# EA to pull printer driver version
# globals
ppdDir='/etc/cups/ppd'
printerName="YourPrinter"
# grab the driver version
driverVer=`cat $ppdDir/$printerName.ppd | grep FileVersion: | awk '{ print $2 }' | sed -e 's/"//' | sed -e 's/"//'`
echo "<result>$driverVer</result>"
I threw this together very quickly and tested on my machine with some of our Xerox printers, and it worked fine. Just make sure the name you put in for printerName variable is spelled correctly, including proper case.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
