1 QA output created by 617
10 debug flag [ flag ... ] (flag is decimal or symbolic name)
12 fetch metric [ metric ... ]
14 instance indom# [ number | name | "name" ]
17 open dso dsoname init_routine [ domain# ]
18 open pipe execname [ arg ... ]
21 profile indom# [ all | none ]
22 profile indom# [ add | delete ] number
41 Dump Instance Profile state=INCLUDE, 0 profiles
43 dbpmda> #a comment, this should be ignored
44 dbpmda> #test the debug and status commands
45 dbpmda> debug# a command with a trailing comment
47 debug flag [ flag ... ] (flag is decimal or symbolic name)
51 debug flag [ flag ... ] (flag is decimal or symbolic name)
53 Specify which debugging flags should be active (see pmdbg(1)). Flags may
54 be specified as integers or by name, with multiple flags separated by
55 white space. All flags may be selected or deselected if 'all' or 'none' is
56 specified. The current setting is displayed by the status command.
68 Dump Instance Profile state=INCLUDE, 0 profiles
70 dbpmda> debug appl0 timecontrol
75 pmDebug: 67584 ( appl0 + timecontrol )
79 Dump Instance Profile state=INCLUDE, 0 profiles
90 Dump Instance Profile state=INCLUDE, 0 profiles
93 Warning: Bad debug flag (blah)
101 Dump Instance Profile state=INCLUDE, 0 profiles
104 Warning: Bad debug flag (blah)
112 Dump Instance Profile state=INCLUDE, 0 profiles
114 dbpmda> debug blah fetch
115 Warning: Bad debug flag (blah)
123 Dump Instance Profile state=INCLUDE, 0 profiles
125 dbpmda> open pipe /blah/this_file_should_not_exist
126 openpmda: /blah/this_file_should_not_exist: No such file or directory
135 Dump Instance Profile state=INCLUDE, 0 profiles
137 dbpmda> open dso /blah/this_file_should_not_exist blah_init 128
138 opendso: /blah/this_file_should_not_exist: No such file or directory
147 Dump Instance Profile state=INCLUDE, 0 profiles
149 dbpmda> open pipe $PCP_PMDAS_DIR/sample/pmdasample -d 29
150 Start pmdasample PMDA: $PCP_PMDAS_DIR/sample/pmdasample -d 29
154 PMDA: $PCP_PMDAS_DIR/sample/pmdasample
156 PMDA PMAPI Version: 2
161 Dump Instance Profile state=INCLUDE, 0 profiles
163 dbpmda> #test the desc command
168 Data Type: 32-bit int InDom: 29.2 0x7400002
169 Semantics: instant Units: none
170 dbpmda> desc sample.bin
172 Data Type: 32-bit int InDom: 29.2 0x7400002
173 Semantics: instant Units: none
174 dbpmda> #test the instance command
176 instance indom# [ number | name | "name" ]
177 dbpmda> instance 29.2
179 [ 0] inst: 100 name: "bin-100"
180 [ 1] inst: 200 name: "bin-200"
181 [ 2] inst: 300 name: "bin-300"
182 [ 3] inst: 400 name: "bin-400"
183 [ 4] inst: 500 name: "bin-500"
184 [ 5] inst: 600 name: "bin-600"
185 [ 6] inst: 700 name: "bin-700"
186 [ 7] inst: 800 name: "bin-800"
187 [ 8] inst: 900 name: "bin-900"
188 dbpmda> instance 29.2 300
191 dbpmda> instance 29.2 "bin-100"
194 dbpmda> instance 29.2 "bin
197 Type 'help' for a list of commands.
198 dbpmda> instance "bin
201 Type 'help' for a list of commands.
202 dbpmda> instance 30.3
204 Error PDU: Unknown or illegal instance domain identifier
207 Error PDU: Unknown or illegal instance domain identifier
209 pmInDom: PM_INDOM_NULL
210 Error PDU: Unknown or illegal instance domain identifier
211 dbpmda> #test the timer command
218 PMDA: $PCP_PMDAS_DIR/sample/pmdasample
220 PMDA PMAPI Version: 2
225 Dump Instance Profile state=INCLUDE, 0 profiles
231 PMDA: $PCP_PMDAS_DIR/sample/pmdasample
233 PMDA PMAPI Version: 2
238 Dump Instance Profile state=INCLUDE, 0 profiles
240 dbpmda> #test the fetch command
243 fetch metric [ metric ... ]
246 pmResult dump from ADDR timestamp: 0.000000 TIMEZONE numpmid: 1
247 29.0.6 (sample.bin): numval: 9 valfmt: 0 vlist[]:
248 inst [100 or ???] value 100
249 inst [200 or ???] value 200
250 inst [300 or ???] value 300
251 inst [400 or ???] value 400
252 inst [500 or ???] value 500
253 inst [600 or ???] value 600
254 inst [700 or ???] value 700
255 inst [800 or ???] value 800
256 inst [900 or ???] value 900
257 dbpmda> fetch sample.bin 29.0.5
258 PMID(s): 29.0.6 29.0.5
259 pmResult dump from ADDR timestamp: 0.000000 TIMEZONE numpmid: 2
260 29.0.6 (sample.bin): numval: 9 valfmt: 0 vlist[]:
261 inst [100 or ???] value 100
262 inst [200 or ???] value 200
263 inst [300 or ???] value 300
264 inst [400 or ???] value 400
265 inst [500 or ???] value 500
266 inst [600 or ???] value 600
267 inst [700 or ???] value 700
268 inst [800 or ???] value 800
269 inst [900 or ???] value 900
270 29.0.5 (sample.colour): numval: 3 valfmt: 0 vlist[]:
271 inst [0 or ???] value 101
272 inst [1 or ???] value 202
273 inst [2 or ???] value 303
276 Error: Unknown metric name
277 Type 'help' for a list of commands.
279 Warning: PMID (0.0.29) is not defined in the PMNS
281 Error PDU: Unknown or illegal metric identifier
283 Warning: PMID (0.0.29) is not defined in the PMNS
285 Error PDU: Unknown or illegal metric identifier
287 Warning: PMID (0.1.2) is not defined in the PMNS
289 Error PDU: Unknown or illegal metric identifier
290 dbpmda> #test the profile command
292 profile indom# [ all | none ]
293 profile indom# [ add | delete ] number
294 dbpmda> profile 29.2 none
298 PMDA: $PCP_PMDAS_DIR/sample/pmdasample
300 PMDA PMAPI Version: 2
305 Dump Instance Profile state=INCLUDE, 1 profiles
306 Profile [0] indom=121634818 [29.2] state=EXCLUDE 0 instances
310 pmResult dump from ADDR timestamp: 0.000000 TIMEZONE numpmid: 1
311 29.0.6 (sample.bin): No values returned!
312 dbpmda> profile 29.2 add 200
316 PMDA: $PCP_PMDAS_DIR/sample/pmdasample
318 PMDA PMAPI Version: 2
323 Dump Instance Profile state=INCLUDE, 1 profiles
324 Profile [0] indom=121634818 [29.2] state=EXCLUDE 1 instances
329 pmResult dump from ADDR timestamp: 0.000000 TIMEZONE numpmid: 1
330 29.0.6 (sample.bin): numval: 1 valfmt: 0 vlist[]:
331 inst [200 or ???] value 200
332 dbpmda> profile 29.2 add 250
336 PMDA: $PCP_PMDAS_DIR/sample/pmdasample
338 PMDA PMAPI Version: 2
343 Dump Instance Profile state=INCLUDE, 1 profiles
344 Profile [0] indom=121634818 [29.2] state=EXCLUDE 2 instances
345 Instances: [200] [250]
349 pmResult dump from ADDR timestamp: 0.000000 TIMEZONE numpmid: 1
350 29.0.6 (sample.bin): numval: 1 valfmt: 0 vlist[]:
351 inst [200 or ???] value 200
352 dbpmda> profile 29.2 add 300
356 PMDA: $PCP_PMDAS_DIR/sample/pmdasample
358 PMDA PMAPI Version: 2
363 Dump Instance Profile state=INCLUDE, 1 profiles
364 Profile [0] indom=121634818 [29.2] state=EXCLUDE 3 instances
365 Instances: [200] [250] [300]
369 pmResult dump from ADDR timestamp: 0.000000 TIMEZONE numpmid: 1
370 29.0.6 (sample.bin): numval: 2 valfmt: 0 vlist[]:
371 inst [200 or ???] value 200
372 inst [300 or ???] value 300
373 dbpmda> profile 29.2 delete 200
377 PMDA: $PCP_PMDAS_DIR/sample/pmdasample
379 PMDA PMAPI Version: 2
384 Dump Instance Profile state=INCLUDE, 1 profiles
385 Profile [0] indom=121634818 [29.2] state=EXCLUDE 2 instances
386 Instances: [250] [300]
390 pmResult dump from ADDR timestamp: 0.000000 TIMEZONE numpmid: 1
391 29.0.6 (sample.bin): numval: 1 valfmt: 0 vlist[]:
392 inst [300 or ???] value 300
393 dbpmda> profile 29.2 all
397 PMDA: $PCP_PMDAS_DIR/sample/pmdasample
399 PMDA PMAPI Version: 2
404 Dump Instance Profile state=INCLUDE, 1 profiles
405 Profile [0] indom=121634818 [29.2] state=INCLUDE 0 instances
409 pmResult dump from ADDR timestamp: 0.000000 TIMEZONE numpmid: 1
410 29.0.6 (sample.bin): numval: 9 valfmt: 0 vlist[]:
411 inst [100 or ???] value 100
412 inst [200 or ???] value 200
413 inst [300 or ???] value 300
414 inst [400 or ???] value 400
415 inst [500 or ???] value 500
416 inst [600 or ???] value 600
417 inst [700 or ???] value 700
418 inst [800 or ???] value 800
419 inst [900 or ???] value 900
420 dbpmda> #test the text command
426 [Several constant instances]
427 9 instances labelled "bin-100" thru "bin-900", each with a constant
428 value of 100 thru 900.
429 dbpmda> text indom 29.2
431 [Instance domain "bin" for sample PMDA]
432 Universally 9 instances numbered 100 .. 900 in steps of 100, and named
433 "bin-100" .. "bin-900"
434 dbpmda> text indom 29.5
436 Error PDU: Oneline or help text is not available
437 Error PDU: Oneline or help text is not available
438 dbpmda> text blah 29.2
440 Error: Unknown metric name
441 Type 'help' for a list of commands.
442 dbpmda> #test the store command
445 dbpmda> store 29.0.36 "42"
447 Getting description...
448 Getting Result Structure...
451 dbpmda> fetch sample.write_me
453 pmResult dump from ADDR timestamp: 0.000000 TIMEZONE numpmid: 1
454 29.0.36 (sample.write_me): numval: 1 valfmt: 0 vlist[]:
456 dbpmda> store 29.0.36
459 Type 'help' for a list of commands.
460 dbpmda> store 29.0.36 "57.3"
462 Getting description...
463 Getting Result Structure...
464 Error: Value "57.3" is incompatible with metric type (PM_TYPE_32)
465 dbpmda> store 20.0.36 Warning: PMID (20.0.36) is not defined in the PMNS
469 Type 'help' for a list of commands.
470 dbpmda> store sample.write_me "Hello there"
472 Getting description...
473 Getting Result Structure...
474 Error: Value "Hello there" is incompatible with metric type (PM_TYPE_32)
475 dbpmda> store 29.0.20 "3"
477 Getting description...
478 Getting Result Structure...
481 Error PDU: No permission to perform requested operation
482 dbpmda> store 0.0.0 Warning: PMID (0.0.0) is not defined in the PMNS
485 Getting description...
486 Error PDU: Unknown or illegal metric identifier
487 dbpmda> store sample.aggregate.write_me "foo bar"
489 Getting description...
490 Getting Result Structure...
491 Error: dbpmda does not support storing into AGGREGATE metrics
492 dbpmda> store sample.event.records "foo bar"
494 Getting description...
495 Getting Result Structure...
496 Error: dbpmda does not support storing into EVENT metrics
497 dbpmda> #test the close and open commands
507 Dump Instance Profile state=INCLUDE, 1 profiles
508 Profile [0] indom=121634818 [29.2] state=INCLUDE 0 instances
510 dbpmda> open dso PMDADSO sample_init 30
516 DSO Interface Version: N
517 PMDA PMAPI Version: 2
522 Dump Instance Profile state=INCLUDE, 0 profiles
533 Dump Instance Profile state=INCLUDE, 0 profiles
538 Error: Unrecognized command
539 Type 'help' for a list of commands.