summaryrefslogtreecommitdiffstats
path: root/man/bcfg2-admin.8
blob: 6607344d848200692728db54205666eaede3a725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
.TH "bcfg2-admin" 8
.SH NAME
bcfg2-admin \- Perform repository administration tasks
.SH SYNOPSIS
.B bcfg2-admin
.I [-C config-file]
.I <mode>
.I <mode args>
.I <mode options>
.SH DESCRIPTION
.PP
.B bcfg2-admin
Perform Bcfg2 repository administration
.SH OPTIONS
.PP
.B \-C <config-file>
.RS
Specify the location of the configuration file (if it is not in
/etc/bcfg2.conf).
.RE
.SH MODES
.PP
.B init
.RS
Initialize a new repository (interactive).
.RE
.B backup
.RS
Create an archive of the whole Bcfg2 repository.
.RE
.B bundle <action>
.RS
Display details about the available bundles.
.RE
.B client <action> <client> [attribute=value]
.RS
Add, edit, or remove clients entries in metadata.
.RE
.B query [g=group] [p=profile] [-f output-file] [-n] [-c]
.RS
Search for clients based on group or profile.
.RE
.B compare <old> <new>
.RS
Compare two client configurations. Can be used to verify consistent
behavior between releases. Determine differences between files or
directories.
.RE
.B minestruct <client> [-f xml-file] [-g groups]
.RS
Build structure entries based on client statistics extra entries.
.RE
.B pull <client> <entry-type> <entry-name>
.RS
Install configuration information into repo based on client bad
entries.
.RE
.B reports [init|load_stats|purge|scrub|update]
.RS
Interact with the dynamic reporting system.
.RE
.B snapshots [init|dump|query|reports]
.RS
Interact with the Snapshots database.
.RE
.B tidy
.RS
Remove unused files from repository.
.RE
.B viz [-H] [-b] [-k] [-o png-file]
.RS
Create a graphviz diagram of client, group and bundle information.
.RE
.SH BUNDLE OPTIONS
.PP
.B mode
.RS
List all available xml bundles 'list-xml' or for all available genshi
bundles 'list-genshi'. 'show' provides an interactive dialog to get
details about the available bundles.
.RE
.SH CLIENT OPTIONS
.PP
.B mode
.RS
Add a client 'add', delete a client 'del', or 'list' all client entries.
.RE
.B client
.RS
Specify the client's name.
.RE
.B attribute=value
.RS
Set attribute values when adding a new client. Allowed attributes
are 'profile', 'uuid', 'password', 'location', 'secure', and 'address'.
.RE
.SH QUERY OPTIONS
.PP
.B g=group
.RS
Specify a group to search within.
.RE
.B p=profile
.RS
Specify a profile to search within.
.RE
.B \-f <output-file>
.RS
Write the results of the query to a file.
.RE
.B \-n
.RS
Print the results, one on each line.
.RE
.B \-c
.RS
Print the results, separated by commas.
.RE
.SH COMPARE OPTIONS
.PP
.B old
.RS
Specify the location of the old configuration file.
.RE
.B new
.RS
Specify the location of the new configuration file.
.RE
.SH MINESTRUCT OPTIONS
.PP
.B client
.RS
Client whose metadata is to be searched for extra entries.
.RE
.B \-g <groups>
.RS
Hierarchy of groups in which to place the extra entries in.
.RE
.B \-f <xml-output-file>
.RS
Specify the xml file in which to write the extra entries.
.RE
.SH PULL OPTIONS
.PP
.B client
.RS
Specify the name of the client to search for.
.RE
.B entry-type
.RS
Specify the type of the entry to pull.
.RE
.B entry-name
.RS
Specify the name of the entry to pull.
.RE
.SH REPORTS OPTIONS
.PP
.B init
.RS
Initialize the database.
.RE
.B load_stats [-s] [-c] [-03]
.RS
Load statistics data.
.RE
.B purge [--client [n]] [--days [n]] [--expired]
.RS
Purge historic and expired data.
.RE
.B scrub
.RS
Scrub the database for duplicate reasons and orphaned entries.
.RE
.B update
.RS
Apply any updates to the reporting database.
.RE
.SH SNAPSHOTS OPTIONS
.PP
.B init
.RS
Initialize the snapshots database.
.RE
.B query
.RS
Query the snapshots database.
.RE
.B dump
.RS
Dump some of the contents of the snapshots database.
.RE
.B reports [-a] [-b] [-e] [--date=<MM-DD-YYYY>]
.RS
Generate reports for clients in the snapshots database.
.RE
.SH VIZ OPTIONS
.PP
.B \-H
.RS
Include hosts in diagram.
.RE
.B \-b
.RS
Include bundles in diagram.
.RE
.B \-o <output file>
.RS
Write to outfile file instead of stdout.
.RE
.B \-k
.RS
Add a shape/color key.
.RE