Skip to main content
Solved

Third-party SSD and HighSierra

  • October 5, 2017
  • 6 replies
  • 17 views

Forum|alt.badge.img+8

We are seeing upgrade failures on devices that have third-party SSD's installed. This was the reply from my engineer in the field: "Mostly Samsung for iMacs and OWC/Samsung for m.2 drives." We've opened a case with Apple on this, but I'm trying to set up a query to report on these drives. I've gone through the different posts and found some Extension attributes. The only one I've been able to get working is from:

https://www.jamf.com/jamf-nation/discussions/8931/hard-drive-speed-type-extension-attribute

I can get a yes/no answer to if a device has an SSD. But I really want to know what kind of drive. I've also tried the different EA's in this post:

https://www.jamf.com/jamf-nation/discussions/4891/report-for-displaying-storage-type-hd-vs-ssd

The scripts work great if I run it on the machine. As a script for an EA, the field is blank. I see that the information is stored in Inventory/Storage/Model, but it's not reportable. I've opened a case with support, but wondering if anyone has been able to successfully report on this.

Thanks,
Jeannine

Best answer by millersc

I'm using this to capture SDD Model in our iMac and laptop fleet. It's another option.

HW - HDD Type: OWC Aur SSD
#!/bin/sh

diskinfo=$( diskutil info disk0 | grep 'Device / Media Name' | awk '{print $5,$6,$7}' | tr -d 'Media' )

echo "<result>$diskinfo</result>"

6 replies

Forum|alt.badge.img+15
  • Contributor
  • 589 replies
  • October 5, 2017

Hi Jeannine. See if this works for you?

#!/bin/sh                                                                                                                                                                           
echo "<result>$(/usr/sbin/system_profiler SPSerialATADataType|grep Model)</result>"

Forum|alt.badge.img+10
  • New Contributor
  • 306 replies
  • Answer
  • October 5, 2017

I'm using this to capture SDD Model in our iMac and laptop fleet. It's another option.

HW - HDD Type: OWC Aur SSD
#!/bin/sh

diskinfo=$( diskutil info disk0 | grep 'Device / Media Name' | awk '{print $5,$6,$7}' | tr -d 'Media' )

echo "<result>$diskinfo</result>"

easyedc
Forum|alt.badge.img+16
  • Esteemed Contributor
  • 631 replies
  • October 5, 2017

When you say

what kind of drive
what are you specifically asking? Putting this together works for me.

#!/bin/sh

type=$(system_profiler SPStorageDataType | grep "Medium Type" | awk '{print $NF}') 


echo "<result>$type</result>"

Forum|alt.badge.img+17
  • Valued Contributor
  • 232 replies
  • October 5, 2017

I would recommend @millerscs approach over one based on system profiler. It is likely to tread more lightly on the CPU, and will cover non-SATA drives. If you don't want to assume the boot disk is built in, use / instead of disk 0.

diskutil has a plist output option if you want precise parsing, otherwise sed could cut down on the number of commands involved:

#!/bin/bash
echo "<result>$(/usr/sbin/diskutil info / | /usr/bin/sed -En s/...Device...Media.Name:.{5}.//p)</result>"

Forum|alt.badge.img+8
  • Author
  • Contributor
  • 33 replies
  • October 5, 2017

Thank-you all! No more pulling hair.


howie_isaacks
Forum|alt.badge.img+23
  • Esteemed Contributor
  • 780 replies
  • October 5, 2017

Aura SSDs from OWC are not compatible.

https://www.macrumors.com/2017/09/26/owc-aura-ssd-macos-high-sierra/