Size per share via the REST API?

633 views
Skip to first unread message

Smurfy.

unread,
Apr 17, 2014, 9:31:21 AM4/17/14
to isilon-u...@googlegroups.com
Hello,

I'm in the process of automating some reports on our Isilon cluster (OneFS 7.0.1) via the REST API.  One statistic that I'm tasked with supporting is getting the amount of space taken up by each share on the system.  Going through the SMB share API documentation, I can't locate any information that seems like this is available.  Is there a way to get this information with the REST API?

- K. 

erik.j...@gmail.com

unread,
Apr 17, 2014, 9:53:49 AM4/17/14
to isilon-u...@googlegroups.com, isilon-u...@googlegroups.com
You will probably have to set up an accounting quota on the directory of each share to get that info. 

--
Erik Weiman
Sent from my iPhone 5s
--
You received this message because you are subscribed to the Google Groups "Isilon Technical User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isilon-user-gr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Blake Golliher

unread,
Apr 17, 2014, 9:55:27 AM4/17/14
to isilon-u...@googlegroups.com
Do you have tracking quotas on the shares?  We use those for tacking space used on our nfs experts.

-Blake

Typed with my thumbs!
--

Zac Davenport

unread,
Apr 18, 2014, 1:11:51 PM4/18/14
to isilon-u...@googlegroups.com
Another option is InsightIQ which tracks a variety of file system and cluster performance metrics. It requires an additional license however. 

--Zac

Smurfy.

unread,
Apr 24, 2014, 11:34:15 AM4/24/14
to isilon-u...@googlegroups.com
Thank you for the suggestions!  We're going to try going with accounting quotas on the directory of each share and getting the logical storage for each quota through the API to begin with.

- K.


On Thursday, April 17, 2014 9:31:21 AM UTC-4, Smurfy. wrote:

Jason Davis

unread,
Apr 24, 2014, 11:50:27 AM4/24/14
to isilon-u...@googlegroups.com
Example:

# curl -k -u <username>:<password> -H "Accept: application/json" "https://10.116.30.11:8080/platform/1/quota/quotas?path=/ifs/home&type=user&persona=USER:jasdav02&resolve_names=true" | python -mjson.tool



  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

114   684    0   684    0     0   2315      0 --:--:-- --:--:-- --:--:--  2973

{

    "quotas": [

        {

            "container": false,

            "enforced": true,

            "id": "QQCiBgEAAABMPQAAAAAAEBIAAAAAAAAA",

            "include_snapshots": false,

            "linked": true,

            "notifications": "default",

            "path": "/ifs/home",

            "persona": {

                "id": "UID:15692",

                "name": "jasdav02",

                "type": "user"

            },

            "ready": true,

            "thresholds": {

                "advisory": 1073741824,

                "advisory_exceeded": true,

                "advisory_last_exceeded": 1395760982,

                "hard": 2147483648,

                "hard_exceeded": false,

                "hard_last_exceeded": 0,

                "soft": null,

                "soft_exceeded": false,

                "soft_grace": null,

                "soft_last_exceeded": null

            },

            "thresholds_include_overhead": false,

            "type": "user",

            "usage": {

                "inodes": 122,

                "logical": 1900130445,

                "physical": 2149983232

            }

        }

    ],

    "resume": null

}




--
Reply all
Reply to author
Forward
0 new messages