summaryrefslogtreecommitdiff
path: root/man/man1/pmprobe.1
blob: 58c8e7e11b526641f2fea5c1c02448c06ea9e5ab (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
'\"macro stdmacro
.\"
.\" Copyright (c) 2000-2004 Silicon Graphics, Inc.  All Rights Reserved.
.\" 
.\" This program is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License as published by the
.\" Free Software Foundation; either version 2 of the License, or (at your
.\" option) any later version.
.\" 
.\" This program is distributed in the hope that it will be useful, but
.\" WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
.\" or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
.\" for more details.
.\" 
.\"
.TH PMPROBE 1 "PCP" "Performance Co-Pilot"
.SH NAME
\f3pmprobe\f1 \- lightweight probe for performance metrics
.SH SYNOPSIS
\f3pmprobe\f1
[\f3\-fIiLVvz\f1]
[\f3\-a\f1 \f2archive\f1]
[\f3\-h\f1 \f2hostname\f1]
[\f3\-K\f1 \f2spec\f1]
[\f3\-n\f1 \f2pmnsfile\f1]
[\f3\-O\f1 \f2time\f1]
[\f3\-Z\f1 \f2timezone\f1]
[\f2metricname\f1 ...]
.SH DESCRIPTION
.B pmprobe
determines the availability of performance metrics
exported through the facilities of the Performance Co-Pilot (PCP).
.PP
The metrics of interest are named in the
.I metricname
arguments.
If
.I metricname
is a non-leaf node in the Performance Metrics Name Space (\c
.BR pmns (5)),
then
.B pmprobe
will recursively descend the PMNS and report on all leaf nodes.
If no
.I metricname
argument is given, the root of the namespace is used.
.PP
The output format is spartan and intended for use in wrapper
scripts creating configuration files for other PCP tools.
By default, there is one line of output per metric, with the
metric name followed by a count of the number of available values.
Error conditions are encoded as a negative value count (as
per the
.BR PMAPI (3)
protocols, but may be decoded using
.BR pmerr (1))
and followed by a textual description of the error.
.PP
Unless directed to another host by the
.B \-h
option,
.B pmprobe
will contact the Performance Metrics Collector Daemon
(PMCD) on the local host.
.PP
The
.B \-a
option causes
.B pmprobe
to use the specified archive rather than connecting to a PMCD.  The
.B \-a
and
.B \-h
options are mutually exclusive.
.PP
The
.B \-L
option causes
.B pmprobe
to use a local context to collect metrics from PMDAs on the local host
without PMCD.  Only some metrics are available in this mode.
The
.BR \-a , \-h
and
.B \-L
options are mutually exclusive.
.PP
Normally
.B pmprobe
operates on the distributed Performance Metrics Name Space (PMNS),
however, if the
.B \-n
option is specified an alternative local PMNS file is loaded
from the file
.IR pmnsfile .
.PP
Other options control the output of additional information when
one or more values is available.
.TP 5
.B \-f
When used with
.B \-i
or
.B \-I
the set of instances reported will be all of those known at the
source of the performance data.  By default the set of reported
instances are those for which values are currently available, which
may be smaller than the set reported with
.BR \-f .
.TP
.B \-I
Report the external identifiers for each instance.  The literal string
.B PM_IN_NULL
is reported for singular metrics.
.TP
.B \-i
Report the internal identifiers for each instance.  The values are
in decimal and prefixed by ``?''.  As a special case, the literal
string
.B PM_IN_NULL
is reported for singular metrics.
.TP
.B \-K
When using the
.B \-L
option to fetch metrics from a local context, the
.B \-K
option may be used to control the DSO PMDAs that should be
made accessible.  The
.I spec
argument conforms to the syntax described in
.BR __pmSpecLocalPMDA (3).
More than one
.B \-K
option may be used.
.TP
.B \-O
When used in conjunction with an archive source of metrics and
the
.B \-v
option the
.I time
argument defines a time origin at which the metrics should be
fetched from the archive.
Refer to
.BR PCPIntro (1)
for a complete description of this option, and the syntax for the
.I time
argument.
.RS
.PP
When the ``ctime'' format is used for the
.I time
argument in a
.B \-O
option, the timezone becomes an issue.
The default is to use the
local timezone on the
system where
.B pmprobe
is run.
The
.B \-Z
option changes the timezone to
.I timezone
in the format of the environment variable
.B TZ
as described in
.BR environ (5).
The
.B \-z
option changes the timezone to the local timezone at the
host that is the source of the performance metrics, as identified via
the
.B \-a
option.
.RE
.TP
.B \-v
Report the value for each instance, as per the formatting
rules of
.BR pmPrintValue (3).
When fetching from an archive, only
those instances present in the first archive record for a metric will be
displayed; see also the
.B \-O
option.
.PP
The
.B \-v
option is mutually exclusive with either the
.B \-I
or
.B \-i
options.
.PP
The
.B \-V
option provides a cryptic summary of the number of messages sent
and received across the PMAPI interface.
.SH EXAMPLES
.nf
.ft CW
$ pmprobe disk.dev
.ft CW
disk.dev.read 2
disk.dev.write 2
disk.dev.total 2
disk.dev.blkread 2
disk.dev.blkwrite 2
disk.dev.blktotal 2
disk.dev.active 2
disk.dev.response 2
.sp
.ft CW
$ pmprobe \-I disk.dev.read disk.dev.write disk.all.total
.ft CW
disk.dev.read 2 "dks0d1" "dks0d2"
disk.dev.write 2 "dks0d1" "dks0d2"
disk.all.total 1 PM_IN_NULL
.sp
.ft CW
$ pmprobe \-v pmcd.numagents pmcd.version pmcd.control.timeout
.ft CW
pmcd.numagents 1 9
pmcd.version 1 "2.0 beta-1"
pmcd.control.timeout 1 5
.sp
.ft CW
$ pmprobe \-v disk.dev.total disk.all.total
.ft CW
disk.dev.total \-1012 Unknown metric name
disk.all.total 1 4992466
.fi
.ft R
.SH FILES
.PD 0
.TP 10
.BI $PCP_VAR_DIR/pmns/ *
default PMNS specification files
.PD
.SH "PCP ENVIRONMENT"
Environment variables with the prefix
.B PCP_
are used to parameterize the file and directory names
used by PCP.
On each installation, the file
.I /etc/pcp.conf
contains the local values for these variables.
The
.B $PCP_CONF
variable may be used to specify an alternative
configuration file,
as described in
.BR pcp.conf (5).
.SH SEE ALSO
.BR PCPIntro (1),
.BR pmcd (1),
.BR pmdumplog (1),
.BR pminfo (1),
.BR PMAPI (3),
.BR pmErrStr (3),
.BR __pmSpecLocalPMDA (3),
.BR pcp.conf (5),
.BR pcp.env (5)
and
.BR pmns (5).