File: chkhelp.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 (162 lines) | stat: -rw-r--r-- 3,860 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
'\"macro stdmacro
.\"
.\" Copyright (c) 2001 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 CHKHELP 1 "PCP" "Performance Co-Pilot"
.SH NAME
\f3chkhelp\f1 \- check performance metrics help text files
.SH SYNOPSIS
\f3$PCP_BINADM_DIR/chkhelp\f1
[\f3\-eHiOp?\f1]
[\f3\-n\f1 \f2pmnsfile\f1]
\f2helpfile\f1
[\f2metricname\f1 ...]
.SH DESCRIPTION
.B chkhelp
checks the consistency of
Performance Co-Pilot
help text files
generated by
.BR newhelp (1)
and used by
Performance Metric Domain Agents (PMDAs).
The checking involves scanning the files, and optionally
displaying selected entries.
.PP
The files
\f2helpfile\f3.dir\f1 and
\f2helpfile\f3.pag\f1 are
created by
.BR newhelp (1),
and are assumed to already exist.
.PP
Without any options or
.I metricname
arguments,
.B chkhelp
silently verifies the structural integrity of the
help files.
.PP
If any
.I metricname
arguments are specified, then the help entries for only the corresponding
metrics will be processed.
.PP
If no
.I metricname
arguments are specified, then
at least one of the options
.B \-i
or
.B \-p
must be given.
The
.B \-i
option causes entries for all
instance domains to be processed (ignoring entries for performance
metrics).
The
.B \-p
option causes entries for all metrics to be displayed (ignoring
entries for instance domains).
.PP
When metric entries are to be processed (via either the
.I metricname
arguments or the
.B \-p
option or the
.B \-i
option), the
.B \-O
and
.B \-H
options request the display of the one-line and verbose help text respectively.
The default is
.BR \-O .
.PP
Normally
.B chkhelp
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
The
.B \-e
option provides an existence check where all of the specified
metrics from the PMNS (note, not from
.IR helpfile )
are scanned, and only the names of the metrics for which
.B no
help text exists are reported.
The
.B \-e
option is mutually exclusive with the
.B \-i
and/or
.B \-p
options.
.SH OPTIONS
The available command line options are:
.TP 5
\fB\-e\fR
Report metrics with no help text.
.TP
\fB\-H\fR
Display verbose help text and exit.
.TP
\fB\-i\fR
Process all the instance domains.
.TP
\fB\-n\fR \fIpmnsfile\fR
Load an alternative Performance Metrics Name Space
.RB ( PMNS (5))
from the file
.IR pmnsfile .
.TP
\fB\-O\fR
Display the one line help summary.
.TP
\fB\-p\fR
Process all the metrics (PMIDs).
.TP
\fB\-?\fR
Display usage message and exit.
.SH DIAGNOSTICS
There are all sorts of reasons a help database may be inconsistent,
the most likely is that a performance metric in the database is
not defined in the loaded PMNS.
.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 newhelp (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+ dir pag