VMware Cloud Community
tdubb123
Expert
Expert
Jump to solution

syslog settings report

trying to put the following into a report for multiple hosts. any suggestions?

 

get-advancedSetting -Name "syslog*", "vpx*" -Entity (get-dc | get-vmhost) | Sort-Object Name | ft -auto

 

it seems like a lot of columns per host and I want to know the best way to do this exporting to csv

 

thanks

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You mean something like this?

Get-Datacenter -PipelineVariable dc |
Get-VMHost -PipelineVariable esx |
Get-AdvancedSetting -Name "syslog*", "vpx*" |
Select @{N='Datacenter';E={$dc.Name}},
  @{N='VMHost';E={$esx.Name}}, Name,Value |
Export-Csv -Path .\report.csv -NoTypeInformation -UseCulture


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

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

You mean something like this?

Get-Datacenter -PipelineVariable dc |
Get-VMHost -PipelineVariable esx |
Get-AdvancedSetting -Name "syslog*", "vpx*" |
Select @{N='Datacenter';E={$dc.Name}},
  @{N='VMHost';E={$esx.Name}}, Name,Value |
Export-Csv -Path .\report.csv -NoTypeInformation -UseCulture


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

Reply
0 Kudos
tdubb123
Expert
Expert
Jump to solution

  • thanks luc
Reply
0 Kudos