VMware Cloud Community
CNRail
Contributor
Contributor

Fine tuning a Host with PowerCLI before creating the Host Profiles from it

Hi guys,

     I have over 65 different Cluster and I would like to prepare the first HOST with PowerCLI and create the Host Profile from it without Editing from the GUI in the vCenter because it takes so long.

I did a fine tuning of the first Host (after a rebuilt with 6.5) by editing Host Profiles and then I export with PowerCLI like this;

Get-AdvancedSetting -Entity $HOST65 | Export-Csv -Path T:\_Evergreening_\Script\$HOST65-config.csv -NoTypeInformation

I got a file like this (header);

UidValueDescriptionTypeEntityIdNameClient

In the result, I can see some missing info that has been modified in the "Edit Host Profiles" so I have to scan somewhere else.

My gol is to prepare a CSV file with all the information and use it to create the first Host Profiles with PowerCLI like this ...

Get-AdvancedSetting -Entity $HOST65 -Name 'Name from CSV file' | Set-AdvancedSetting -Value 'Value from CSV file'


Is it possible?

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Like you noticed, not all customisation that is in a HostProfile is in the Advanced Settings.

There are things like switches, datastores...

You will have to collect those with other means than the Advanced Settings.

But why don't you create a HostProfile from an ESXi node that is customised?

And then apply that HostProfile, after some customisation, to the other hosts?


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

Reply
0 Kudos