Hi All,
Using this script, it is possible to automatically create /scratch directory location for multiple ESXi servers without causing outage during the business hours.
Would it be possible to get the list of ESXi servers that has no /scratch location or display the /scratch location full path when already configured?
Thank you in advance.
You could do something like this
Select Name,
@{N='Scratch';E={(Get-AdvancedSetting -Entity $_ -Name 'ScratchConfig.CurrentScratchLocation').Value}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You could do something like this
Select Name,
@{N='Scratch';E={(Get-AdvancedSetting -Entity $_ -Name 'ScratchConfig.CurrentScratchLocation').Value}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Wow, thanks LucD for the very quick reply 🙂
Name Scratch
---- -------
DCESXi02 /vmfs/volumes/5bee0d4f-06972c59-4e9f-1458d0b47050
DCESXi03 /vmfs/volumes/5be524fc-abe31cc0-3f13-1458d050f658
DCESXi01 /vmfs/volumes/5becf996-1a46a3dc-a02f-1458d0b30568
How do we know if the above is a persistent location that can save CoreDump persistently?
If that location is pointing to a datastore path (as in your report) and not a /tmp folder, I assume it is persistent.
I don't know if there is a flag or property that actually says persistent or not.
KB1033696 seems to say the same.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
yes, that does make sense.
Thanks, Luc.