I'm trying to call the "statistics volume show" command and parse it for the latency numbers for each volume.
The CDOT command is trying to do some clever line wrapping so that lines with long fields break to the next line. I could just take the last field of each line but once in a while even that won't work, in some cases the bytes read is the last field of the line and the latency is the first (and last) field of the line following. Gah.
Doesn't appear to be any sort of "-csv" flag for the command, or any real formatting options at all. Even tried noodling with the terminal settings used by the SSH call , thinking the line wrap might have to do with that. Can't reliably make the output behave.
Anybody else faced this? Any guidance?
Randy in Seattle