Hi Team
I want to retrieve the advance settings "Syslog.global.logHost" of each ESXi Host in vCenter and export it to a CSV. As there are more than 100 host, can somebody help with the script to extract the information from the vCenter.
As your post needs moving to the PowerCLI area, I have reported it to the moderators.
You could do something like this
Get-VMHost |
Get-AdvancedSetting -Name 'Syslog.global.logHost' |
Select @{N='VMHost';E={$_.Entity.Name}},Name,Value |
Export-Csv -Path .\report.csv -NoTypeInformation -UseCulture
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi @LucD was wondering if you can help me create a PS script to change our current Syslog.global.logHost
We currently point everything to Aria log operations host for Syslog.global.logHost but are looking to change the setting globally.
You may have a script already that does this?
Have a look at Solved: Re: Configure syslog on multiple ESXi hosts in mul... - VMware Technology Network VMTN
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference