Hi all,
Does anyone know what the -c option to pmdasummary was used for?
The man page is a bit cryptic...
-c When used to summarize metrics from multiple hosts,
pmdasummary reads host information from configfile.
This is a binary file produced by $PCP_PMDAS_DIR/
array/mkconfig, and so this option may only be used
if the add-on PCP for Arrays product is also installed.
A bunch of questions ensue...
- following the code, we end up in summary.c::service_config when
data arrives on this file descriptor, and it appears to be PDU
formatted (desc/result) - has this been tested since the changes
to __pmDecodeResult (i.e. does whoever sends this PDU guarantee
that its correctly formatted, lengths all make sense, etc?)
- Is the PCP for Arrays (sounds IRIX-y) still a product? Can the
mkconfig script be found? Is anything using the -c option now?
I suspect this is long dead code which should be removed at this
point, unless this is a generic service that might be useful to
others? Need a bit more historical context to tell though.
thanks!
--
Nathan
|