VMware Cloud Community
BorisBorshevsky
Contributor
Contributor

finding Console disk

Hello,

I'm running ESX4.0 with HDS-USPV storage half of them are booted locally and the other half are booted over san.

I was trying to find on which datastore the esxconsole.vmdk is located \ where is the OS located through Powercli  with no success.

can anyone help?

Tags (1)
Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

Try this

Get-VMHost | Select Name,
@{N="Console Datastore";E={($_.Extensiondata.Config.SystemFile | where {$_ -match "esxconsole"}).Split(']')[0].TrimStart('[') }}


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

BorisBorshevsky
Contributor
Contributor

I was really trying but i could make it work, can you explain what is written there? (2nd line)

Thank You.

Reply
0 Kudos
LucD
Leadership
Leadership

That 2nd line is a calculated property. It fetches the datastore name.

What error message did you get ?

Which PowerCLI build are you using ?

Get-PowerCLIVersion

Note that the code only works for ESX, not for ESXi.


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

Reply
0 Kudos