summaryrefslogtreecommitdiffstats
path: root/man/bcfg2-admin.8
blob: 075aad13d6cd911022f322dc6ff90b846962677e (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
.
.TH "BCFG2\-ADMIN" "8" "July 2012" "" ""
.
.SH "NAME"
\fBbcfg2\-admin\fR \- Perform repository administration tasks
.
.SH "SYNOPSIS"
\fBbcfg2\-admin\fR [\-C \fIconfigfile\fR] \fImode\fR [\fImode args\fR] [\fImode options\fR]
.
.SH "DESCRIPTION"
\fBbcfg2\-admin\fR is used to perform Bcfg2 repository administration
.
.SH "OPTIONS"
.
.TP
\fB\-C\fR \fIconfigfile\fR
Specify alternate bcfg2\.conf location
.
.SH "MODES"
.
.TP
\fBinit\fR
Initialize a new repository (interactive)\.
.
.TP
\fBbackup\fR
Create an archive of the entire Bcfg2 repository\.
.
.TP
\fBbundle\fR \fIaction\fR
Display details about the available bundles (See \fI\fBBUNDLE OPTIONS\fR\fR below)\.
.
.TP
\fBclient\fR \fIaction\fR \fIclient\fR [attribute=value]
Add, edit, or remove clients entries in metadata (See \fI\fBCLIENT OPTIONS\fR\fR below)\.
.
.TP
\fBquery\fR [g=group] [p=profile] [\-f output\-file] [\-n] [\-c]
Search for clients based on group or profile (See \fI\fBQUERY OPTIONS\fR\fR below)\.
.
.TP
\fBcompare\fR \fIold\fR \fInew\fR
Compare two client configurations\. Can be used to verify consistent behavior between releases\. Determine differences between files or directories (See \fI\fBCOMPARE OPTIONS\fR\fR below)\.
.
.TP
\fBminestruct\fR \fIclient\fR [\-f xml\-file] [\-g groups]
Build structure entries based on client statistics extra entries (See \fI\fBMINESTRUCT OPTIONS\fR\fR below)\.
.
.TP
\fBpull\fR \fIclient\fR \fIentry\-type\fR \fIentry\-name\fR
Install configuration information into repo based on client bad entries (See \fI\fBPULL OPTIONS\fR\fR below)\.
.
.TP
\fBreports\fR [init|load_stats|purge|scrub|update]
Interact with the dynamic reporting system (See \fI\fBREPORTS OPTIONS\fR\fR below)\.
.
.TP
\fBsnapshots\fR [init|dump|query|reports]
Interact with the Snapshots database (See \fI\fBSNAPSHOTS OPTIONS\fR\fR below)\.
.
.TP
\fBtidy\fR
Remove unused files from repository\.
.
.TP
\fBviz\fR [\-H] [\-b] [\-k] [\-o png\-file]
Create a graphviz diagram of client, group and bundle information (See \fI\fBVIZ OPTIONS\fR\fR below)\.
.
.SS "BUNDLE OPTIONS"
.
.TP
\fBmode\fR
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\.
.
.SS "CLIENT OPTIONS"
.
.TP
\fBmode\fR
Add a client ’add’, delete a client ’del’, or ’list’ all client entries\.
.
.TP
\fBclient\fR
Specify the client’s name\.
.
.TP
\fBattribute=value\fR
Set attribute values when adding a new client\. Allowed attributes are ’profile’, ’uuid’, ’password’, ’location’, ’secure’, and ’address’\.
.
.SS "QUERY OPTIONS"
.
.TP
\fBb=bundle\fR
Specify a bundle to search for within client metadata\.
.
.TP
\fBg=group\fR
Specify a group to search within\.
.
.TP
\fBp=profile\fR
Specify a profile to search within\.
.
.TP
\fB\-f\fR \fIoutput file\fR
Write the results of the query to a file\.
.
.TP
\fB\-n\fR
Print the results, one on each line\.
.
.TP
\fB\-c\fR
Print the results, separated by commas\.
.
.SS "COMPARE OPTIONS"
.
.TP
\fBold\fR
Specify the location of the old configuration file\.
.
.TP
\fBnew\fR
Specify the location of the new configuration file\.
.
.SS "MINESTRUCT OPTIONS"
.
.TP
\fBclient\fR
Client whose metadata is to be searched for extra entries\.
.
.TP
\fB\-g\fR \fIgroups\fR
Hierarchy of groups in which to place the extra entries in\.
.
.TP
\fB\-f\fR \fIxml output file\fR
Specify the xml file in which to write the extra entries\.
.
.SS "PULL OPTIONS"
.
.TP
\fBclient\fR
Specify the name of the client to search for\.
.
.TP
\fBentry type\fR
Specify the type of the entry to pull\.
.
.TP
\fBentry name\fR
Specify the name of the entry to pull\.
.
.SS "REPORTS OPTIONS"
.
.TP
\fBinit\fR
Initialize the database\.
.
.TP
\fBload_stats\fR [\-s] [\-c] [\-03]
Load statistics data\.
.
.TP
\fBpurge\fR [\-\-client [n]] [\-\-days [n]] [\-\-expired]
Purge historic and expired data\.
.
.TP
\fBscrub\fR
Scrub the database for duplicate reasons and orphaned entries\.
.
.TP
\fBupdate\fR
Apply any updates to the reporting database\.
.
.SS "SNAPSHOTS OPTIONS"
.
.TP
\fBinit\fR
Initialize the snapshots database\.
.
.TP
\fBquery\fR
Query the snapshots database\.
.
.TP
\fBdump\fR
Dump some of the contents of the snapshots database\.
.
.TP
\fBreports\fR [\-a] [\-b] [\-e] [\-\-date=\fIMM\-DD\-YYYY\fR]
Generate reports for clients in the snapshots database\.
.
.SS "VIZ OPTIONS"
.
.TP
\fB\-H\fR
Include hosts in diagram\.
.
.TP
\fB\-b\fR
Include bundles in diagram\.
.
.TP
\fB\-o\fR \fIoutput file\fR
Write to outfile file instead of stdout\.
.
.TP
\fB\-k\fR
Add a shape/color key\.
.
.SH "SEE ALSO"
bcfg2\-info(8), bcfg2\-server(8)