Hello All,
Before i come to my question, let me explain my Environment.
- 1 Datacenter
- 4 Cluster
- Cluster1
- 2 Host
- Cluster2
- 2 Host
- Cluster3
- 3 Host
- Cluster4
- 5 Host
- Cluster1
- 70 Datastores
I wanted powercli script to run the esxcli command for unamp on Specific Datastores.
Here is what i have done so far:
After this, i and not able to get ahead. here is i want to achieve:
- Script Runs
- Connect to vCenter Server
- Get all the Host under the Cluster 4 (There are 5 host)
- Connect to one of the Host (part of the Cluster 4) which has Lowest Memory Usage.
- Once Connected
- List all the Datastore, whose names begin with " VDIDS* "
- Start running "ESXCli Command on all the datastore, whose name starts with VDIDS.
- Save the Log with the info about being successful or not.
Can someone please help,