Unsolved
1 Rookie
•
4 Posts
0
982
January 16th, 2023 13:00
PyPowerstore : how to retreive Free space and disks
Hi,
I am starting to use Py Powerstore, great tool, but I am looking for now 2 things :
=> the lists of physical drives on all appliances
=> the free / used / reserved space all on aplliances.
How can I find that in the Pythin Powertore module ?
(info are available on the REST API).
regs,
Olivier Guyot
No Events found!
jennifer_john
1 Rookie
•
79 Posts
0
January 17th, 2023 02:00
Hi @Olivier2000fr ,
The get_appliances() in configuration.py returns details of the appliances in a cluster. The UT's for the consumption is added here https://github.com/dell/python-powerstore/blob/main/PyPowerStore/tests/unit_tests/test_appliance.py .
Please do let me know if there is any other information that you are looking for.
Thanks,
Jennifer
Olivier2000fr
1 Rookie
•
4 Posts
0
February 25th, 2023 09:00
Hi Jennifer,
Thanks for your reply, but I am not finding my info.
What i am looking is 2 Things.
Thing 1 :
List of all drives (Size / position / ID).
Thing 2 :
Free space, used space, provision space for an appliance.
Concerning the details of an appliance, I used the following code and I am not finding my info :
(I have had a look to the full outpout of the get appliance details, with with no luck so far
Output :
[{'id': 'A1', 'name': 'PowerStore-3T-Bottom-appliance-1', 'model': 'PowerStore 1000T'}]
dict_keys(['id', 'name', 'service_tag', 'express_service_code', 'model', 'drive_failure_tolerance_level', 'nodes', 'ip_pool_addresses', 'veth_ports', 'maintenance_windows', 'fc_ports', 'sas_ports', 'eth_ports', 'software_installed', 'virtual_volumes', 'hardware', 'volumes'])
=> under nodes you only get name of the 2 nodes and no other info
=> under hardware I am finding list of ID's
=> under sas_ports : 4 id's.
Regs,
Olivier
jennifer_john
1 Rookie
•
79 Posts
0
March 1st, 2023 03:00
Hi @Olivier2000f
The list of all drives can be obtained using the /hardware API.
For appliance capacity in the /metrics/generate api , the space_metrics_by_appliance has physical_total and physical_used (used space).
Invoking these apis is currently not supported from PyPowerStore SDK. We will look into it.
Thanks,
Jennifer