cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dmmagill
Level 2

Feature request: lmstat -json|-csv|-xml

You’ve got attributes that you keep track of (username, checkout time, feature name, version, host, etc..). By default, if you invoked say “lmstat –a –csv” it would simply output all attributes with a header describing the attribute names:

rlmstat –a –csv
username, checkout time, feature name, version, host, etc
dmagill, 00:00:01, super_feature, 2017.12, client1, etc
mattc, 15:04:05, super_feature1, 2013.1, client2, etc

JSON and XML are self-documenting. I would imagine if you actually polled people they would prefer JSON because it is more compact, but I definitely think a CSV output would be appealing to many.

It would also be nice to either be able to enumerate only the fields you want via command line or provide an input file that lists the fields you want.

The main goal of this output is to provide a format-invariant, easily machine parsable version of usage which could feed some form of database or analytic engine.
0 Kudos
(1) Reply
ckern1
Level 2

Yes, "lmstat --csv" would really be appreciated. Or --json/--xml.
0 Kudos