summaryrefslogtreecommitdiff
path: root/qa/443.out
blob: f72e7d585d530d3cad6e487020576a0166b3aa44 (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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
QA output created by 443
=== -a foo -a bar ===
pmevent: at most one of -a/-h/-L allowed
Usage: pmevent [options] metricname ...
=== -h foo -h bar ===
pmevent: at most one of -a/-h/-L allowed
Usage: pmevent [options] metricname ...
=== -a foo -h bar ===
pmevent: at most one of -a/-h/-L allowed
Usage: pmevent [options] metricname ...
=== -h foo -a bar ===
pmevent: at most one of -a/-h/-L allowed
Usage: pmevent [options] metricname ...
=== -D blah ===
pmevent: unrecognized debug flag specification (blah)
Usage: pmevent [options] metricname ...
=== -g -p 1234 ===
pmevent: at most one of -g and -p allowed
Usage: pmevent [options] metricname ...
=== -p 1234 -g ===
pmevent: at most one of -g and -p allowed
Usage: pmevent [options] metricname ...
=== -p 123foo ===
pmevent: -p requires a positive numeric argument
Usage: pmevent [options] metricname ...
=== -K blah,a,/no/such/file,no_init ===
pmevent: illegal -K argument
bad op in spec
Usage: pmevent [options] metricname ...
=== -s 456bar ===
pmevent: -s requires a positive numeric argument
Usage: pmevent [options] metricname ...
=== -s 3 -T+5min ===
pmevent: at most one of -s and -T allowed
Usage: pmevent [options] metricname ...
=== -T+5min -s 10 ===
pmevent: at most one of -s and -T allowed
Usage: pmevent [options] metricname ...
=== -t 10foobars ===
pmevent: illegal -t argument
10foobars
  ^ -- unexpected value
Usage: pmevent [options] metricname ...
=== -Z GMT -z ===
pmevent: at most one of -Z and/or -z allowed
Usage: pmevent [options] metricname ...
=== -z -Z EST ===
pmevent: at most one of -Z and/or -z allowed
Usage: pmevent [options] metricname ...
=== -q ===
pmevent: invalid option -- 'q'
Usage: pmevent [options] metricname ...
=== -a foo ===
Error: no metricname specified

--- bad metric spec ---
=== /some/path/no/metric/ ===
pmevent: bad metric specification
/some/path/no/metric/
                     ^ -- performance metric name expected
=== somehost_and_no_metric: ===
pmevent: bad metric specification
somehost_and_no_metric:
                       ^ -- performance metric name expected

--- illegal mixed sources ---
=== src/eventrec-old/sample.event.records foo/bar ===
pmevent: foo/bar: only one metric source allowed, found archives src/eventrec-old and foo
=== -a /some/path foo:bar ===
pmevent: foo:bar: only one type of metric source allowed
=== -a src/eventrec-old src/eventrec-old/sample.event.records foo/bar ===
pmevent: foo/bar: only one metric source allowed, found archives src/eventrec-old and foo
=== localhost:sample.event.records foo:bar ===
pmevent: foo:bar: only one metric source allowed, found hosts localhost and foo
=== -h somehost foo/bar ===
pmevent: foo/bar: only one type of metric source allowed
=== -h localhost localhost:sample.event.records foo:bar ===
pmevent: foo:bar: only one metric source allowed, found hosts localhost and foo
=== @:sampledso.event.records foo:bar ===
pmevent: foo:bar: only one type of metric source allowed

--- problems at source of metrics ---
=== -h no.such.host sample.event.records ===
pmevent: Cannot connect to PMCD on host "no.such.host": No route to host
=== -a /no/such/archive sample.event.records ===
pmevent: Cannot open archive "/no/such/archive": No such file or directory
=== -L sample.event.records ===
pmevent: pmLookupDesc: sample.event.records: No PMCD agent for domain of request
=== sample.event.records sample.colour ===
pmevent: sample.colour: metrics must be of event type
=== -Dappl0 sample.colour[red] ===
pmevent: sample.colour: metrics must be of event type
=== -Dappl0 sample.event.no_indom_records[red] ===
pmevent: sample.event.no_indom_records[red]: singular metrics do not have instances

--- should be ok ---
=== -t 10msec -s 1 sample.event.records sample.event.records ===
host:      localhost
samples:   1
sample.event.records[fungus]: 0 event records
sample.event.records[bogus]: 2 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #0"
  TIMESTAMP --- event record [1] flags 0x1 (point) ---
    sample.event.param_string "bingo!"
=== -t 10msec -s 8 sample.event.records ===
host:      localhost
samples:   8
interval:  0.01 sec
sample.event.records[fungus]: 0 event records
sample.event.records[bogus]: 2 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #0"
  TIMESTAMP --- event record [1] flags 0x1 (point) ---
    sample.event.param_string "bingo!"
sample.event.records[fungus]: 1 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
sample.event.records[bogus]: 1 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #1"
sample.event.records[fungus]: 2 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.type 1
  TIMESTAMP --- event record [1] flags 0x1 (point) ---
    sample.event.type 2
    sample.event.param_64 -3
sample.event.records[bogus]: 1 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #2"
sample.event.records[fungus]: 5 event records
  TIMESTAMP --- event record [0] flags 0x1a (start,id,parent) ---
    sample.event.type 4
    sample.event.param_u64 5
    sample.event.param_string "6"
  TIMESTAMP --- event record [1] flags 0x1 (point) ---
    sample.event.type 7
    sample.event.param_double 8
    sample.event.param_double -9
  TIMESTAMP --- event record [2] flags 0x4 (end) ---
    sample.event.type 10
    sample.event.param_u64 11
    sample.event.param_string "twelve"
    sample.event.param_string "thirteen"
    sample.event.param_32 -14
    sample.event.param_u32 15
  TIMESTAMP --- event record [3] flags 0x80000000 (missed) ---
    ==> 7 missed event records
  TIMESTAMP --- event record [4] flags 0x1 (point) ---
    sample.event.type 16
    sample.event.param_float -17
    sample.event.param_aggregate [0103070f1f3f7fff]
sample.event.records[bogus]: 2 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #3"
  TIMESTAMP --- event record [1] flags 0x1 (point) ---
    sample.event.param_string "bingo!"
sample.event.records[fungus]: 0 event records
sample.event.records[bogus]: 1 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #4"
sample.event.records[fungus]: 1 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
sample.event.records[bogus]: 1 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #5"
sample.event.records[fungus]: 2 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.type 1
  TIMESTAMP --- event record [1] flags 0x1 (point) ---
    sample.event.type 2
    sample.event.param_64 -3
sample.event.records[bogus]: 2 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #6"
  TIMESTAMP --- event record [1] flags 0x1 (point) ---
    sample.event.param_string "bingo!"
sample.event.records[fungus]: 5 event records
  TIMESTAMP --- event record [0] flags 0x1a (start,id,parent) ---
    sample.event.type 4
    sample.event.param_u64 5
    sample.event.param_string "6"
  TIMESTAMP --- event record [1] flags 0x1 (point) ---
    sample.event.type 7
    sample.event.param_double 8
    sample.event.param_double -9
  TIMESTAMP --- event record [2] flags 0x4 (end) ---
    sample.event.type 10
    sample.event.param_u64 11
    sample.event.param_string "twelve"
    sample.event.param_string "thirteen"
    sample.event.param_32 -14
    sample.event.param_u32 15
  TIMESTAMP --- event record [3] flags 0x80000000 (missed) ---
    ==> 7 missed event records
  TIMESTAMP --- event record [4] flags 0x1 (point) ---
    sample.event.type 16
    sample.event.param_float -17
    sample.event.param_aggregate [0103070f1f3f7fff]
sample.event.records[bogus]: 1 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #7"
=== -t 10msec -s 3 sample.event.records[bogus] ===
host:      localhost
samples:   3
interval:  0.01 sec
sample.event.records[bogus]: 2 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #0"
  TIMESTAMP --- event record [1] flags 0x1 (point) ---
    sample.event.param_string "bingo!"
sample.event.records[bogus]: 1 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #1"
sample.event.records[bogus]: 1 event records
  TIMESTAMP --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #2"

--- archive exercises ---
=== -z src/eventrec-old/sample.event.records ===
Note: timezone set to local timezone of host "bozo" from archive

archive:   src/eventrec-old
host:      bozo
start:     Sat Dec  4 15:26:09 2010
end:       Sat Dec  4 15:26:14 2010
samples:   all
15:26:10.073  sample.event.records: 5 event records
  15:26:00.073 --- event record [0] ---
    sample.event.type 4
    sample.event.param_u64 5
    sample.event.param_string "6"
  15:26:01.073 --- event record [1] ---
    sample.event.type 7
    sample.event.param_double 8
    sample.event.param_double -9
  15:26:02.073 --- event record [2] flags 0x2 (start) ---
    sample.event.type 10
    sample.event.param_u64 11
    sample.event.param_string "twelve"
    sample.event.param_string "thirteen"
    sample.event.param_32 -14
    sample.event.param_u32 15
  15:26:03.073 --- event record [3] flags 0x80000000 (missed) ---
    ==> 7 missed event records
  15:26:04.073 --- event record [4] ---
    sample.event.type 16
    sample.event.param_float -17
    sample.event.param_aggregate [0103070f1f3f7fff]
15:26:11.073  sample.event.records: 0 event records
15:26:12.074  sample.event.records: 1 event records
  15:26:02.073 --- event record [0] ---
    ==> No parameters
15:26:13.073  sample.event.records: 2 event records
  15:26:03.073 --- event record [0] ---
    sample.event.type 1
  15:26:04.073 --- event record [1] flags 0x1 (point) ---
    sample.event.type 2
    sample.event.param_64 -3
15:26:14.073  sample.event.records: 5 event records
  15:26:04.073 --- event record [0] ---
    sample.event.type 4
    sample.event.param_u64 5
    sample.event.param_string "6"
  15:26:05.073 --- event record [1] ---
    sample.event.type 7
    sample.event.param_double 8
    sample.event.param_double -9
  15:26:06.073 --- event record [2] flags 0x2 (start) ---
    sample.event.type 10
    sample.event.param_u64 11
    sample.event.param_string "twelve"
    sample.event.param_string "thirteen"
    sample.event.param_32 -14
    sample.event.param_u32 15
  15:26:07.073 --- event record [3] flags 0x80000000 (missed) ---
    ==> 7 missed event records
  15:26:08.073 --- event record [4] ---
    sample.event.type 16
    sample.event.param_float -17
    sample.event.param_aggregate [0103070f1f3f7fff]
=== -z -S@15:26:11.073 -s 2 -a src/eventrec-old sample.event.records ===
Note: timezone set to local timezone of host "bozo" from archive

archive:   src/eventrec-old
host:      bozo
start:     Sat Dec  4 15:26:11 2010
end:       Sat Dec  4 15:26:14 2010
samples:   2
15:26:11.073  sample.event.records: 0 event records
15:26:12.074  sample.event.records: 1 event records
  15:26:02.073 --- event record [0] ---
    ==> No parameters
=== -z -O+2.5 -T+4.5 -a src/eventrec-old sample.event.records ===
Note: timezone set to local timezone of host "bozo" from archive

archive:   src/eventrec-old
host:      bozo
start:     Sat Dec  4 15:26:09 2010
end:       Sat Dec  4 15:26:13 2010
samples:   all
15:26:12.074  sample.event.records: 1 event records
  15:26:02.073 --- event record [0] ---
    ==> No parameters
15:26:13.073  sample.event.records: 2 event records
  15:26:03.073 --- event record [0] ---
    sample.event.type 1
  15:26:04.073 --- event record [1] flags 0x1 (point) ---
    sample.event.type 2
    sample.event.param_64 -3

--- highres events ---
=== -z src/eventrec/sample.event.highres_records ===
Note: timezone set to local timezone of host "slick" from archive

archive:   src/eventrec
host:      slick
start:     Wed Sep  3 13:42:53 2014
end:       Wed Sep  3 13:42:58 2014
samples:   all
13:42:54.146  sample.event.highres_records[fungus]: 1 event records
  13:42:44.146207109 --- event record [0] flags 0x1 (point) ---
sample.event.highres_records[bogus]: 1 event records
  13:42:54.146208753 --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #1"
13:42:55.146  sample.event.highres_records[fungus]: 2 event records
  13:42:45.146290917 --- event record [0] flags 0x1 (point) ---
    sample.event.type 1
  13:42:46.146290917 --- event record [1] flags 0x1 (point) ---
    sample.event.type 2
    sample.event.param_64 -3
sample.event.highres_records[bogus]: 1 event records
  13:42:55.146293674 --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #2"
13:42:56.146  sample.event.highres_records[fungus]: 5 event records
  13:42:46.146187279 --- event record [0] flags 0x1a (start,id,parent) ---
    sample.event.type 4
    sample.event.param_u64 5
    sample.event.param_string "6"
  13:42:47.146187279 --- event record [1] flags 0x1 (point) ---
    sample.event.type 7
    sample.event.param_double 8
    sample.event.param_double -9
  13:42:48.146187279 --- event record [2] flags 0x4 (end) ---
    sample.event.type 10
    sample.event.param_u64 11
    sample.event.param_string "twelve"
    sample.event.param_string "thirteen"
    sample.event.param_32 -14
    sample.event.param_u32 15
  13:42:49.146187279 --- event record [3] flags 0x80000000 (missed) ---
    ==> 0 missed event records
  13:42:50.146187279 --- event record [4] flags 0x1 (point) ---
    sample.event.type 16
    sample.event.param_float -17
    sample.event.param_aggregate [0103070f1f3f7fff]
sample.event.highres_records[bogus]: 2 event records
  13:42:56.146194604 --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #3"
  13:42:56.146194604 --- event record [1] flags 0x1 (point) ---
    sample.event.param_string "bingo!"
13:42:57.146  sample.event.highres_records[fungus]: 0 event records
sample.event.highres_records[bogus]: 1 event records
  13:42:57.146218425 --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #4"
13:42:58.146  sample.event.highres_records[fungus]: 1 event records
  13:42:48.146230678 --- event record [0] flags 0x1 (point) ---
sample.event.highres_records[bogus]: 1 event records
  13:42:58.146232332 --- event record [0] flags 0x1 (point) ---
    sample.event.param_string "fetch #5"