1PMIE2COL(1) General Commands Manual PMIE2COL(1)
2
3
4
6 pmie2col - convert pmie output to multi-column format
7
9 pmie2col [-d delimiter] [-p precision] [-w width]
10
12 pmie2col is a simple tool that converts output from pmie(1) into regu‐
13 lar column format. Each column is 7 characters wide (by default, may
14 be changed with the -w option) with a single space between columns.
15 That single space can be substituted with an alternate delimiter using
16 the -d option (this is useful for importing the data into a spread‐
17 sheet, for example).
18
19 The precision of the tabulated values from pmie can be specified with
20 the -p option (default is 2 decimal places). This option can and will
21 override any width setting in order to present the requested precision.
22
23 The pmie(1) configuration must follow these rules:
24
25 (1) Each pmie(1) expression is of the form ``NAME = expr;''. NAME
26 will be used as the column heading, and must contain no white
27 space, although special charcters can be escaped by enclosing
28 NAME in single quotes.
29
30 (2) The ``expr'' must be a valid pmie(1) expression that produces a
31 singular value.
32
33 In addition, pmie(1) must be run with the -v command line option.
34
35 It is also possible to use the -e command line to pmie(1) and output
36 lines will be prefixed by a timestamp.
37
39 Given this pmie(1) configuration file (config):
40
41 loadav = kernel.all.load #'1 minute';
42 '%usr' = kernel.all.cpu.user;
43 '%sys' = kernel.all.cpu.sys;
44 '%wio' = kernel.all.cpu.wait.total;
45 '%idle' = kernel.all.cpu.idle;
46 'max-iops' = max_inst(disk.dev.total);
47
48 Then this command pipeline:
49
50 $ pmie -v -t 5 <config | pmie2col -w 8
51
52 Produces output like this:
53
54 loadav %usr %sys %wio %idle max-iops
55 0.21 ? ? ? ? ?
56 0.36 0.49 0.03 0.18 0.29 25.40
57 0.49 0.41 0.10 0.36 0.13 51.00
58 0.69 0.49 0.10 0.05 0.37 43.20
59 0.71 0.39 0.08 0.04 0.49 14.00
60 0.83 0.63 0.15 0.00 0.21 32.30
61 1.09 0.60 0.02 0.10 0.27 47.00
62 0.92 0.01 0.00 0.00 0.99 2.40
63
64
66 Environment variables with the prefix PCP_ are used to parameterize the
67 file and directory names used by PCP. On each installation, the file
68 /etc/pcp.conf contains the local values for these variables. The
69 $PCP_CONF variable may be used to specify an alternative configuration
70 file, as described in pcp.conf(4).
71
73 PCPIntro(1) and pmie(1).
74
75
76
77Performance Co-Pilot SGI PMIE2COL(1)