On Mon, 2019-03-25 at 09:52 +0000, Robert Horton wrote:
I don't know the answer to your actual question, but have you thought about using the REST-API rather than parsing the command outputs? I can send over the Python stuff we're using if you mail me off list.
Thanks, We don't currently run the REST-API, partly I've never got around to getting the monitoring overhead working, and working out which extra packages we need to go round our 300 nodes and install. Out cluster has been gradually upgraded over the years from 3.5 and we don't routinely install all the new packages the GUI needs on every node. It might be nice to see a list of which Spectrum Scale packages are needed for the different added value features in Scale. I'm currently working on re-writing the cli quota reporting program which was originally written in a combination of bash and awk. Its a strict Linux Cli util for reporting quota's and hence I'd prefer to avoid the overhead of using a Rest-API. With reference to the issue people reported not being able to run "mmlsfileset" as a user a few weeks ago, I've found a handy work-around using "mmlsattr" instead, and yes it does use the -Y flag all the time. I'd like to share the code, once its gone though some internal code review...... With reference to the other post, I will I think raise a PMR for this as it does not look like mmlsquota is working as documented. Thanks Peter Childs
Rob
On Mon, 2019-03-25 at 09:38 +0000, Peter Childs wrote:
Can someone tell me I'm not reading this wrong.
This is using Spectrum Scale 5.0.2-1
It looks like the output from mmlsquota is not what it says
In the man page it says,
mmlsquota [-u User | -g Group] [-v | -q] [-e] [-C ClusterName] [-Y] [--block-size {BlockSize | auto}] [Device[:Fileset] ...]
however
mmlsquota -u username fs:fileset
Return the output for every fileset, not just the "fileset" I've asked for, this is same output as
mmlsquota -u username fs
Where I've not said the fileset.
I can work around this, but I'm just checking this is not actually a bug, that ought to be fixed.
Long story is that I'm working on rewriting our quota report util that used be a long bash/awk script into a more easy to understand python script, and I want to get the user quota info for just one fileset.
Thanks in advance.
-- Peter Childs ITS Research Storage Queen Mary, University of London
