PMIE2COL(1)
π PMIE2COL π
okay bestie, welcome to pmie2col β a lil tool from the PCP fam (that's Performance Co-Pilot, in case you were wondering) and it is so good at what it does. she takes the kinda chaotic output from pmie(1) and turns it into a nice tidy column format. glow-up behavior honestly. πΈ
β¨ NAME β¨
pmie2col β convert pmie output to multi-column format π¦
π SYNOPSIS π
pmie2col [-?] [-d delimiter] [-p precision] [-w width]
π DESCRIPTION π
so pmie2col is a simple lil tool that converts output from pmie(1) into regular column format. like, it's giving spreadsheet-ready, no cap. π
each column is 7 characters wide by default (but you can change that with the -w option, more on her below) with a single space</> between columns. and bestie, that single space? you can swap it out for an alternate delimiter using the -d option β which is super useful if you're importing the data into a spreadsheet, for example. icons only. β¨
the precision of the tabulated values from pmie can be specified with the -p option (default is 2 decimal places). and heads up: this option can and will override any width setting in order to present the requested precision. she said width WHO? precision is the main character here. π
the pmie(1) configuration must follow these rules, fr fr:
- Each
pmie(1)expression is of the formNAME = expr;.NAMEwill be used as the column heading, and must contain no white space, although special characters can be escaped by enclosingNAMEin single quotes. - The
exprmust be a validpmie(1)expression that produces a singular value.
in addition, pmie(1) must be run with the -v command line option. don't forget it or she won't work, and that's on periodt. π
it is also possible to use the -e command line to pmie(1) and output lines will be prefixed by a timestamp. cute lil timestamp moment. β°
π OPTIONS π
the available command line options are:
-dchar,--delimiter=char β use char as output delimiter.-pN,--precision=N β use n as output floating point precision.-wN,--width=N β use n as output column width.-?,--helpβ display usage message and exit.
π EXAMPLES π
given this pmie(1) configuration file (named config):
loadav = kernel.all.load #'1 minute';
'%usr' = kernel.all.cpu.user;
'%sys' = kernel.all.cpu.sys;
'%wio' = kernel.all.cpu.wait.total;
'%idle' = kernel.all.cpu.idle;
'max-iops' = max_inst(disk.dev.total);
then this command pipeline:
$ pmie -v -t 5 <config | pmie2col -w 8
produces output like this:
loadav %usr %sys %wio %idle max-iops
0.21 ? ? ? ? ?
0.36 0.49 0.03 0.18 0.29 25.40
0.49 0.41 0.10 0.36 0.13 51.00
0.69 0.49 0.10 0.05 0.37 43.20
0.71 0.39 0.08 0.04 0.49 14.00
0.83 0.63 0.15 0.00 0.21 32.30
1.09 0.60 0.02 0.10 0.27 47.00
0.92 0.01 0.00 0.00 0.99 2.40
look at those columns. aligned. immaculate. she ate and left no crumbs. π
π§ PCP ENVIRONMENT π§
environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. on each installation, the file /etc/pcp.conf contains the local values for these variables. the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5).
π SEE ALSO π
PCPIntro(1) and pmie(1).
okay that's the whole page bestie, go forth and tabulate π
this lil manual page is from Performance Co-Pilot (that's the PCP girlies, hey!!) and she's living in section PMIE2COL(1). mwah, bye π«Ά
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms