j-r Posted January 27, 2022 Share Posted January 27, 2022 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 Quote Link to comment Share on other sites More sharing options...
requinix Posted January 27, 2022 Share Posted January 27, 2022 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. Quote Link to comment Share on other sites More sharing options...
j-r Posted January 28, 2022 Author Share Posted January 28, 2022 (edited) I'm very sorry but have tryed some info but like a wrote I have an undocumented error by the 2° command. so I'm stuck Edited January 28, 2022 by j-r Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.