awk '/Serial/ {print $3}' /proc/cpuinfo

 

 


From: gumstix-users-bounces@lists.sourceforge.net [mailto:gumstix-users-bounces@lists.sourceforge.net] On Behalf Of Ryan Pederson
Sent: Friday, September 28, 2007 2:39 PM
To: gumstix-users@lists.sourceforge.net
Subject: [Gumstix-users] Pull CPU Serial from /proc/cpuinfo

 

Hi all,

Quick one for you guys...

I need to pull the serial number of the CPU of the gumstix from /proc/cpuinfo.

It's the very last line in the output:

Processor       : XScale-PXA255 rev 6 (v5l)
BogoMIPS        : 397.31
Features        : swp half fastmult edsp
CPU implementer : 0x69
CPU architecture: 5TE
CPU variant     : 0x0
CPU part        : 0x2d0
CPU revision    : 6
Cache type      : undefined 5
Cache clean     : undefined 5
Cache lockdown  : undefined 5
Cache format    : Harvard
I size          : 32768
I assoc         : 32
I line length   : 32
I sets          : 32
D size          : 32768
D assoc         : 32
D line length   : 32
D sets          : 32

Hardware        : The Gumstix Platform
Revision        : 0000
Serial          : 328e1362e7af4134

I just need the serial number, not the preceding text or spaces.  Any ideas how this might be done?

The closest I can get is to type "cat /proc/cpuinfo | grep Serial"

Thanks!

Ryan


NOTE: The information in this message is intended for the personal and confidential use of the designated recipient(s) named above. To the extent the recipient(s) is/are bound by a non-disclosure agreement, or other agreement that contains an obligation of confidentiality, with AuthenTec, then this message and/or any attachments shall be considered confidential information and subject to the confidentiality terms of that agreement.  If the reader of this message is not the intended recipient named above, you are notified that you have received this document in error, and any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this document in error, please delete the original message and notify the sender immediately.

Thank you.

 AuthenTec, Inc.  http://www.authentec.com