Scroll to navigation

BCFG2-ADMIN(8) Bcfg2 BCFG2-ADMIN(8)

NAME

bcfg2-admin - Perform repository administration tasks

SYNOPSIS

bcfg2-admin [-C configfile] mode [mode args] [mode options]

DESCRIPTION

bcfg2-admin is used to perform Bcfg2 repository administration.

OPTIONS

Specify alternate bcfg2.conf location.
Specify the encoding of config files.
Specify the path to the server repository.
Manually specify the server location (as opposed to using the value in bcfg2.conf). This should be in the format "https://server:port"
Enable debugging output.
Print usage information.
Writes a log to the specified path.
Specify the path to the SSL key.
Enable verbose output.
Use 'password' for client communication.

MODES

Create an archive of the entire Bcfg2 repository.
client action client [attribute=value]
Add, edit, or remove clients entries in metadata (See CLIENT OPTIONS below).
Compare two client configurations. Can be used to verify consistent behavior between releases. Determine differences between files or directories (See COMPARE OPTIONS below).
Call the Django 'dbshell' command on the configured database.
Initialize a new repository (interactive).
Initialize the Reporting database.
Build structure entries based on client statistics extra entries (See MINESTRUCT OPTIONS below).
Query server for performance data.
Install configuration information into repo based on client bad entries (See PULL OPTIONS below).
Purge historic and expired data from the Reporting database
Call the Django 'shell' command on the Reporting database.
Print Reporting database statistics.
Scrub the Reporting database for duplicate reasons and orphaned entries.
Call the Django 'shell' command on the configured database.
Sync the Django ORM with the configured database.
Remove unused files from repository.
Apply database schema updates to the Reporting database.
Call the Django 'validate' command on the configured database.
Create a graphviz diagram of client, group and bundle information (See VIZ OPTIONS below).
Provides a XML-RPC Command Interface to the bcfg2-server.

CLIENT OPTIONS

One of the following.
Add a client
Delete a client
List all client entries

Specify the client's name.
Set attribute values when adding a new client. Allowed attributes are 'profile', 'uuid', 'password', 'location', 'secure, and 'address'.

COMPARE OPTIONS

-d N, --diff-lines N
Show only N lines of a diff

Show colors even if not ryn from a TTY
Only show that entries differ, not how they differ

Specify the location of the old configuration(s).
Specify the location of the new configuration(s).

MINESTRUCT OPTIONS

Client whose metadata is to be searched for extra entries.
Hierarchy of groups in which to place the extra entries in.
Specify the xml file in which to write the extra entries.

PULL OPTIONS

Specify the name of the client to search for.
Specify the type of the entry to pull.
Specify the name of the entry to pull.

VIZ OPTIONS

Include hosts in diagram.
Include bundles in diagram.

-o outfile, --outfile outfile
Write to outfile file instead of stdout.

Add a shape/color key.

Only show groups and bundles for the named client

SEE ALSO

bcfg2-info(8), bcfg2-server(8)

April 6, 2014 1.3