Jump to content

quota size


j-r

Recommended Posts

Hi

 

i've a website running on a synology nas. I want to know the size of the quota info free, used and total size. I can calculate 1 if I have 2 others. Math is not that difficult :)

When I use the commands disk_free_space and disk_total_space I get the info from the disk not the quota limits.

using exec("quota") doesn't return anything.

I've also tryed (not in php) the webcommands 

1. login: http://ds2:5123/webapi/auth.cgi?api=SYNO.API.Auth&method=login&version=7&account=jan&passwd=?????

2. Aks the quota gives error 5403 not listed in the error lists: http://ds2:5123/webapi/entry.cgi?api=SYNO.Core.Quota&version=1&requestFormat=JSON&method=get&requestFormat=json

3. logoff: http://ds2:5123/webapi/entry.cgi?api=SYNO.API.Auth&version=6&method=logout&

someone have a idea?

Jan

Link to comment
Share on other sites

There will very, very likely be some command or /proc stat you can execute/read within PHP to give you the information.

The CGI scripts might be textual scripts, like Perl or Python. It'll take time but you could try reading through entry.cgi to find out how that's getting the information.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.