File: indomcachectl.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 (154 lines) | stat: -rw-r--r-- 3,803 bytes parent folder | download | duplicates (2)
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
'\"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 INDOMCACHECTL 1 "PCP" "Performance Co-Pilot"
.SH NAME
\f3indomcachectl\f1 \- manage instance domain cache files
.SH SYNOPSIS
.B $PCP_BINADM_DIR/indomcachectl
[\fB\-w\fR]
\fB\-l\fR
.I indom
.sp
.B $PCP_BINADM_DIR/indomcachectl
[\fB\-w\fR]
[\fB\-m\fR \fImode\fR]
[\fB\-g\fR \fIgroup\fR]
[\fB\-u\fR \fIuser\fR]
.I indom
.SH DESCRIPTION
.de EX
.in +0.5i
.ie t .ft CB
.el .ft B
.ie t .sp .5v
.el .sp
.ta \\w' 'u*8
.nf
..
.de EE
.fi
.ie t .sp .5v
.el .sp
.ft R
.in
..
.B indomcachectl
assists in the management of the Instance Domain cache files that
are stored in
.BR $PCP_VAR_DIR/config/pmda .
.PP
The mandatory
.I indom
parameter uses a 2-dotted format to specify the
.I domain
and
.I serial
fields of the instance domain number.
The required values can be reported for a particular metric using the
.B \-d
option to
.BR pminfo (1).
.PP
The list of available options can be retrieved using the
.BR \-? / \-\-help
option, which displays a usage message and exits.
.PP
If the
.BR \-l / \-\-list
option is specified the contents of the instance domain cache file
are dumped on
.I stdout
and
.I indomcachectl
exits.
.PP
Otherwise an empty instance domain cache file will be created.
The user ownership of the created file is assigned to the uid
of the caller, but may optionally assigned to the uid of
.I user
from the
.BR passwd (5)
file if the
.BR \-u / \-\-user
option is specified.
The group ownership of the created file is assigned to the gid
of the caller, else the default gid of the user
.I user
if the
.I \-u
option is specified, else the gid of
.I group
from the
.BR group (5)
file if the
.BR \-g / \-\-group
option is specified.
.PP
The instance domain cache file is created with mode 0660 by
default (some PMDAs use group read-write permission to access
and update the contents of the file)
\- if this
does not suit the
.BR \-m / \-\-mode
option may be used to set the mode to the (octal) value
.IR mode .
.PP
Because the indom cache files are precious to the associated PMDA
.I indomcachectl
will not over-write an existing indom cache file.
.PP
Operation is usually silent, except for errors (or warnings if the
.BR \-w / \-\-warning
option is used).
The exit status is 0 for success, 1 for failure.
.SH OTHER MANAGEMENT OPTIONS
The files in
.BR $PCP_VAR_DIR/config/pmda
are all text files (one per cached instance domain)
so judicious surgery may be used to make changes
or even remove the files
in extreme cases
.B provided
the PMDA is not executing.
.PP
Here is an example for the instance domain number
60.17 that is associated with the
network.interface.* metrics.
.EX
$ cat /var/lib/pcp/config/pmda/60.17
2 0 2147483647
0 1712727825 ens33
1 1712727825 virbr0
2 1712727825 lo
.EE
.PP
The first line is a magic header, do not change it.
Following that is one line per instance with the instance identifier
(an integer) in the first field, some magic in the second field
(do not change this) and the external instance name in the third field.
.SH SEE ALSO
.BR PCPIntro (1),
.BR chmod (1),
.BR pminfo (1),
.BR PMAPI (3),
.BR PMDA (3),
.BR pmdaCache (3),
.BR group (5)
and
.BR passwd (5).

.\" control lines for scripts/man-spell
.\" +ok+ virbr ens sp {from network interfaces}