Skip to content

Instantly share code, notes, and snippets.

@DamianZaremba
Created April 7, 2013 02:22
Show Gist options
  • Save DamianZaremba/5328603 to your computer and use it in GitHub Desktop.
Save DamianZaremba/5328603 to your computer and use it in GitHub Desktop.
Little stats grabber output on Ubuntu and OSX with a few values redacted from the output
{'cpu': [{'manufacturer': 'GenuineIntel',
'model': 'Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz'}],
'drives': [{'identifer': 'disk0',
'model': 'VMware Virtual S',
'size': 681574400,
'vendor': 'VMware,'}],
'interfaces': {'identifer': 'en0', 'mac-address': 'xx:xx:xx:xx:xx:x'},
'manufacturer': 'Mac',
'memory': [{'manufacturer': 'VMware Virtual RAM',
'serial': '1',
'size': 2147483648}],
'product': 'VMware7,1',
'product_version': 'VMware',
'serial': 'xxxxxxxxx'}
{'cpu': [{'manufacturer': 'GenuineIntel',
'model': 'Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz'}],
'drives': [{'identifer': 'sda',
'model': 'OCZ-xxxxxxxxx',
'size': 512110190592,
'vendor': 'ATA'}],
'interfaces': {'identifer': 'eth0', 'mac-address': 'xx:xx:xx:xx:xx:xx'},
'manufacturer': 'LENOVO',
'memory': [{'manufacturer': 'Kingston',
'serial': 'xxxxxxxxx',
'size': 8589934592},
{'manufacturer': 'Kingston',
'serial': 'xxxxxxxxx',
'size': 8589934592}],
'product': '24292VG',
'product_version': 'ThinkPad T530',
'serial': 'xxxxxxxxx'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment