Sample Exchange

 View Only

PowerCLI Port of RVC command vsan.disks_info 

Nov 14, 2019 04:39 PM

This PowerCLI script will return a list of local disks on a vSAN host as the vsan.disks_info RVC command does.

Disk information includes the name, model, revision, whether an SSD or not, use by vSAN or not, and Hba/Controller specific information.

Disks are sorted ascending by the capacity.

RVC:

PowerCLI:

 


#SSD
#RVC
#Disks
#vSAN
#DiskFormatVersion
#VMwarePowerCLI
#Apache2.0
#disk
#PowerShell

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
ps1 file
Get-RvcVsanDisksInfo.ps1   3 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Comments

Nov 02, 2023 02:30 PM

This script uses the Connect-VIServer cmdlet to connect to the vCenter Server, retrieves the vSAN host using Get-VMHost, and then uses Get-VsanDisk to get the vSAN disks information. The disks are sorted by capacity using Sort-Object. Finally, the relevant disk information (Name, Model, Revision, IsSSD, IsVsan, and HbaInfo) is displayed using Format-Table.
Make sure you have the VMware PowerCLI module installed and loaded before running the script.
------------------------
https://uno-online.io

Related Entries and Links

No Related Resource entered.