I had a scenario where we had to monitor the real time performance statistics of multiple shared VMFS datastores which are part of a multi-node VMware ESXi cluster. So this post is about the short script which uses VMware PowerCLI to get read/ write IOPS and latency details of these shared datastores across all nodes in the cluster. The output format is given below which gets refreshed automatically every few seconds.
Prerequisites:
Sample screenshot of output:
Hope it was useful. Cheers!Prerequisites:
- VMware.PowerCLI module should be installed on the node from which you are running the script
- You can verify using: Get-Module -Name VMware.PowerCLI -ListAvailable
- If not installed, you can find the latest version from the PSGallery: Find-Module -Name VMware.PowerCLI
- Install the module: Install-Module -Name VMware.PowerCLI
Note:
- I am using PowerCLI Version 11.0.0.10380590
Latest version of the project and code available at: github.com/vineethac/datastore_perfmon
Reference:
No comments:
Post a Comment