SysTutorials

Linux Manual Pages › Section 8

bcfg2-admin(8)

bcfg2-admin – Perform repository administration tasks

Synopsis

bcfg2-admin [-C config-file] <mode> <mode args> <mode options>

Description

bcfg2-admin Perform bcfg2 repository administration

Options

-C <config-file>

Specify the location of the configuration file (if it is not in /etc/bcfg2.conf)

Modes

init

Initialize a new repository (interactive)

client <action> <client> [attribute=value]

Add or remove clients from metadata

query [g=group] [p=profile] [-f output-file] [-n] [-c]

Search for clients based on group or profile

compare <old> <new>

Compare two client configurations. Can be used to verify consistent behavior between releases

minestruct <client> [-f xml-file] [-g groups]

Build structure entries based on client statistics extra entries

pull <client> <entry-type> <entry-name>

Install configuration information into repo based on client bad entries

tidy

Remove unused files from repository

viz [-h] [-b] [-k] [-o png-file] [-r]

Create a graphviz diagram of client, group and bundle information

Client Options

mode

Add a client ‘add’ or delete a client ‘del’

client

Specify the client’s name

attribute=value

Set attribute values when adding a new client

Query Options

g=group

Specify a group to search within

p=profile

Specify a profile to search within

-f <output-file>

Write the results of the query to a file

-n

Print the results, one on each line

-c

Print the results, separated by commas

Compare Options

old

Specify the location of the old configuration file

new

Specify the location of the new configuration file

Minestruct Options

client

Client whose metadata is to be searched for extra entries

-g <groups>

Hierarchy of groups in which to place the extra entries in

-f <xml-output-file>

Specify the xml file in which to write the extra entries

Pull Options

client

Specify the name of the client to search for

entry-type

Specify the type of the entry to pull

entry-name

Specify the name of the entry to pull

Viz Options

-h

Include hosts in diagram

-b

Include bundles in diagram

-o <output file>

Write to outfile file instead of stdout

-r

Produce raw graphviz output

-k

Add a shape/color key