Menu ▾ ▴

#489 field delimitors within fields in SEL output

version-1.8.18
open
nobody
None
5
2017-06-28
2017-06-28
Jon Wilson
No

Output from "ipmitool sel list" or "ipmitool sel elist" uses pipes or commas for field separation.

Data in the output may contain pipes. For instance:

3b | 05/25/2017 | 16:57:51 | Memory #0x02 | Uncorrectable ECC (UnCorrectable ECC | DIMMB4) | Asserted

or

10 | 05/01/2017 | 16:39:09 | Processor #0x09 | IERR (CPU 2 | APIC ID 35 ) | Asserted

Anything that parses this data by spltting on "|" will miscount the number of fields.

A workaround for the above data is to use CSV format. But this is fragile. Commas can also occur within fields.

Perhaps CSV output should surround field data with quotes, if the field contains a comma?

Discussion

  • Jon Wilson

    Jon Wilson - 2017-06-28

    Additional workaround: Use the "-v" verbose output format

     

Log in to post a comment.