This is a quick script, SVT-Fed-Capactiy.ps1, I put together using Powershell and the SimpliVity REST API to report available, free, and used capacity information for OmniStack Clusters in a SimpliVity Federation, and the OmniStack hosts in each Cluster.
Get the script here: https://github.com/herseyc/SVT/blob/master/SVT-Fed-Capacity.ps1
Just set a couple of simple configuration variables:
- Line 12-14 – set the OVC mgmt IP (
$ovc), username to use (
$username), and password (
- Line 22 – Here you can set what you want to convert the capacity information to, the REST API returns capacity information in Bytes. Just change the variable to one of the ones above the line. This is set to TiB in the script.
- Line 23 – Set the number of decimal places to round the capacity conversion to. It is set to 2 in the script.
The script will output the total capacity of each SimpliVity OmniStack Cluster and the physical capacity of each host in the OmniStack Cluster. It looks a little something like this:
Happy Friday! Enjoy.