Get serial number or XO name from command line or python
mikus at bga.com
Fri May 27 18:38:25 EDT 2011
> Is there a simple way to get the XO serial number and/or the XO name
You have to define "serial number", and you have to define "name".
Further, the answer depends upon the software version in the XO :
Start with (this is from a bash script)
> if [ -e /ofw/serial-number ]; then
> echo "Serial : "`cat /ofw/serial-number`
> echo "Nick : "`hostname`
also try (all one line)
> gconftool-2 --get --direct --config-source=xml:readwrite:/home/olpc/.gconf
and then there are the addresses shown by 'ifconfig eth0'
More information about the Devel