The bcfg2-admin command provides you an interface which allows you to interact with your Bcfg2 repository in an administrative fashion. To get started, run bcfg2-admin help. You will be presented with a list of different modes which each provide various administrative functionality. Available modes are listed below.
FIXME: Need examples for each command listed below.
Create, delete, or modify client entries.
Determine differences between files or directories of client specification instances.
Interactively initialize a new repository.
Extract extra entry lists from statistics.
Query server for performance data.
Integrate configuration information from clients into the server repository.
Query clients.
The default result format is suitable for consumption by pdsh. This example queries the server for all clients in the ubuntu group:
bcfg2-admin query g=ubuntu
Interact with the Snapshots system.
Clean up useless files in the repo.
Produce graphviz diagrams of metadata structures.
The following command will produce a graphviz image which includes hosts, bundles, and a key:
bcfg2-admin viz -H -b -k -o ~/bcfg2.png
Note
The graphviz package available via DAG/RPMforge has been known to have dependency issues. We recommend installing the package from EPEL.
XML-RPC Command Interface.