Re: [gpfsug-discuss] fix mmrepquota report format during grace periods
Try running it with the “-Y” option, it returns an easily to read output: mmrepquota -Y dns mmrepquota::HEADER:version:reserved:reserved:filesystemName:quotaType:id:name:blockUsage:blockQuota:blockLimit:blockInDoubt:blockGrace:filesUsage:filesQuota:filesLimit:filesInDoubt:filesGrace:remarks:quota:defQuota:fid:filesetname: mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:root: mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:users: mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:root: mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:users: mmrepquota::0:1:::dns:FILESET:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off::: mmrepquota::0:1:::dns:FILESET:1:users:0:4294967296:4294967296:0:none:1:0:0:0:none:e:on:off::: Bob Oesterlin Sr Principal Storage Engineer, Nuance On 3/28/17, 9:47 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Jaime Pinto" <gpfsug-discuss-bounces@spectrumscale.org on behalf of pinto@scinet.utoronto.ca> wrote: Any chance you guys in the GPFS devel team could patch the mmrepquota code so that during grace periods the report column for "none" would still be replaced with >>>*ONE*<<< word? By that I mean, instead of "2 days" for example, just print "2-days" or "2days" or "2_days", and so on. I have a number of scripts that fail for users when they are over their quotas under grace periods, because the report shifts the remaining information for that user 1 column to the right. Obviously it would cost me absolutely nothing to patch my scripts to deal with this, however the principle here is that the reports generated by GPFS should be the ones keeping consistence. Thanks Jaime ************************************ TELL US ABOUT YOUR SUCCESS STORIES https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scinethpc.ca_testimo... ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.ca University of Toronto 661 University Ave. (MaRS), Suite 1140 Toronto, ON, M5G1M1 P: 416-978-2755 C: 416-505-1477 ---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
Hi Bob, Jaime, and GPFS team, That’s great for mmrepquota, but mmlsquota does not have a similar option AFAICT. That has really caused me grief … for example, I’ve got a Perl script that takes mmlsquota output for a user and does two things: 1) converts it into something easier for them to parse, and 2) doesn’t display anything for the several dozen filesets they don’t have access to. That Perl script is ~300 lines and probably about a third of that is dealing with the grace period spacing issue… Kevin
On Mar 28, 2017, at 9:54 AM, Oesterlin, Robert <Robert.Oesterlin@nuance.com> wrote:
Try running it with the “-Y” option, it returns an easily to read output: mmrepquota -Y dns mmrepquota::HEADER:version:reserved:reserved:filesystemName:quotaType:id:name:blockUsage:blockQuota:blockLimit:blockInDoubt:blockGrace:filesUsage:filesQuota:filesLimit:filesInDoubt:filesGrace:remarks:quota:defQuota:fid:filesetname: mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:root: mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:users: mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:root: mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:users: mmrepquota::0:1:::dns:FILESET:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off::: mmrepquota::0:1:::dns:FILESET:1:users:0:4294967296:4294967296:0:none:1:0:0:0:none:e:on:off:::
Bob Oesterlin Sr Principal Storage Engineer, Nuance
On 3/28/17, 9:47 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Jaime Pinto" <gpfsug-discuss-bounces@spectrumscale.org on behalf of pinto@scinet.utoronto.ca> wrote:
Any chance you guys in the GPFS devel team could patch the mmrepquota code so that during grace periods the report column for "none" would still be replaced with >>>*ONE*<<< word? By that I mean, instead of "2 days" for example, just print "2-days" or "2days" or "2_days", and so on.
I have a number of scripts that fail for users when they are over their quotas under grace periods, because the report shifts the remaining information for that user 1 column to the right.
Obviously it would cost me absolutely nothing to patch my scripts to deal with this, however the principle here is that the reports generated by GPFS should be the ones keeping consistence.
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scinethpc.ca_testimo... ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.ca University of Toronto 661 University Ave. (MaRS), Suite 1140 Toronto, ON, M5G1M1 P: 416-978-2755 C: 416-505-1477
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Ugh! Of course, I’m wrong … mmlsquota does support the “-Y” option … it’s just not documented. Why not???? Kevin
On Mar 28, 2017, at 10:00 AM, Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu> wrote:
Hi Bob, Jaime, and GPFS team,
That’s great for mmrepquota, but mmlsquota does not have a similar option AFAICT.
That has really caused me grief … for example, I’ve got a Perl script that takes mmlsquota output for a user and does two things: 1) converts it into something easier for them to parse, and 2) doesn’t display anything for the several dozen filesets they don’t have access to. That Perl script is ~300 lines and probably about a third of that is dealing with the grace period spacing issue…
Kevin
On Mar 28, 2017, at 9:54 AM, Oesterlin, Robert <Robert.Oesterlin@nuance.com> wrote:
Try running it with the “-Y” option, it returns an easily to read output: mmrepquota -Y dns mmrepquota::HEADER:version:reserved:reserved:filesystemName:quotaType:id:name:blockUsage:blockQuota:blockLimit:blockInDoubt:blockGrace:filesUsage:filesQuota:filesLimit:filesInDoubt:filesGrace:remarks:quota:defQuota:fid:filesetname: mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:root: mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:users: mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:root: mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:users: mmrepquota::0:1:::dns:FILESET:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off::: mmrepquota::0:1:::dns:FILESET:1:users:0:4294967296:4294967296:0:none:1:0:0:0:none:e:on:off:::
Bob Oesterlin Sr Principal Storage Engineer, Nuance
On 3/28/17, 9:47 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Jaime Pinto" <gpfsug-discuss-bounces@spectrumscale.org on behalf of pinto@scinet.utoronto.ca> wrote:
Any chance you guys in the GPFS devel team could patch the mmrepquota code so that during grace periods the report column for "none" would still be replaced with >>>*ONE*<<< word? By that I mean, instead of "2 days" for example, just print "2-days" or "2days" or "2_days", and so on.
I have a number of scripts that fail for users when they are over their quotas under grace periods, because the report shifts the remaining information for that user 1 column to the right.
Obviously it would cost me absolutely nothing to patch my scripts to deal with this, however the principle here is that the reports generated by GPFS should be the ones keeping consistence.
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scinethpc.ca_testimo... ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.ca University of Toronto 661 University Ave. (MaRS), Suite 1140 Toronto, ON, M5G1M1 P: 416-978-2755 C: 416-505-1477
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
I thought this was because the -Y flag was going into new commands and being added to older commands during later releases. So it might be that it was added, but the docs not updated. Simon On 28/03/2017, 16:04, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Buterbaugh, Kevin L" <gpfsug-discuss-bounces@spectrumscale.org on behalf of Kevin.Buterbaugh@Vanderbilt.Edu> wrote:
Ugh! Of course, I¹m wrong Š mmlsquota does support the ³-Y² option Š it¹s just not documented. Why not????
Kevin
On Mar 28, 2017, at 10:00 AM, Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu> wrote:
Hi Bob, Jaime, and GPFS team,
That¹s great for mmrepquota, but mmlsquota does not have a similar option AFAICT.
That has really caused me grief Š for example, I¹ve got a Perl script that takes mmlsquota output for a user and does two things: 1) converts it into something easier for them to parse, and 2) doesn¹t display anything for the several dozen filesets they don¹t have access to. That Perl script is ~300 lines and probably about a third of that is dealing with the grace period spacing issueŠ
Kevin
On Mar 28, 2017, at 9:54 AM, Oesterlin, Robert <Robert.Oesterlin@nuance.com> wrote:
Try running it with the ³-Y² option, it returns an easily to read output: mmrepquota -Y dns
mmrepquota::HEADER:version:reserved:reserved:filesystemName:quotaType:id :name:blockUsage:blockQuota:blockLimit:blockInDoubt:blockGrace:filesUsag e:filesQuota:filesLimit:filesInDoubt:filesGrace:remarks:quota:defQuota:f id:filesetname:
mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:ro ot:
mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:us ers:
mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:ro ot:
mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:us ers:
mmrepquota::0:1:::dns:FILESET:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off: ::
mmrepquota::0:1:::dns:FILESET:1:users:0:4294967296:4294967296:0:none:1:0 :0:0:none:e:on:off:::
Bob Oesterlin Sr Principal Storage Engineer, Nuance
On 3/28/17, 9:47 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Jaime Pinto" <gpfsug-discuss-bounces@spectrumscale.org on behalf of pinto@scinet.utoronto.ca> wrote:
Any chance you guys in the GPFS devel team could patch the mmrepquota code so that during grace periods the report column for "none" would
still be replaced with >>>*ONE*<<< word? By that I mean, instead of "2 days" for example, just print "2-days" or "2days" or "2_days", and so on.
I have a number of scripts that fail for users when they are over their quotas under grace periods, because the report shifts the remaining information for that user 1 column to the right.
Obviously it would cost me absolutely nothing to patch my scripts to
deal with this, however the principle here is that the reports generated by GPFS should be the ones keeping consistence.
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scinethpc.ca_tes timonials&d=DwICAg&c=djjh8EKwHtOepW4Bjau0lKhLlu-DxM1dlgP0rrLsOzY&r=LPDew t1Z4o9eKc86MXmhqX-45Cz1yz1ylYELF9olLKU&m=PnZlzkqTEICwnHCIZvUgTr2CN-RqtzN sKbADKWCeLhA&s=TVGnqMwSWqNI1Vu1BlCcwXiVGsLUO9ZnbqlasVmT2HU&e= ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.ca University of Toronto 661 University Ave. (MaRS), Suite 1140 Toronto, ON, M5G1M1 P: 416-978-2755 C: 416-505-1477
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_l istinfo_gpfsug-2Ddiscuss&d=DwICAg&c=djjh8EKwHtOepW4Bjau0lKhLlu-DxM1dlgP0 rrLsOzY&r=LPDewt1Z4o9eKc86MXmhqX-45Cz1yz1ylYELF9olLKU&m=PnZlzkqTEICwnHCI ZvUgTr2CN-RqtzNsKbADKWCeLhA&s=AXRwDMAVkYdwEaSFzejLQzNnS-KXoKj9GauzeEuu2H 8&e=
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
All, Could someone(s) from the GPFS team please: 1) see that the appropriate documentation gets updated (manuals, “-h” option to commands, the man pages for the commands, etc.)? 2) let us know what version of GPFS introduced the undocumented “-Y” option for mmrepquota and mmlsquota? I’ve got numerous quota related scripts and I’m just curious to go back and figure out how much time I’ve wasted because I didn’t know about it. These “unknown unknowns” bite us again… ;-) Kevin
On Mar 28, 2017, at 10:11 AM, Simon Thompson (Research Computing - IT Services) <S.J.Thompson@bham.ac.uk> wrote:
I thought this was because the -Y flag was going into new commands and being added to older commands during later releases.
So it might be that it was added, but the docs not updated.
Simon
On 28/03/2017, 16:04, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Buterbaugh, Kevin L" <gpfsug-discuss-bounces@spectrumscale.org on behalf of Kevin.Buterbaugh@Vanderbilt.Edu> wrote:
Ugh! Of course, I¹m wrong Š mmlsquota does support the ³-Y² option Š it¹s just not documented. Why not????
Kevin
On Mar 28, 2017, at 10:00 AM, Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu> wrote:
Hi Bob, Jaime, and GPFS team,
That¹s great for mmrepquota, but mmlsquota does not have a similar option AFAICT.
That has really caused me grief Š for example, I¹ve got a Perl script that takes mmlsquota output for a user and does two things: 1) converts it into something easier for them to parse, and 2) doesn¹t display anything for the several dozen filesets they don¹t have access to. That Perl script is ~300 lines and probably about a third of that is dealing with the grace period spacing issueŠ
Kevin
On Mar 28, 2017, at 9:54 AM, Oesterlin, Robert <Robert.Oesterlin@nuance.com> wrote:
Try running it with the ³-Y² option, it returns an easily to read output: mmrepquota -Y dns
mmrepquota::HEADER:version:reserved:reserved:filesystemName:quotaType:id :name:blockUsage:blockQuota:blockLimit:blockInDoubt:blockGrace:filesUsag e:filesQuota:filesLimit:filesInDoubt:filesGrace:remarks:quota:defQuota:f id:filesetname:
mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:ro ot:
mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:us ers:
mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:ro ot:
mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:us ers:
mmrepquota::0:1:::dns:FILESET:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off: ::
mmrepquota::0:1:::dns:FILESET:1:users:0:4294967296:4294967296:0:none:1:0 :0:0:none:e:on:off:::
Bob Oesterlin Sr Principal Storage Engineer, Nuance
On 3/28/17, 9:47 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Jaime Pinto" <gpfsug-discuss-bounces@spectrumscale.org on behalf of pinto@scinet.utoronto.ca> wrote:
Any chance you guys in the GPFS devel team could patch the mmrepquota code so that during grace periods the report column for "none" would
still be replaced with >>>*ONE*<<< word? By that I mean, instead of "2 days" for example, just print "2-days" or "2days" or "2_days", and so on.
I have a number of scripts that fail for users when they are over their quotas under grace periods, because the report shifts the remaining information for that user 1 column to the right.
Obviously it would cost me absolutely nothing to patch my scripts to
deal with this, however the principle here is that the reports generated by GPFS should be the ones keeping consistence.
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scinethpc.ca_tes timonials&d=DwICAg&c=djjh8EKwHtOepW4Bjau0lKhLlu-DxM1dlgP0rrLsOzY&r=LPDew t1Z4o9eKc86MXmhqX-45Cz1yz1ylYELF9olLKU&m=PnZlzkqTEICwnHCIZvUgTr2CN-RqtzN sKbADKWCeLhA&s=TVGnqMwSWqNI1Vu1BlCcwXiVGsLUO9ZnbqlasVmT2HU&e= ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.ca University of Toronto 661 University Ave. (MaRS), Suite 1140 Toronto, ON, M5G1M1 P: 416-978-2755 C: 416-505-1477
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_l istinfo_gpfsug-2Ddiscuss&d=DwICAg&c=djjh8EKwHtOepW4Bjau0lKhLlu-DxM1dlgP0 rrLsOzY&r=LPDewt1Z4o9eKc86MXmhqX-45Cz1yz1ylYELF9olLKU&m=PnZlzkqTEICwnHCI ZvUgTr2CN-RqtzNsKbADKWCeLhA&s=AXRwDMAVkYdwEaSFzejLQzNnS-KXoKj9GauzeEuu2H 8&e=
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Just looking/scanning the latest (4.2.2) Spectrum Scale Command (and Programming) Reference I only found a few commands that officially are documented as supporting a -Y option: mmnfs, mmsmb, mmuserauth. But as many of you have discovered, -Y is accepted and yields "interesting" output for many of the mmXXXX commands. Moreover the output *seems to* have easily discernible patterns that can be parsed by simple programs. I believe there is no guarantee that the exact command output formats will not change from release to release, so, as a practical matter, if you're going to parse command output, you're probably better off parsing the -Y output, even if that is not officially supported.
I had a bit of a run-in with a gpfs developer at a conference once when I complained about how command output changes frequently, breaking customer scripts. He was confused why we weren’t using `-Y`, and didn’t believe me that it’s simply not documented anywhere! `-Y` output is essential for interfacing programmatically with GPFS, and I don’t understand why it’s not mentioned in any of the guides or manpages. (Though apparently, according to this thead, it’s since appeared in some newer manpages.) ~jonathon On 3/28/17, 10:14 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Marc A Kaplan" <gpfsug-discuss-bounces@spectrumscale.org on behalf of makaplan@us.ibm.com> wrote: Just looking/scanning the latest (4.2.2) Spectrum Scale Command (and Programming) Reference I only found a few commands that officially are documented as supporting a -Y option: mmnfs, mmsmb, mmuserauth. But as many of you have discovered, -Y is accepted and yields "interesting" output for many of the mmXXXX commands. Moreover the output *seems to* have easily discernible patterns that can be parsed by simple programs. I believe there is no guarantee that the exact command output formats will not change from release to release, so, as a practical matter, if you're going to parse command output, you're probably better off parsing the -Y output, even if that is not officially supported.
Looks great. I look forward to its maturity. ~jonathon On 3/28/17, 10:22 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Luis Bolinches" <gpfsug-discuss-bounces@spectrumscale.org on behalf of luis.bolinches@fi.ibm.com> wrote: Hi While I understand the frustration of tiem that could be used otherwise. depending of what you are plannig with script wrapping I would recommend you seriously take a look to the REST API http://files.gpfsug.org/presentations/2017/Ehningen/23_-_SSUG17DE_-_Alexande... -- Ystävällisin terveisin / Kind regards / Saludos cordiales / Salutations Luis Bolinches Lab Services http://www-03.ibm.com/systems/services/labservices/ IBM Laajalahdentie 23 (main Entrance) Helsinki, 00330 Finland Phone: +358 503112585 "If you continually give you will continually have." Anonymous ----- Original message ----- From: Jonathon A Anderson <jonathon.anderson@colorado.edu> Sent by: gpfsug-discuss-bounces@spectrumscale.org To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Cc: Subject: Re: [gpfsug-discuss] -Y option for many commands, precious few officially! Date: Tue, Mar 28, 2017 7:17 PM I had a bit of a run-in with a gpfs developer at a conference once when I complained about how command output changes frequently, breaking customer scripts. He was confused why we weren’t using `-Y`, and didn’t believe me that it’s simply not documented anywhere! `-Y` output is essential for interfacing programmatically with GPFS, and I don’t understand why it’s not mentioned in any of the guides or manpages. (Though apparently, according to this thead, it’s since appeared in some newer manpages.) ~jonathon On 3/28/17, 10:14 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Marc A Kaplan" <gpfsug-discuss-bounces@spectrumscale.org on behalf of makaplan@us.ibm.com> wrote: Just looking/scanning the latest (4.2.2) Spectrum Scale Command (and Programming) Reference I only found a few commands that officially are documented as supporting a -Y option: mmnfs, mmsmb, mmuserauth. But as many of you have discovered, -Y is accepted and yields "interesting" output for many of the mmXXXX commands. Moreover the output *seems to* have easily discernible patterns that can be parsed by simple programs. I believe there is no guarantee that the exact command output formats will not change from release to release, so, as a practical matter, if you're going to parse command output, you're probably better off parsing the -Y output, even if that is not officially supported. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss Ellei edellä ole toisin mainittu: / Unless stated otherwise above: Oy IBM Finland Ab PL 265, 00101 Helsinki, Finland Business ID, Y-tunnus: 0195876-3 Registered in Finland
I thought the header rows defined what the format of the output was. Its a bit weird as there can be multiple header rows for different content rows ... Simon From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org>> on behalf of Marc A Kaplan <makaplan@us.ibm.com<mailto:makaplan@us.ibm.com>> Reply-To: "gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: Tuesday, 28 March 2017 at 17:14 To: "gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Subject: Re: [gpfsug-discuss] -Y option for many commands, precious few officially! Just looking/scanning the latest (4.2.2) Spectrum Scale Command (and Programming) Reference I only found a few commands that officially are documented as supporting a -Y option: mmnfs, mmsmb, mmuserauth. But as many of you have discovered, -Y is accepted and yields "interesting" output for many of the mmXXXX commands. Moreover the output *seems to* have easily discernible patterns that can be parsed by simple programs. I believe there is no guarantee that the exact command output formats will not change from release to release, so, as a practical matter, if you're going to parse command output, you're probably better off parsing the -Y output, even if that is not officially supported.
Sure; but that only helps if you know the flag even exists. ~jonathon On 3/28/17, 10:37 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Simon Thompson (Research Computing - IT Services)" <gpfsug-discuss-bounces@spectrumscale.org on behalf of S.J.Thompson@bham.ac.uk> wrote: I thought the header rows defined what the format of the output was. Its a bit weird as there can be multiple header rows for different content rows ... Simon From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Marc A Kaplan <makaplan@us.ibm.com> Reply-To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: Tuesday, 28 March 2017 at 17:14 To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] -Y option for many commands, precious few officially! Just looking/scanning the latest (4.2.2) Spectrum Scale Command (and Programming) Reference I only found a few commands that officially are documented as supporting a -Y option: mmnfs, mmsmb, mmuserauth. But as many of you have discovered, -Y is accepted and yields "interesting" output for many of the mmXXXX commands. Moreover the output *seems to* have easily discernible patterns that can be parsed by simple programs. I believe there is no guarantee that the exact command output formats will not change from release to release, so, as a practical matter, if you're going to parse command output, you're probably better off parsing the -Y output, even if that is not officially supported.
Agreed. From what has been said on this thread about “-Y” being unsupported and the command output could change from release to release … well, that’s a “known unknown” that can be dealt with. But the fact that “-Y” was completely undocumented (at least as far as mmrepquota / mmlsquota are concerned) makes “-Y” one of those “unknown unknowns”… ;-) Kevin
On Mar 28, 2017, at 11:37 AM, Jonathon A Anderson <jonathon.anderson@colorado.edu> wrote:
Sure; but that only helps if you know the flag even exists.
~jonathon
On 3/28/17, 10:37 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Simon Thompson (Research Computing - IT Services)" <gpfsug-discuss-bounces@spectrumscale.org on behalf of S.J.Thompson@bham.ac.uk> wrote:
I thought the header rows defined what the format of the output was. Its a bit weird as there can be multiple header rows for different content rows ...
Simon
From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Marc A Kaplan <makaplan@us.ibm.com> Reply-To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: Tuesday, 28 March 2017 at 17:14 To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] -Y option for many commands, precious few officially!
Just looking/scanning the latest (4.2.2) Spectrum Scale Command (and Programming) Reference I only found a few commands that officially are documented as supporting a -Y option: mmnfs, mmsmb, mmuserauth.
But as many of you have discovered, -Y is accepted and yields "interesting" output for many of the mmXXXX commands. Moreover the output *seems to* have easily discernible patterns that can be parsed by simple programs.
I believe there is no guarantee that the exact command output formats will not change from release to release, so, as a practical matter, if you're going to parse command output, you're probably better off parsing the -Y output, even if that is not officially supported.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Come to one of the user group events going on around the world in the next few months. NERSC, Berkeley, USA, 4th/5th April: https://www.nersc.gov/research-and-development/data-analytics/spectrum-user -group-meeting/ *** REGISTRATION CLOSES TOMORROW 29th *** Sydney, Australia, 27th April: https://www.eventbrite.com/e/spectrum-scale-user-group-australia-gpfsugaus- april-2017-tickets-29136246297 Manchester, UK, 9th/10th May: https://www.eventbrite.com/e/spectrum-scalegpfs-user-group-spring-2017-regi stration-32113696932 I know the presence of the -Y flag has been discussed there, so its a great place to pick up tips! Simon On 28/03/2017, 17:37, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Jonathon A Anderson" <gpfsug-discuss-bounces@spectrumscale.org on behalf of jonathon.anderson@colorado.edu> wrote:
Sure; but that only helps if you know the flag even exists.
~jonathon
On 3/28/17, 10:37 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Simon Thompson (Research Computing - IT Services)" <gpfsug-discuss-bounces@spectrumscale.org on behalf of S.J.Thompson@bham.ac.uk> wrote:
I thought the header rows defined what the format of the output was. Its a bit weird as there can be multiple header rows for different content rows ...
Simon
From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Marc A Kaplan <makaplan@us.ibm.com> Reply-To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: Tuesday, 28 March 2017 at 17:14 To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] -Y option for many commands, precious few officially!
Just looking/scanning the latest (4.2.2) Spectrum Scale Command (and Programming) Reference I only found a few commands that officially are documented as supporting a -Y option: mmnfs, mmsmb, mmuserauth.
But as many of you have discovered, -Y is accepted and yields "interesting" output for many of the mmXXXX commands. Moreover the output *seems to* have easily discernible patterns that can be parsed by simple programs.
I believe there is no guarantee that the exact command output formats will not change from release to release, so, as a practical matter, if you're going to parse command output, you're probably better off parsing the -Y output, even if that is not officially supported.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
I know the presence of the -Y flag has been discussed there, so it’s a great place to pick up tips!
Sure, and I “picked up this tip” at a community event; but really, it shouldn’t have to be picked up as arcana. It should be documented. Glad to hear that that’s the plan. ~jonathon On 3/28/17, 10:51 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Simon Thompson (Research Computing - IT Services)" <gpfsug-discuss-bounces@spectrumscale.org on behalf of S.J.Thompson@bham.ac.uk> wrote: Come to one of the user group events going on around the world in the next few months. NERSC, Berkeley, USA, 4th/5th April: https://www.nersc.gov/research-and-development/data-analytics/spectrum-user -group-meeting/ *** REGISTRATION CLOSES TOMORROW 29th *** Sydney, Australia, 27th April: https://www.eventbrite.com/e/spectrum-scale-user-group-australia-gpfsugaus- april-2017-tickets-29136246297 Manchester, UK, 9th/10th May: https://www.eventbrite.com/e/spectrum-scalegpfs-user-group-spring-2017-regi stration-32113696932 I know the presence of the -Y flag has been discussed there, so its a great place to pick up tips! Simon On 28/03/2017, 17:37, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Jonathon A Anderson" <gpfsug-discuss-bounces@spectrumscale.org on behalf of jonathon.anderson@colorado.edu> wrote: >Sure; but that only helps if you know the flag even exists. > >~jonathon > > >On 3/28/17, 10:37 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf >of Simon Thompson (Research Computing - IT Services)" ><gpfsug-discuss-bounces@spectrumscale.org on behalf of >S.J.Thompson@bham.ac.uk> wrote: > > I thought the header rows defined what the format of the output was. >Its a bit weird as there can be multiple header rows for different >content rows ... > > > Simon > > > From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Marc A >Kaplan <makaplan@us.ibm.com> > Reply-To: "gpfsug-discuss@spectrumscale.org" ><gpfsug-discuss@spectrumscale.org> > Date: Tuesday, 28 March 2017 at 17:14 > To: "gpfsug-discuss@spectrumscale.org" ><gpfsug-discuss@spectrumscale.org> > Subject: Re: [gpfsug-discuss] -Y option for many commands, precious >few officially! > > > > Just looking/scanning the latest (4.2.2) Spectrum Scale Command (and >Programming) Reference I only found a few commands that officially are >documented as supporting a -Y option: mmnfs, mmsmb, mmuserauth. > > But as many of you have discovered, -Y is accepted and yields >"interesting" output for many of the mmXXXX commands. > Moreover the output *seems to* have easily discernible patterns that >can be parsed by simple programs. > > I believe there is no guarantee that the exact command output formats >will not change from release to release, so, as a practical matter, if >you're going to parse command output, you're probably better off parsing >the -Y output, > even if that is not officially supported. > > > > > >_______________________________________________ >gpfsug-discuss mailing list >gpfsug-discuss at spectrumscale.org >http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
My understanding is that with the upcoming 4.2.3 release the -Y option will be documented for many commands, but perhaps not all. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 03/28/2017 11:35 AM Subject: Re: [gpfsug-discuss] fix mmrepquota report format during grace periods Sent by: gpfsug-discuss-bounces@spectrumscale.org All, Could someone(s) from the GPFS team please: 1) see that the appropriate documentation gets updated (manuals, “-h” option to commands, the man pages for the commands, etc.)? 2) let us know what version of GPFS introduced the undocumented “-Y” option for mmrepquota and mmlsquota? I’ve got numerous quota related scripts and I’m just curious to go back and figure out how much time I’ve wasted because I didn’t know about it. These “unknown unknowns” bite us again… ;-) Kevin
On Mar 28, 2017, at 10:11 AM, Simon Thompson (Research Computing - IT Services) <S.J.Thompson@bham.ac.uk> wrote:
I thought this was because the -Y flag was going into new commands and being added to older commands during later releases.
So it might be that it was added, but the docs not updated.
Simon
On 28/03/2017, 16:04, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Buterbaugh, Kevin L" <gpfsug-discuss-bounces@spectrumscale.org on behalf of Kevin.Buterbaugh@Vanderbilt.Edu> wrote:
Ugh! Of course, I¹m wrong Š mmlsquota does support the ³-Y² option Š it¹s just not documented. Why not????
Kevin
On Mar 28, 2017, at 10:00 AM, Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu> wrote:
Hi Bob, Jaime, and GPFS team,
That¹s great for mmrepquota, but mmlsquota does not have a similar option AFAICT.
That has really caused me grief Š for example, I¹ve got a Perl script that takes mmlsquota output for a user and does two things: 1) converts it into something easier for them to parse, and 2) doesn¹t display anything for the several dozen filesets they don¹t have access to. That Perl script is ~300 lines and probably about a third of that is dealing with the grace period spacing issueŠ
Kevin
On Mar 28, 2017, at 9:54 AM, Oesterlin, Robert <Robert.Oesterlin@nuance.com> wrote:
Try running it with the ³-Y² option, it returns an easily to read output: mmrepquota -Y dns
mmrepquota::HEADER:version:reserved:reserved:filesystemName:quotaType:id
:name:blockUsage:blockQuota:blockLimit:blockInDoubt:blockGrace:filesUsag
e:filesQuota:filesLimit:filesInDoubt:filesGrace:remarks:quota:defQuota:f
id:filesetname:
mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:ro
ot:
mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:us
ers:
mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:ro
ot:
mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:us
ers:
mmrepquota::0:1:::dns:FILESET:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:
::
mmrepquota::0:1:::dns:FILESET:1:users:0:4294967296:4294967296:0:none:1:0
:0:0:none:e:on:off:::
Bob Oesterlin Sr Principal Storage Engineer, Nuance
On 3/28/17, 9:47 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Jaime Pinto" <gpfsug-discuss-bounces@spectrumscale.org on behalf of pinto@scinet.utoronto.ca> wrote:
Any chance you guys in the GPFS devel team could patch the mmrepquota code so that during grace periods the report column for "none" would
still be replaced with >>>*ONE*<<< word? By that I mean, instead of "2 days" for example, just print "2-days" or "2days" or "2_days", and so on.
I have a number of scripts that fail for users when they are over their quotas under grace periods, because the report shifts the remaining information for that user 1 column to the right.
Obviously it would cost me absolutely nothing to patch my scripts to
deal with this, however the principle here is that the reports generated by GPFS should be the ones keeping consistence.
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scinethpc.ca_tes
timonials&d=DwICAg&c=djjh8EKwHtOepW4Bjau0lKhLlu-DxM1dlgP0rrLsOzY&r=LPDew
t1Z4o9eKc86MXmhqX-45Cz1yz1ylYELF9olLKU&m=PnZlzkqTEICwnHCIZvUgTr2CN-RqtzN
sKbADKWCeLhA&s=TVGnqMwSWqNI1Vu1BlCcwXiVGsLUO9ZnbqlasVmT2HU&e= ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.ca University of Toronto 661 University Ave. (MaRS), Suite 1140 Toronto, ON, M5G1M1 P: 416-978-2755 C: 416-505-1477
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_l
istinfo_gpfsug-2Ddiscuss&d=DwICAg&c=djjh8EKwHtOepW4Bjau0lKhLlu-DxM1dlgP0
rrLsOzY&r=LPDewt1Z4o9eKc86MXmhqX-45Cz1yz1ylYELF9olLKU&m=PnZlzkqTEICwnHCI
ZvUgTr2CN-RqtzNsKbADKWCeLhA&s=AXRwDMAVkYdwEaSFzejLQzNnS-KXoKj9GauzeEuu2H
8&e=
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Aah! Another one of those options not so well documented or exposed: Usage: mmrepquota [-u] [-g] [-e] [-q] [-n] [-v] [-t] [--block-size {BlockSize | auto}] {-a | Device[:Fileset] ...} or mmrepquota -j [-e] [-q] [-n] [-v] [-t] [--block-size {BlockSize | auto}] {-a | Device ...} I agree, in this way it would be easier for a script to deal with fields that have spaces, using ':' as a field separator. However it mangles all the information together, making it very difficult for human eyes of a sysadmin to deal with in its original format. I'll take it under consideration for the scripts version (many of them to be revised), however the best is for the original and plain reports to have consistence. Thanks Jaime Quoting "Oesterlin, Robert" <Robert.Oesterlin@nuance.com>:
Try running it with the ?-Y? option, it returns an easily to read output: mmrepquota -Y dns mmrepquota::HEADER:version:reserved:reserved:filesystemName:quotaType:id:name:blockUsage:blockQuota:blockLimit:blockInDoubt:blockGrace:filesUsage:filesQuota:filesLimit:filesInDoubt:filesGrace:remarks:quota:defQuota:fid:filesetname: mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:root: mmrepquota::0:1:::dns:USR:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:users: mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:0:root: mmrepquota::0:1:::dns:GRP:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off:1:users: mmrepquota::0:1:::dns:FILESET:0:root:0:0:0:0:none:1:0:0:0:none:i:on:off::: mmrepquota::0:1:::dns:FILESET:1:users:0:4294967296:4294967296:0:none:1:0:0:0:none:e:on:off:::
Bob Oesterlin Sr Principal Storage Engineer, Nuance
On 3/28/17, 9:47 AM, "gpfsug-discuss-bounces@spectrumscale.org on behalf of Jaime Pinto" <gpfsug-discuss-bounces@spectrumscale.org on behalf of pinto@scinet.utoronto.ca> wrote:
Any chance you guys in the GPFS devel team could patch the mmrepquota code so that during grace periods the report column for "none" would still be replaced with >>>*ONE*<<< word? By that I mean, instead of "2 days" for example, just print "2-days" or "2days" or "2_days", and so on.
I have a number of scripts that fail for users when they are over their quotas under grace periods, because the report shifts the remaining information for that user 1 column to the right.
Obviously it would cost me absolutely nothing to patch my scripts to deal with this, however the principle here is that the reports generated by GPFS should be the ones keeping consistence.
Thanks Jaime
************************************ TELL US ABOUT YOUR SUCCESS STORIES
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scinethpc.ca_testimo... ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.ca University of Toronto 661 University Ave. (MaRS), Suite 1140 Toronto, ON, M5G1M1 P: 416-978-2755 C: 416-505-1477
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
************************************ TELL US ABOUT YOUR SUCCESS STORIES http://www.scinethpc.ca/testimonials ************************************ --- Jaime Pinto SciNet HPC Consortium - Compute/Calcul Canada www.scinet.utoronto.ca - www.computecanada.ca University of Toronto 661 University Ave. (MaRS), Suite 1140 Toronto, ON, M5G1M1 P: 416-978-2755 C: 416-505-1477 ---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto.
participants (8)
-
Buterbaugh, Kevin L -
Frederick Stock -
Jaime Pinto -
Jonathon A Anderson -
Luis Bolinches -
Marc A Kaplan -
Oesterlin, Robert -
Simon Thompson (Research Computing - IT Services)
