Anyone found a way to pull this out programmatically, preferably from the command line?

Want to use that to automatically ID the device using a cron script, search function for the forum seems to be broken right now.