Verifying that Software Updates installed print drivers

jasdaw
New Contributor II

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?

1 ACCEPTED SOLUTION

thoule
Valued Contributor II

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

View solution in original post

1 REPLY 1

thoule
Valued Contributor II

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