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
|
QA output created by 075
$ pmstore -i bin-300,bin-400,bin-500 sample.bin 500
sample.bin inst [300 or "bin-300"] old value=300 new value=500
sample.bin inst [400 or "bin-400"] old value=400 new value=500
sample.bin inst [500 or "bin-500"] old value=500 new value=500
sample.bin: pmStore: No permission to perform requested operation
$ pmstore -i bin-300,bin-400,bin-500 sample.bin 400
sample.bin inst [300 or "bin-300"] old value=300 new value=400
sample.bin inst [400 or "bin-400"] old value=400 new value=400
sample.bin inst [500 or "bin-500"] old value=500 new value=400
sample.bin: pmStore: No permission to perform requested operation
$ pmstore -i bin-300 bin-400 bin-500 sample.bin 500
sample.bin inst [300 or "bin-300"] old value=300 new value=500
sample.bin inst [400 or "bin-400"] old value=400 new value=500
sample.bin inst [500 or "bin-500"] old value=500 new value=500
sample.bin: pmStore: No permission to perform requested operation
$ pmstore -i bin-300
bin-400
bin-500 sample.bin 455
sample.bin inst [300 or "bin-300"] old value=300 new value=455
sample.bin inst [400 or "bin-400"] old value=400 new value=455
sample.bin inst [500 or "bin-500"] old value=500 new value=455
sample.bin: pmStore: No permission to perform requested operation
$ pmstore -i bin-300,bin-400,bin-500 sample.bin 234
sample.bin inst [300 or "bin-300"] old value=300 new value=234
sample.bin inst [400 or "bin-400"] old value=400 new value=234
sample.bin inst [500 or "bin-500"] old value=500 new value=234
sample.bin: pmStore: No permission to perform requested operation
$ pmstore -i bin-300,bin-400,bin-500 sample.bin 500
sample.bin inst [300 or "bin-300"] old value=300 new value=500
sample.bin inst [400 or "bin-400"] old value=400 new value=500
sample.bin inst [500 or "bin-500"] old value=500 new value=500
sample.bin: pmStore: No permission to perform requested operation
$ pmstore -i bin-300 bin-400 bin-500 sample.bin 400
Usage: pmstore [options] metricname value
General options:
-h HOST, --host=HOST metrics source is PMCD on host
-L, --local-PMDA metrics source is local connection to a PMDA
-K SPEC, --spec-local=SPEC
optional additional PMDA spec for local connection
-n FILE, --namespace=FILE
use an alternative PMNS
-?, --help show this usage message and exit
Value options:
-f, --force store the value even if there is no current value set
-i INSTS, --insts=INSTS
restrict store to comma-separated list of instances
$ pmstore -i bin-300.bin-400.bin-500 sample.bin 400
pmLookupInDom sample.bin[bin-300.bin-400.bin-500]: Unknown or illegal instance identifier
$ pmstore -i bin-300,bin-400,bin-500 sample.bin
Usage: pmstore [options] metricname value
General options:
-h HOST, --host=HOST metrics source is PMCD on host
-L, --local-PMDA metrics source is local connection to a PMDA
-K SPEC, --spec-local=SPEC
optional additional PMDA spec for local connection
-n FILE, --namespace=FILE
use an alternative PMNS
-?, --help show this usage message and exit
Value options:
-f, --force store the value even if there is no current value set
-i INSTS, --insts=INSTS
restrict store to comma-separated list of instances
$ pmstore -i bin-300,bin-400,bin-500 -h REMOTEHOST sample.bin 500
sample.bin inst [300 or "bin-300"] old value=300 new value=500
sample.bin inst [400 or "bin-400"] old value=400 new value=500
sample.bin inst [500 or "bin-500"] old value=500 new value=500
sample.bin: pmStore: No permission to perform requested operation
$ pmval -s 2 -i bin-300,bin-400,bin-500 sample.bin
metric: sample.bin
host: localhost
semantics: instantaneous value
units: none
samples: 2
interval: 1.00 sec
bin-300 bin-400 bin-500
300 400 500
300 400 500
$ pmval -i bin-300,bin-400,bin-500 -s 2 sample.bin
metric: sample.bin
host: localhost
semantics: instantaneous value
units: none
samples: 2
interval: 1.00 sec
bin-300 bin-400 bin-500
300 400 500
300 400 500
$ pmval -t 0.2 -s 2 -i bin-300 bin-400 bin-500 sample.bin
metric: sample.bin
host: localhost
semantics: instantaneous value
units: none
samples: 2
interval: 0.20 sec
bin-300 bin-400 bin-500
300 400 500
300 400 500
$ pmval -t 0.2 -s 2 -i bin-300
bin-400
bin-500 sample.bin
metric: sample.bin
host: localhost
semantics: instantaneous value
units: none
samples: 2
interval: 0.20 sec
bin-300 bin-400 bin-500
300 400 500
300 400 500
$ pmval -i bin-300,bin-400,bin-500 -s 2 sample.bin
metric: sample.bin
host: localhost
semantics: instantaneous value
units: none
samples: 2
interval: 1.00 sec
bin-300 bin-400 bin-500
300 400 500
300 400 500
$ pmval -i bin-300,bin-400,bin-500 -s 2 sample.bin
metric: sample.bin
host: localhost
semantics: instantaneous value
units: none
samples: 2
interval: 1.00 sec
bin-300 bin-400 bin-500
300 400 500
300 400 500
$ pmval -s 2 -t 0.3 -i bin-300 bin-400 bin-500 sample.bin
Error: pmval can only process one metricname at a time
Usage: pmval [options] metricname
General options:
-A TIME, --align=TIME align sample times on natural boundaries
-a FILE, --archive=FILE
metrics source is a PCP log archive
-g, --guimode start in GUI mode with new time control
-h HOST, --host=HOST metrics source is PMCD on host
-n FILE, --namespace=FILE
use an alternative PMNS
-O TIME, --origin=TIME
initial sample time within the time window
-p N, --guiport=N port for connection to existing time control
-S TIME, --start=TIME start of the time window
-s N, --samples=N terminate after this many samples
-T TIME, --finish=TIME
end of the time window
-t DELTA, --interval=DELTA
sampling interval
-Z TZ, --timezone=TZ set reporting timezone
-z, --hostzone set reporting timezone to local time of metrics source
-V, --version display version number and exit
-?, --help show this usage message and exit
-K SPEC, --spec-local=SPEC
optional additional PMDA spec for local connection
-L, --local-PMDA metrics source is local connection to a PMDA
Reporting options:
-d, --delay delay, pause between updates for archive replay
-f N, --precision=N fixed output format with N digits precision
-i INST, --instances=INST
comma-separated metrics instance list
-r, --raw output raw counter values (no rate conversion)
-U FILE, --nointerp=FILE
non-interpolated fetching; ignores interval
-w N, --width=N set the width of each column of output
$ pmval -s 2 -t 0.3 -i bin-300.bin-400.bin-500 sample.bin
pmval: instance bin-300.bin-400.bin-500 not available
$ pmval -i bin-300,bin-400 -s 2 sample.bin
metric: sample.bin
host: localhost
semantics: instantaneous value
units: none
samples: 2
interval: 1.00 sec
bin-300 bin-400
300 400
300 400
|