question: machine readable output from ras-mc-ctl?
in order to periodically check for errors on a running system, it would be useful to run ras-mc-ctl and collect its output and optionally take action based on the results.
however, parsing text output is not ideal, and it's not clear that the format of the text output is intended to be stable enough to be relied upon.
one option could be to add a --json output format for ras-mc-ctl and document the output format.
another approach is to create a separate tool altogether to read the sqlite3 db, but a similar compatibility question arises - is the db schema expected to be compatible across rasdaemon releases?
what is the recommended approach for this use case? thanks!
I'd like the option of having a --json output. I would love to make the db schema compatible across rasdaemon releases, but doing that would require extra care when adding new functionalities to the toolset.
Feel free to add support for it and send us the patches.