memory.rb

Path: lib/facter/memory.rb
Last Update: Fri May 17 10:14:30 +0000 2013

Fact: memory

Purpose: Return information about memory and swap usage.

Resolution:

  On Linuxes, uses Facter::Memory.meminfo_number from
  'facter/util/memory.rb'
  On AIX, parses "swap -l" for swap values only.
  On OpenBSD, it parses "swapctl -l" for swap values, vmstat via a module for
  free memory, and "sysctl hw.physmem" for maximum memory.
  On Solaris, use "swap -l" for swap values, and parsing prtconf for maximum
  memory, and again, the vmstat module for free memory.

Caveats:

  Some BSD platforms aren't covered at all. AIX is missing memory values.

Required files

facter/util/memory   facter/util/wmi  

[Validate]