The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

pfacter - Collect and display facts about the system

SYNOPSIS

pfacter [option]... [fact] [fact]...

OPTIONS

--debug

Print debugging information while working.

--help

Display a short usage synopsis.

--version

Display the current version/release of pfacter.

--write

Write any new or changed host facts to LDAP. Requires that either a configuration file be specified, or a username, password, and server address be provided on the command line.

The following flags are used in conjunction with the --write option:

--configfile <configfile>

The file containing configuration information (username, password, and LDAP server address). Format is:

    $username: "pfacter"
    $password: "pf4ct3r"
    $server:   "ldap.company.com"

If you the configfile option it is also possible to specify multiple LDAP servers to attempt binds against. Simple change the format to:

    @server:   "ldap1.company.com ldap2.company.com ldap3.company.com"

...and Net::LDAP will attempt to bind to each host in order until a successful connection is made. This is not possible if the server is specified on the command line.

The configfile flag is the most secure (and preferred) method for storing connection and authentication information. It is however possible to pass configuration information via the command line with the following three flags:

--username <username>

The name of the LDAP user to bind as.

--password <password>

Password.

--server <server>

The IP address or name of the LDAP server.

Refer to the examples for more information regarding the syntax/use of the username, password, and server flags.

--base <base DN>

If not specified, the base DN is guessed based on the domain.

--ssl

Connect securely (with SSL, obviously) to the LDAP server.

--xml

Print all output in XML format.

--yaml

Print all output in YAML format.

EXAMPLES

pfacter kernel kernelrelease kernelversion

Print information about the kernel, kernel release, and kernel version.

pfacter --write --configfile /etc/pfacter.conf

Print all facts and write any changes to LDAP. Uses the authentication information stored in /etc/pfacter.conf.

pfacter --write --username uid=pfacter,ou=People,dc=company,dc=com --password pf4ct3r --server ldap.company.com --ssl ipaddress macaddress

Print IP address and MAC address facts. Write any changes to LDAP using the specified connection and authentication information. Use SSL.

AUTHOR

Scott Schneider <scott.schneider@vanderbilt.edu>

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 229:

'=item' outside of any '=over'

Around line 244:

You forgot a '=back' before '=head1'