diff options
Diffstat (limited to 'man/man1/chkhelp.1')
-rw-r--r-- | man/man1/chkhelp.1 | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/man/man1/chkhelp.1 b/man/man1/chkhelp.1 new file mode 100644 index 0000000..3fc950d --- /dev/null +++ b/man/man1/chkhelp.1 @@ -0,0 +1,148 @@ +'\"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] +[\f3\-v\f1 \f2version\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 +Although historically there have been multiple help text file formats, the only +format currently supported +using the +.B \-v +option is +.I version +2, and +this is the default if no +.B \-v +flag is provided. +.PP +Normally +.B chkhelp +operates on the default Performance Metrics Namespace (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 "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 newhelp (1), +.BR PMAPI (3), +.BR pmLookupInDomText (3), +.BR pmLookupText (3), +.BR pcp.conf (5) +and +.BR pcp.env (5). +.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. |