[gpfsug-discuss] Did you know about "-Y" ?? I sure didn't... game changer

Buterbaugh, Kevin L Kevin.Buterbaugh at Vanderbilt.Edu
Wed Apr 20 22:24:01 BST 2016


All,

Does the unit of measure for *all* fields default to the same as if you ran the command without “-Y”?  For example:

mmlsquota:user:HEADER:version:reserved:reserved:filesystemName:quotaType:id:name:blockUsage:blockQuota:blockLimit:blockInDoubt:blockGrace:filesUsage:filesQuota:filesLimit:filesInDoubt:filesGrace:remarks:fid:filesetname:

blockUsage, blockLimit, and blockInDoubt are in KB, which makes sense, since that’s the default.  But what about blockGrace if a user is over quota?  Will it also contain output in varying units of measure (“6 days” or “2 hours” or “expired”) just like without the “-Y”?

I think this points to Bryan being right “-Y” should be documented somewhere / somehow.  Thanks…

Kevin

On Apr 20, 2016, at 4:12 PM, Jez Tucker <jtucker at pixitmedia.com<mailto:jtucker at pixitmedia.com>> wrote:

Indeed.

jtucker at 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: gpfsug-discuss-bounces at spectrumscale.org<mailto:gpfsug-discuss-bounces at spectrumscale.org> [mailto:gpfsug-discuss-bounces at spectrumscale.org] On Behalf Of Barry Evans
Sent: Wednesday, April 20, 2016 3:39 PM
To: gpfsug-discuss at spectrumscale.org<mailto:gpfsug-discuss at spectrumscale.org>
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://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://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/>

[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://spectrumscale.org/>
http://gpfsug.org/mailman/listinfo/gpfsug-discuss

—
Kevin Buterbaugh - Senior System Administrator
Vanderbilt University - Advanced Computing Center for Research and Education
Kevin.Buterbaugh at vanderbilt.edu<mailto:Kevin.Buterbaugh at vanderbilt.edu> - (615)875-9633



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20160420/d7882899/attachment.htm>


More information about the gpfsug-discuss mailing list