Hard drive serial number from Terminal
Hello!
The question - how, without opening iMac - using Terminal, can I find out, what Apple's serial number is on my Seagate hard drive?
I have a situation with iMacs in company I'm working. After multiple hard drive failures we have found out, that most of our iMacs had defective Seagate Hard Drives, which Apple provided replacement program. The program now is expired and it's impossible to find out, whether they had hard drives, that very easily may fail or not. I contacted Apple service and got comment, that problem was with hard drives, that had 13 numbers in serial number. Hard drives with 17 numbers were OK. The discussion is about Apple serial number for Seagate hard drive, not Seagate's (take a look on red square in image).
To my question, how can I find out, whether my hard drives have 13 or 17 symbols, I got answer, that we either have to open iMac and check it by ourselves (for ~30 iMacs it's not the greatest thing to hear) or that there is a special terminal command, which may return this number, but the guy didn't remember at the moment, which exactly.
iMac, OS X Mavericks (10.9.4)