VMware Cloud Community
Suryakj7
Contributor
Contributor

Powershell script to get advance settings of ESXI

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.

 

 

0 Kudos
4 Replies
scott28tt
VMware Employee
VMware Employee

As your post needs moving to the PowerCLI area, I have reported it to the moderators.

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
LucD
Leadership
Leadership

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

0 Kudos
frased
Enthusiast
Enthusiast

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?  

0 Kudos