File: pmlogpaste.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 (97 lines) | stat: -rw-r--r-- 3,106 bytes parent folder | download | duplicates (3)
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
'\"macro stdmacro
.\"
.\" Copyright (c) 2020 Red Hat.  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 PMLOGPASTE 1 "PCP" "Performance Co-Pilot"
.SH NAME
\f3pmlogpaste\f1 \- paste text into a metric in a PCP archive
.SH SYNOPSIS
\f3pmlogpaste\f1
[\f3\-?\f1]
[\f3\-f\f1 \f2file\f1]
[\f3\-h\f1 \f2hostname\f1]
[\f3\-l\f1 \f2label\f1]
[\f3\-m\f1 \f2metric\f1]
[\f3\-o\f1 \f2outfile\f1]
[\f3\-t\f1 \f2timezone\f1]
.SH DESCRIPTION
.B pmlogpaste
takes input text from a file or the command line, and writes it as
a metric value in a new PCP archive.
This metric value is timestamped with the current time, and is stored
as a string type metric.
.PP
The main purpose of this tool is to take captured output and preserve
this in a PCP archive.
This allows, for example, the output of a benchmark run to be stored
along with performance metrics captured during that run, in a single
archive.
Archives can be merged using the
.BR pmlogextract (1)
utility.
.PP
.B pmlogpaste
uses the
.BR LOGIMPORT (3)
library interfaces internally, which support the creation of archives
from external sources of performance data.
.SH OPTIONS
The available command line options are:
.TP 5
\fB\-f\fR \fIfile\fR, \fB\-\-file\fR=\fIfile\fR
File with input text to be archived, or ``-'' for standard input.
.TP
\fB\-h\fR \fIhostname\fR, \fB\-\-hostname\fR=\fIhostname\fR
Source host name for the archive.
The default value is the local host name, or ``localhost''
if that cannot be obtained.
.TP
\fB\-l\fR \fIlabel\fR, \fB\-\-label\fR=\fIlabel\fR
Add context labels to the generated archive.
This option can be presented multiple times to produce multiple
labels in the archive.
The
.I label
should be in the form
.IR name:value .
.TP
\fB\-m\fR \fImetric\fR, \fB\-\-metric\fR=\fImetric\fR
Metric name for the archive.
The default metric name is
.IR paste.value .
.TP
\fB\-o\fR \fIoutfile\fR, \fB\-\-outfile\fR=\fIoutfile\fR
Archive output file.
The default archive name is
.IR paste .
.TP
\fB\-t\fR \fItimezone\fR, \fB\-\-timezone\fR=\fItimezone\fR
Source timezone for the archive archive.
The default value is the local timezone.
.TP
\fB\-?\fR, \fB\-\-help\fR
Display usage message and exit.
.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).
.SH SEE ALSO
.BR PCPIntro (1),
.BR pmcd (1),
.BR pmlogextract (1)
and
.BR LOGIMPORT (3).