processor.rb

Path: lib/facter/processor.rb
Last Update: Sun May 19 07:17:49 +0000 2013

Fact: processor

Purpose:

  Additional Facts about the machine's CPUs.

Resolution:

  On Linux and kFreeBSD, parse '/proc/cpuinfo' for each processor.
  On AIX, parse the output of 'lsdev' for its processor section.
  On Solaris, parse the output of 'kstat' for each processor.
  On OpenBSD, use 'uname -p' and the sysctl variable for 'hw.ncpu' for CPU
  count.

Caveats:

Required files

thread   facter/util/processor   facter/util/wmi  

[Validate]