Command line utilities
Unless otherwise specified, every tool accepts these options:
-
-c CONFIG_FILE
: specifies a configuration file to use for database parameters- The default location of the configuration file is
/etc/bookie/database.rb
.
- The default location of the configuration file is
-
-h
or--help
: displays the command's syntax
Retrieves summaries and other data from the database
bookie-data [options]
In addition to the standard options, the following options are available:
-
-d, --details
: include a list of individual jobs in the data set -
-p, --page PAGE
: show the specified page of job details (implies-d
) -
-l, --limit COUNT
: limit the number of job details per page (implies-d
) -
-u, --user NAME
: filter by username -
-m, --command COMMAND
: filter by command -
-s, --system HOSTNAME
: filter by system -
-t, --type TYPE
: filter by system type -
-r, --time BEGIN,END
: filter by a time range -
-o, --output-file FILENAME
: send CSV formatted output to FILENAME
All statistics are calculated from the jobs that were entered into the database. If some of the jobs have not made it into the database (i.e. if the job is still running or belongs to a user whose jobs are excluded from tracking), those jobs will not appear in the statistics. Because of this, the statistics shown will probably be somewhat lower than the actual system load. If filters are applied to the data, the statistics will be calculated using only the jobs that pass through the filters, not all jobs that ran during the specified interval.
Sends data to the database and decommissions systems
bookie-send [filename] [options]
If filename
is specified, the contents of that file will be sent to the database.
In addition to the standard options, the following options are available:
-
-s, --sender-config FILE
: use the given sender configuration file (defaults to '/etc/bookie/sender.rb') -
--create
: Creates a system entry in the database using information from the configuration file
A filename
and/or --create
flag must be provided. Omitting both is an error.
Performs database migrations
bookie-migrate [options]
In addition to the standard options, the following options are available:
-
-v VERSION
: specifies the target database version