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
|
QA output created by 978
== verify usage message generation
Usage: pcp [options] [[...] command [...]]
Summary Options:
-a FILE, --archive=FILE
metrics source is a PCP log archive
-h HOST, --host=HOST metrics source is PMCD on host
-n FILE, --namespace=FILE
use an alternative PMNS
-P, --pmie display pmie evaluation statistics
-?, --help show this usage message and exit
Command Options:
-h HOST, --host=HOST metrics source is PMCD on host
-n FILE, --namespace=FILE
use an alternative PMNS
-A TIME, --align=TIME align sample times on natural boundaries
-a FILE, --archive=FILE
metrics source is a PCP log archive
-g start in GUI mode with new time control
-n FILE use an alternative PMNS
-O TIME initial sample time within the time window
-p N port for connection to existing time control
-S TIME start of the time window
-s N terminate after this many samples
-T TIME end of the time window
-t DELTA sampling interval
-Z TZ, --timezone=TZ set reporting timezone
-z set reporting timezone to local time of metrics source
Anything beyond "End" will simply be appended to the usage message.
Anything at all.
== verify handling of -a xxx -h yyy
-a 'xxx' -h 'yyy'
== verify handling of -z -g --timezone TZ
-z -g -Z 'TZ'
== verify usage message generation without getopt
Usage: pcpqa [options] archive
Options:
-A TIME, --align=TIME align sample times on natural boundaries
-O TIME, --origin=TIME
initial sample time within the time window
-n FILE, --namespace=FILE
use an alternative PMNS
-d, --delay pause between updates for archive replay
-f N, --fixed=N fixed output format with N digits precision
--origin=TIME initial sample time within the time window
-t delta, --samples=delta
sampling interval
-r, --raw output raw counter values (no rate conversion)
-s N terminate after this many samples
-u non-interpolated fetching; ignores interval
--width set the width of each column of output
-?, --help show this usage message and exit
== verify handling of mixing short and long options
-d -f '5' -- '/a/b/pcplog'
== verify handling of spaces and single quotes
-- '/a/b/pcp log' '/c/d/foo'\''bar'
== verify handling of an invalid option
-? -- '/a/b/pcplog'
== verify handling of archive folios and host/archive lists
Usage: pcpqa [options]
Options:
--host-list=HOSTS comma-separated list of metric source hosts
--archive-list=FILES comma-separated list of metric source archives
--archive-folio=FILE read metric source archives from a folio
-?, --help show this usage message and exit
--archive-folio '20071023-08-06-36.folio'
|