+1 to a real python API.

We have written our own, albeit incomplete, library to expose most of what we 
need.  We would be happy to share some general ideas on what should be 
included, but a real IBM implementation wouldn't have to do what we did. (Think 
lots of subprocess.Popen + subprocess.communicate and shredding the output of 
mm commands.  And yes, we wrote a parser which could shred the output of either 
-Y or tabular format.)

Thx
Paul

From: [email protected] 
[mailto:[email protected]] On Behalf Of Barry Evans
Sent: Wednesday, April 20, 2016 5:58 PM
To: [email protected]
Subject: Re: [gpfsug-discuss] Did you know about "-Y" ?? I sure didn't... game 
changer

Someone should just make a python API that just abstracts all of this
On 20/04/2016 22:18, Jez Tucker wrote:
So mmlspool does in 4.1.1.3... perhaps my memory fails me.
I'm pretty certain Yuri told me that mmlspool was completely unsupported and 
didn't have -Y a couple of years ago when we did the original GPFS UG RFEs 
prior to 4.x.  I figure that earns cookies.

Perhaps in light of the mmbackup thread; "Will fix RFEs for cookies?".  Name 
your price ;-)

Jez
On 20/04/16 22:12, Jez Tucker wrote:
Indeed.

jtucker@elmo:~$ mmlsfs all -Y
mmlsfs::HEADER:version:reserved:reserved:deviceName:fieldName:data:remarks:

I must say I've not seen any headers increment above 0:1 since ... er .. 
3.3(?), so they're pretty static.

Now, if only mmlspool supported -Y ... or if _all_ commands supported -Y, I 
might even FedEX beer.

Jez

On 20/04/16 21:46, Bryan Banister wrote:
What's nice is that the "-Y" output provides a HEADER so that you can still 
programmatically determine fields of interest... this is the best!

I recommend adding "-Y" option documentation to all supporting GPFS commands 
for others to be informed.
-Bryan

From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Barry Evans
Sent: Wednesday, April 20, 2016 3:39 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: [gpfsug-discuss] Did you know about "-Y" ?? I sure didn't... game 
changer

If you build a monitoring pipeline using -Y output, make sure you test between 
revisions before upgrading. The columns do have a tendency to change from time 
to time.

Cheers,
Barry
On 20/04/2016 20:02, Bryan Banister wrote:
Apparently, though not documented in man pages or any of the GPFS docs that 
I've read (at least that I recall), there is a "-Y" option to many/most GPFS 
commands that provides output in machine readable fashion....

That's right kids... no more parsing obscure, often changed output columns with 
your favorite bash/awk/python/magic.

Why IBM would not document this is beyond me,
-B

________________________________

Note: This email is for the confidential use of the named addressee(s) only and 
may contain proprietary, confidential or privileged information. If you are not 
the intended recipient, you are hereby notified that any review, dissemination 
or copying of this email is strictly prohibited, and to please notify the 
sender immediately and destroy this email and any attachments. Email 
transmission cannot be guaranteed to be secure or error-free. The Company, 
therefore, does not make any guarantees as to the completeness or accuracy of 
this email or any attachments. This email is for informational purposes only 
and does not constitute a recommendation, offer, request or solicitation of any 
kind to buy, sell, subscribe, redeem or perform any type of transaction of a 
financial product.





_______________________________________________

gpfsug-discuss mailing list

gpfsug-discuss at spectrumscale.org

http://gpfsug.org/mailman/listinfo/gpfsug-discuss



[http://pixitmedia.com/sig/sig-cio.jpg]
This email is confidential in that it is intended for the exclusive attention 
of the addressee(s) indicated. If you are not the intended recipient, this 
email should not be read or disclosed to any other person. Please notify the 
sender immediately and delete this email from your computer system. Any 
opinions expressed are not necessarily those of the company from which this 
email was sent and, whilst to the best of our knowledge no viruses or defects 
exist, no responsibility can be accepted for any loss or damage arising from 
its receipt or subsequent use of this email.

________________________________

Note: This email is for the confidential use of the named addressee(s) only and 
may contain proprietary, confidential or privileged information. If you are not 
the intended recipient, you are hereby notified that any review, dissemination 
or copying of this email is strictly prohibited, and to please notify the 
sender immediately and destroy this email and any attachments. Email 
transmission cannot be guaranteed to be secure or error-free. The Company, 
therefore, does not make any guarantees as to the completeness or accuracy of 
this email or any attachments. This email is for informational purposes only 
and does not constitute a recommendation, offer, request or solicitation of any 
kind to buy, sell, subscribe, redeem or perform any type of transaction of a 
financial product.




_______________________________________________

gpfsug-discuss mailing list

gpfsug-discuss at spectrumscale.org

http://gpfsug.org/mailman/listinfo/gpfsug-discuss

--
Jez Tucker
Head of Research & Development
Pixit Media
Mobile: +44 (0) 776 419 3820
www.pixitmedia.com<http://www.pixitmedia.com>

--
Jez Tucker
Head of Research & Development
Pixit Media
Mobile: +44 (0) 776 419 3820
www.pixitmedia.com<http://www.pixitmedia.com>

[http://pixitmedia.com/sig/sig-cio.jpg]
This email is confidential in that it is intended for the exclusive attention 
of the addressee(s) indicated. If you are not the intended recipient, this 
email should not be read or disclosed to any other person. Please notify the 
sender immediately and delete this email from your computer system. Any 
opinions expressed are not necessarily those of the company from which this 
email was sent and, whilst to the best of our knowledge no viruses or defects 
exist, no responsibility can be accepted for any loss or damage arising from 
its receipt or subsequent use of this email.




_______________________________________________

gpfsug-discuss mailing list

gpfsug-discuss at spectrumscale.org

http://gpfsug.org/mailman/listinfo/gpfsug-discuss

--


Barry Evans
Technical Director & Co-Founder
Pixit Media

http://www.pixitmedia.com

[http://pixitmedia.com/sig/sig-cio.jpg]
This email is confidential in that it is intended for the exclusive attention 
of the addressee(s) indicated. If you are not the intended recipient, this 
email should not be read or disclosed to any other person. Please notify the 
sender immediately and delete this email from your computer system. Any 
opinions expressed are not necessarily those of the company from which this 
email was sent and, whilst to the best of our knowledge no viruses or defects 
exist, no responsibility can be accepted for any loss or damage arising from 
its receipt or subsequent use of this email.
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss

Reply via email to