File: newhelp.1

package info (click to toggle)
pcp 6.3.8-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 235,180 kB
  • sloc: ansic: 1,253,622; sh: 173,998; xml: 160,490; cpp: 83,331; python: 20,482; perl: 18,302; yacc: 6,886; makefile: 2,955; lex: 2,862; fortran: 60; java: 52
file content (169 lines) | stat: -rw-r--r-- 4,278 bytes parent folder | download
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
'\"macro stdmacro
.\"
.\" Copyright (c) 2000 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 NEWHELP 1 "PCP" "Performance Co-Pilot"
.SH NAME
\f3newhelp\f1 \- generate a performance metrics help database
.SH SYNOPSIS
\f3$PCP_BINADM_DIR/newhelp\f1
[\f3\-vV?\f1]
[\f3\-n\f1 \f2pmnsfile\f1]
[\f3\-o\f1 \f2outputfile\f1]
[\f2file\f1 ...]
.SH DESCRIPTION
.B newhelp
generates the
Performance Co-Pilot
help text files used by
Performance Metric Domain Agents (PMDAs).
.PP
Normally
.B newhelp
operates on the default Performance Metrics Name Space (PMNS), however
if the
.B \-n
option is specified an alternative namespace is loaded
from the file
.IR pmnsfile .
.PP
When there is only one input file,
the base name of the new database is derived from the name of the input
.IR file ,
otherwise the
.B \-o
flag must be given to explicitly name the database.
If no input files are supplied,
.B newhelp
reads from the standard input stream,
in which case the
.B \-o
flag must be given.
.PP
If the output file name is determined to be
.BR foo ,
.B newhelp
will create
.B foo.dir
and
.BR foo.pag .
.PP
The
.B \-V
flag causes verbose messages to be printed while
.B newhelp
is parsing its input.
.PP
The first line of each entry in a help source file consists of an
\&``@''
character beginning the line
followed by a space and then
the performance metric name and a one line description of the metric.
Following lines (up to the next line beginning with ``@''
or end of file) may contain a verbose help description.
E.g.
.PP
.ft CR
.nf
.in +0.5i
#
# This is an example of newhelp's input syntax
#
@ kernel.all.cpu.idle CPU idle time
A cumulative count of the number of milliseconds
of CPU idle time, summed over all processors.
.in
.fi
.ft 1
.PP
Three-part numeric metric identifiers (PMIDs) may be used in place of metric names,
e.g. \c
.ft CR
60.0.23
.ft 1
rather than
.ft CR
kernel.all.cpu.idle
.ft 1
in the example above.
Other than for dynamic metrics
(where the existence of a metric is known to
a PMDA, but not visible in the PMNS and hence has no name that
could be known to
.IR newhelp )
use of this syntactic variant is not encouraged.
.PP
Lines beginning with ``#''
are ignored, as are blank lines in the file before the first ``@''.
The verbose help text is optional.
.PP
As a special case,
a ``metric'' name of the form
.I NNN.MM
(for numeric
.I NNN
and
.IR MM )
is interpreted as an
instance domain identification,
and the text describes the instance domain.
.SH OPTIONS
The available command line options are:
.TP 5
\fB\-o\fR \fIoutput\fR, \fB\-\-output\fR=\fIoutout\fR
Specify base name for
.I output
files.
.TP
\fB\-n\fR \fIpmnsfile\fR, \fB\-\-namespace\fR=\fIpmnsfile\fR
Load an alternative Performance Metrics Name Space
.RB ( PMNS (5))
from the file
.IR pmnsfile .
.TP
\fB\-v\fR \fIversion\fR, \fB\-\-version\fR=\fIversion\fR
Set output version.
This options is deprecated, the only supported value is
.BR 2 .
.TP
\fB\-V\fR, \fB\-\-verbose\fR
Print verbose output.
.TP
\fB\-?\fR, \fB\-\-help\fR
Display usage message and exit.
.SH FILES
.TP 5
.I $PCP_VAR_DIR/pmns/*
default PMNS specification files
.SH PCP ENVIRONMENT
Environment variables with the prefix \fBPCP_\fP are used to parameterize
the file and directory names used by PCP.
On each installation, the
file \fI/etc/pcp.conf\fP contains the local values for these variables.
The \fB$PCP_CONF\fP variable may be used to specify an alternative
configuration file, as described in \fBpcp.conf\fP(5).
.PP
For environment variables affecting PCP tools, see \fBpmGetOptions\fP(3).
.SH SEE ALSO
.BR chkhelp (1),
.BR PMAPI (3),
.BR pmLookupInDomText (3),
.BR pmLookupText (3),
.BR pcp.conf (5),
.BR pcp.env (5)
and
.BR PMNS (5).

.\" control lines for scripts/man-spell
.\" +ok+  NNN dir outout pag