This is my 3.5 server. I'm guessing that this is only for ESXi, is that correct?
PS > Get-VMHostSysLogServer -VMHost tupac* Get-VMHostSysLogServer : 3/23/2009 12:27:12 AM Get-VMHostSysLogServer F95EF5F8-630B-4E 2C-9FFB-0B28B440C112 SysLogServer is not supported for host 'tupac.qatest.iss.net'. At line:1 char:23 + Get-VMHostSysLogServer <<<< -VMHost tupac* + CategoryInfo : InvalidArgument: (:) [Get-VMHostSysLogServer], VimException + FullyQualifiedErrorId : Client20_SystemManagementServiceImpl_ThrowSysLogServerNotSupp ortedException_MissingSysLogInfo,VMware.VimAutomation.Commands.Host.GetVMHostSysLogServer
It would be a great help to me if someone could post an example of what the syslog server output looks like, and bonus points for Set-VMHostSyslogServer.
[vExpert|http://www.vmware.com/communities/vexpert/], PowerShell MVP, VI Toolkit forum moderator
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Need general, non-VMware-related PowerShell Help? Try the forums at PowerShellCommunity.org
Looks like you're right about ESXi only (before you say it, yes it would be nice to have a little compatibility matrix for each cmdlet).
C:\> Set-VMHostSysLogServer -SysLogServer 10.21.4.91 -SysLogServerPort 514 Host Port ---- ---- 10.21.4.91 514 C:\> Get-VMHostSysLogServer Host Port ---- ---- 10.21.4.91 514
Looks like you're right about ESXi only (before you say it, yes it would be nice to have a little compatibility matrix for each cmdlet).
C:\> Set-VMHostSysLogServer -SysLogServer 10.21.4.91 -SysLogServerPort 514 Host Port ---- ---- 10.21.4.91 514 C:\> Get-VMHostSysLogServer Host Port ---- ---- 10.21.4.91 514