Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'ioreg - SSH' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
ioreg - SSH
Authored by: ssevenup on Apr 05, '04 03:22:30PM
OK, so something like this...

ioreg -c "IOPlatformExpertDevice" | awk '/IOPlatformSerialNumber/ {print $4}'

And yup, SSH or anything pretty much would be preferred over ftp :-(

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.

[ Reply to This | # ]

ioreg - SSH
Authored by: mtalbot on Jan 19, '07 11:26:17PM
To return the serial number without the quote marks, set the field separator (-F '"') in the last awk command...
ioreg -c "IOPlatformExpertDevice" | awk -F '"' '/IOPlatformSerialNumber/ {print $4}'


[ Reply to This | # ]