boxinfo is a Perl script for quickly gathering all sorts of interesting information about a particular computer, which is then put into a HTML or MediaWiki page. It is very handy for being able to see a quick overview of the boxes that you are responsible for. The script has a highly developed Postgres section. It was developed at End Point Corporation by Greg Sabino Mullane.
The latest version, 1.4.0, can be downloaded here:
Usage is simply to run:
It is preferred that the script gets run as the ‘root’ user, as some of the information can only be gathered by that user. Two files are created by the script:
This is the final result, either in HTML or MediaWiki format (see the –format argument below). A sample output page is available.
This is a copy of each command that was run, and the result. Feel free to delete it, it is only useful for debugging.
Command Line Options
- Returns the version number.
- Increases the level of verbosity.
- Which format to output. Valid options are ‘html’ and ‘wiki’. The default is ‘wiki’, which creates the page with special features to support MediaWiki.
- Overrides automatic detection of the OS with the given name.
- Overrides automatic detection of the client name (derived from the first part of the hostname). This is used at the top of the output, and defaults to ‘ACME’ if the name cannot be determined.
- Only perform the Postgres-specific parts of the program.
- Skip the Postgres-specific parts of the program.
- Do not attempt to connect to the Postgres cluster on the given port number.
- Do not attempt host lookups of IPs. May greatly speed up the running of the script.
- Skip the Mysql-specific parts of the program.
- Skip the Sendmail-specific parts of the program.
- Whether or not to use tooltip balloons for MediaWiki output. Takes 0 or 1, defaults to 1.
- Sets the maximum time to wait for each command to finish before giving up. The default is 10 seconds.
Bugs and Feature Requests
Bugs should be reported through the GitHub issues tracker. Feature requests are welcome there as well, or send us an email. TODO
Everyone is encouraged to look over and make improvements to the code. The latest development version can be obtained by running:
- Greg Sabino Mullane (firstname.lastname@example.org)
- David Christensen (email@example.com)
- Greg Smith (firstname.lastname@example.org)
- Robert Treat (email@example.com)