Re: [gpfsug-discuss] Parse -Y command output

2020-05-27 Thread Achim Christ
Hello Heiner,   we had written an Icinga-integration for Spectrum Scale years ago, the Bash script is still available here: https://gitlab.com/itsmee/icinga/-/blob/master/check_spectrumscale.sh   Within this script we had defined two generic functions: getColumnNoByHeader() and

Re: [gpfsug-discuss] Parse -Y command output

2020-05-27 Thread Hannappel, Juergen
['filesetName'], 'linkdir':urllib.unquote(row['path'])}) mmlsfileset.wait() - Original Message - > From: "Billich Heinrich Rainer (ID SD)" > To: "gpfsug main discussion list" > Sent: Wednesday, 27 May, 2020 10:41:11 > Su

[gpfsug-discuss] Parse -Y command output

2020-05-27 Thread Billich Heinrich Rainer (ID SD)
Hello, I wonder if any python or bash functions exist to parse the output of mm-command's -Y format, i.e. colon-separated with HEADER rows. I would be nice to convert the output to a python list of named tuples or even better pandas dataframe. I would like to access the values by column