Posted on 02-03-2016 08:20 AM
I want to be able to verify that Apple's Software Updates actually installed new versions of print drivers.
What type of search inventory or smart group will point me in the right direction?
Solved! Go to Solution.
Posted on 02-03-2016 08:38 AM
I use an EA to determine if a computer has a print driver.
if [ -e /Library/Printers/Dell/Profiles/Dell C2660dn Color Laser.icc ]; then
echo "<result>Installed</result>"
else
echo "<result>Missing</result>"
fi
But if you want to check versions of a file, you might want to compare the md5 or something. type "md5 /path/to/file" to get the magic number to check for later.
if [ `md5 /Library/Printers/Dell/Profiles/Dell C2660dn Color Laser.icc |awk '{print $NF}'` == "be66d847b534b4773cf9f0ad28b7ef36" ]; then
echo "<result>Yup, it's the driver I expected</result>"
fi
Posted on 02-03-2016 08:38 AM
I use an EA to determine if a computer has a print driver.
if [ -e /Library/Printers/Dell/Profiles/Dell C2660dn Color Laser.icc ]; then
echo "<result>Installed</result>"
else
echo "<result>Missing</result>"
fi
But if you want to check versions of a file, you might want to compare the md5 or something. type "md5 /path/to/file" to get the magic number to check for later.
if [ `md5 /Library/Printers/Dell/Profiles/Dell C2660dn Color Laser.icc |awk '{print $NF}'` == "be66d847b534b4773cf9f0ad28b7ef36" ]; then
echo "<result>Yup, it's the driver I expected</result>"
fi