- summary Speccy for the structure of system information data
- labels Concept
Tools like Facter, Ohai and friends are designed for collect information about nodes (computers, machines, hosts, network stations). Such info as operating system type, version, architecture, memory size, CPU/GPU abilities etc. The information they collect is programmatically accessible, but there is no guarantee that the structure is the same and JSON received from Ohai can be fed to program that worked with Facter.
This is an attempt to define nested tree structure for describing nodes.
Version 1.1 of the speccy.
These are used for convenience in different 'if' checks. For example:
Accessing the flags that are not set should not raise exceptions.
01. I want to know if my OS is 64-bit
os.architecture == '64-bit'
02. I want to get all USB drives in system
usb = [drives[drive]]
* http://www.linuxintro.org/wiki/Hwinfo * http://stackoverflow.com/questions/13814428/python-linux-dmidecode-how-to-obtain-hw-info-by-parsing