Modify Syslog servers on ESXi hosts

From VVCWiki
Revision as of 02:32, 5 March 2014 by Vvc (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
$hosts = get-vmhost
foreach ($server in $hosts)
{
  write-host $server
  Set-VMHostSysLogServer -vmhost $server -syslogserver 'tcp://syslog-server:1514'
  $Reload = (Get-ESXCLI -vmhost $server).System.Syslog.reload()
}