Hello Experts.

I'm trying to collect information from Fileset Quotas, using the API.

I'm using this link as reference: 
https://www.ibm.com/support/knowledgecenter/en/STXKQY_5.0.0/com.ibm.spectrum.scale.v5r00.doc/bl1adm_apiv2version2.htm

Do you know about any issue with Scale 5.0.x and API? Or what I have 
change in my command to collect this infos?

Following the instruction on knowledge Center, we tried to list, using 
GET, the FILESET Quota but only USR and GRP were reported. Listing all 
quotas (using GET also), I found my quota there.

See my sample:
curl -k -u admin:passw0rd -XGET -H content-type:application/json "
https://xx.xx.xx.xx:443/scalemgmt/v2/filesystems/fs1/filesets/sicredi/quotas
"
{
  "quotas" : [ {
    "blockGrace" : "none",
    "blockLimit" : 0,
    "blockQuota" : 0,
    "filesGrace" : "none",
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesetName" : "sicredi",
    "filesystemName" : "fs1",
    "isDefaultQuota" : true,
    "objectId" : 0,
    "quotaId" : 454,
    "quotaType" : "GRP"
  }, {
    "blockGrace" : "none",
    "blockLimit" : 0,
    "blockQuota" : 0,
    "filesGrace" : "none",
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesetName" : "sicredi",
    "filesystemName" : "fs1",
    "isDefaultQuota" : true,
    "objectId" : 0,
    "quotaId" : 501,
    "quotaType" : "USR"
  } ],
  "status" : {
    "code" : 200,
    "message" : "The request finished successfully."
  }
}[root@lbsgpfs05 ~]# curl -k -u admin:passw0rd -XGET -H 
content-type:application/json "
https://xx.xx.xx.xx:443/scalemgmt/v2/filesystems/fs1/quotas";
{
  "quotas" : [ {
    "blockGrace" : "none",
    "blockInDoubt" : 0,
    "blockLimit" : 0,
    "blockQuota" : 0,
    "blockUsage" : 512,
    "filesGrace" : "none",
    "filesInDoubt" : 0,
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesUsage" : 1,
    "filesystemName" : "fs1",
    "isDefaultQuota" : false,
    "objectId" : 0,
    "objectName" : "root",
    "quotaId" : 366,
    "quotaType" : "FILESET"
  }, {
    "blockGrace" : "none",
    "blockInDoubt" : 0,
    "blockLimit" : 6598656,
    "blockQuota" : 6598656,
    "blockUsage" : 5670208,
    "filesGrace" : "none",
    "filesInDoubt" : 0,
    "filesLimit" : 0,
    "filesQuota" : 0,
    "filesUsage" : 5,
    "filesystemName" : "fs1",
    "isDefaultQuota" : false,
    "objectId" : 1,
    "objectName" : "sicredi",
    "quotaId" : 367,
    "quotaType" : "FILESET"
  }
  "status" : {
    "code" : 200,
    "message" : "The request finished successfully."
  }
}

mmlsquota -j sicredi fs1 --block-size auto
                         Block Limits                                    | 
    File Limits
Filesystem type         blocks      quota      limit   in_doubt    grace | 
   files   quota    limit in_doubt    grace  Remarks
fs1        FILESET      5.408G     6.293G     6.293G          0     none | 
       5       0        0        0     none

mmrepquota -a
*** Report for USR GRP FILESET quotas on fs1
                         Block Limits                                    | 
                    File Limits
Name       fileset    type             KB      quota      limit   in_doubt 
   grace |    files   quota    limit in_doubt    grace entryType
sicredi    root       FILESET     5670208    6598656    6598656          0 
    none |        5       0        0        0     none e


Regards, | Abrazos, | Atenciosamente,
Delmar Demarchi .'.
Power and Storage Services Specialist



Phone: 55-19-2132-9469 | Mobile: 55-19-9 9792-1323
E-mail: [email protected]



www.ibm.com/systems/services/labservices


_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss

Reply via email to