VMware Cloud Community
celma972
Contributor
Contributor
Jump to solution

Getting physical HDD information (size, number of disks) installed on ESXi host with POWERCLI

Hi,

I need to retrieve on a ESXi 6.0 host the HDD information (size in GB , numbers of disks installed...). How can I achieve that with POWERCLI

Thks

JJC

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Does this give you the info you are looking for?
This doesn't show all the available fields, there are others.

$esxcli = Get-EsxCli -VMHost MyEsx

$esxcli.storage.core.device.list() |

    where{$_.DeviceType -eq 'Direct-Access'} |

    Select Device,DisplayName,DevFSPath,Vendor,Model,Revision,Size


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

2 Replies
LucD
Leadership
Leadership
Jump to solution

Does this give you the info you are looking for?
This doesn't show all the available fields, there are others.

$esxcli = Get-EsxCli -VMHost MyEsx

$esxcli.storage.core.device.list() |

    where{$_.DeviceType -eq 'Direct-Access'} |

    Select Device,DisplayName,DevFSPath,Vendor,Model,Revision,Size


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

celma972
Contributor
Contributor
Jump to solution

Thks LuycD

This is what I am looking at

JJC

0 Kudos