@marcan ansible and puppet have had facter for ages to winkle out all of this sort of information in a standard YAML/JSON form ... facter is pretty standalone and works without the dependencies if needed - your example: facter --no-ruby -j processors