using Perl or Ruby can you show how much space is used by a (sub)tenant?
I prefer Perl but Ruby is acceptable. I need a script to look at all tenants/subnants and give me a report on how much space they are using. I might assign the subtenant "Alpha App" 2 TB of space. I need to know how much space they are using so I can actively talk to them about them using up all their space and they might need more. or for some reporting/dashboards.
If you do a POX login (per the sysmgmt API guide) and then GET:
/maui_admin/list_rmg?from=datatables
You'll get the chunk of HTML from the GUI and you can parse the usage from there. Note that this is undocumented and subject to change between versions. I will file an enhancement request to make this available and documented through the POX API (if you remove ?from=datatables, you'll get an XML response but it does not include used capacity).
JasonCwik
1 Rookie
•
281 Posts
892
0
Posted April 13th, 2012 12:00
I should mention that you can get more information in the System Management API guide, page 124.