NAME
pffacter - collect facts about operating system
SYNOPSIS
pffacter [--modules=/module/dir] [--yaml] [facts ...]
pffacter --help
DESCRIPTION
This is a command line interface for module Sys::Facter(3). It collects information (facts) about host operating system and prints them to STDOUT.
By default, all facts available are printed in form that mimics Puppet's Facter output. You may also specify which facts are to be printed, what will make run a bit faster and output a bit more terse.
If you specify a single fact to be printed, fact name will be skipped in output, so you'll get just a fact's content. If you specify more than one fact, please use --yaml option to make an output machine-readable.
If you have own Pfacter modules that you want to load, you can point the directory containing them with option --modules. You may specify this option multiple times.
USAGE EXAMPLES
Get a single fact:
$ pffacter operatingsystem
Debian
Get few facts:
$ pffacter kernel hostname domain
kernel => Linux
hostname => desktop01
domain => example.net
Get few facts as YAML:
$ pffacter --yaml kernel hostname kernelrelease fqdn lsbid
fqdn: desktop01.example.net
hostname: desktop01
kernel: Linux
kernelrelease: 2.6.32-5-686
lsbid: Debian