<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi All,
<div class=""><br class="">
</div>
<div class="">Let me answer Skylar’s questions in another e-mail, which may also tell whether the rest API is a possibility or not.</div>
<div class=""><br class="">
</div>
<div class="">The Python script in question is to display quota information for a user.  The mmlsquota command has a couple of issues:  1) its output is confusing to some of our users, 2) more significantly, it displays a ton of information that doesn’t apply
 to the user running it.  For example, it will display all the filesets in a filesystem whether or not the user has access to them.  So the Python script figures out what group(s) the user is a member of and only displays information pertinent to them (i.e.
 the group of the fileset junction path is a group this user is a member of) … and in a simplified (and potentially colorized) output format.</div>
<div class=""><br class="">
</div>
<div class="">And typing that preceding paragraph caused the lightbulb to go off … I know the answer to my own question … have the script run mmlsquota and get the full list of filesets from that, then parse that to determine which ones I actually need to display
 quota information for.  Thanks!</div>
<div class=""><br class="">
</div>
<div class="">Kevin<br class="">
<div class="">
<div class="">—</div>
<div class="">Kevin Buterbaugh - Senior System Administrator</div>
<div class="">Vanderbilt University - Advanced Computing Center for Research and Education</div>
<div class=""><a href="mailto:Kevin.Buterbaugh@vanderbilt.edu" class="">Kevin.Buterbaugh@vanderbilt.edu</a> - (615)875-9633</div>
<div class=""><br class="">
</div>
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Jan 9, 2019, at 4:42 PM, Simon Thompson <<a href="mailto:S.J.Thompson@bham.ac.uk" class="">S.J.Thompson@bham.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi Kevin,<br class="">
<br class="">
Have you looked at the rest API?<br class="">
<br class="">
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.com%2Fsupport%2Fknowledgecenter%2Fen%2FSTXKQY_5.0.2%2Fcom.ibm.spectrum.scale.v5r02.doc%2Fbl1adm_listofapicommands.htm&amp;data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C36fb451ce9a945f5e0cb08d67683af85%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C1%7C636826705300525885&amp;sdata=uotWilntiZa2E9RIBE2ikhxxBm3Mk3y%2FW%2FKUHovaJpY%3D&amp;reserved=0" class="">https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.com%2Fsupport%2Fknowledgecenter%2Fen%2FSTXKQY_5.0.2%2Fcom.ibm.spectrum.scale.v5r02.doc%2Fbl1adm_listofapicommands.htm&amp;data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C36fb451ce9a945f5e0cb08d67683af85%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C1%7C636826705300525885&amp;sdata=uotWilntiZa2E9RIBE2ikhxxBm3Mk3y%2FW%2FKUHovaJpY%3D&amp;reserved=0</a><br class="">
<br class="">
I don't know how much access control there is available in the API so not sure if you could lock some sort of service user down to just the get filesets command?<br class="">
<br class="">
Simon<br class="">
_______________________________________<br class="">
From: gpfsug-discuss-bounces@spectrumscale.org [gpfsug-discuss-bounces@spectrumscale.org] on behalf of Buterbaugh, Kevin L [Kevin.Buterbaugh@Vanderbilt.Edu]<br class="">
Sent: 08 January 2019 22:12<br class="">
To: gpfsug main discussion list<br class="">
Subject: [gpfsug-discuss] Get list of filesets _without_ running mmlsfileset?<br class="">
<br class="">
Hi All,<br class="">
<br class="">
Happy New Year to all!  Personally, I’ll gladly and gratefully settle for 2019 not being a dumpster fire like 2018 was (those who attended my talk at the user group meeting at SC18 know what I’m referring to), but I certainly wish all of you the best!<br class="">
<br class="">
Is there a way to get a list of the filesets in a filesystem without running mmlsfileset?  I was kind of expecting to find them in one of the config files somewhere under /var/mmfs but haven’t found them yet in the searching I’ve done.<br class="">
<br class="">
The reason I’m asking is that we have a Python script that users can run that needs to get a list of all the filesets in a filesystem.  There are obviously multiple issues with that, so the workaround we’re using for now is to have a cron job which runs mmlsfileset
 once a day and dumps it out to a text file, which the script then reads.  That’s sub-optimal for any day on which a fileset gets created or deleted, so I’m looking for a better way … one which doesn’t require root privileges and preferably doesn’t involve
 running a GPFS command at all.<br class="">
<br class="">
Thanks in advance.<br class="">
<br class="">
Kevin<br class="">
<br class="">
P.S.  I am still working on metadata and iSCSI testing and will report back on that when complete.<br class="">
P.P.S.  We ended up adding our new NSDs comprised of (not really) 12 TB disks to the capacity pool and things are working fine.<br class="">
<br class="">
—<br class="">
Kevin Buterbaugh - Senior System Administrator<br class="">
Vanderbilt University - Advanced Computing Center for Research and Education<br class="">
Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633<br class="">
<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
gpfsug-discuss mailing list<br class="">
gpfsug-discuss at spectrumscale.org<br class="">
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&amp;data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C36fb451ce9a945f5e0cb08d67683af85%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C1%7C636826705300525885&amp;sdata=WSijRrjhOgQyuWsh9K8ckpjf%2F2CkXfZW1n%2BJw5Gw5tw%3D&amp;reserved=0<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>