set syslog settings

# Conncect to vCenter Server/Host
Connect-VIServer -Server a.b.c.d -user username -password password
Get-VMHostAdvancedConfiguration -name Syslog.Remote.Hostname -VMhost fqdn
Set-VMHostAdvancedConfiguration -name Syslog.Remote.Hostname IP-ADRESSE -VMhost fqdn

# show syslog settings
Get-VMHost ESXHostnameOrIP | Get-VMHostSysLogServer
# set syslog settings
Get-VMHost ESXHostnameOrIP | Set-VMHostSysLogServer -SysLogServer SyslogHostnameOrIP -SysLogServerPort PortNumber

# for hosts added by Connect-VIServer
Get-VMHost | Set-VMHostSysLogServer -SysLogServer  a.b.c.d -SysLogServerPort 514

set syslog settings

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s