Skip to content

field delimitors within fields in SEL output #84

Open

Description

@AlexanderAmelkin

Reported by: Jon Wilson
Original Ticket: ipmitool/bugs/489

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?

Activity

  1. AlexanderAmelkin commented on Jun 28, 2017

    @AlexanderAmelkin
    Author

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

    Original comment by: Jon Wilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions