VMware Communities > VMTN > VMware vSphere™ > Automation Tools > vSphere™ PowerCLI > Discussions

This Question is Answered

2 "helpful" answers available (6 pts)
1 Replies Last post: Mar 22, 2009 10:04 PM by c_shanklin
Reply

What host server is supported for Get-VMHostSyslogServer?

Mar 22, 2009 9:31 PM

Click to view halr9000's profile Master halr9000 808 posts since
Jun 7, 2007
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, 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
Reply Re: What host server is supported for Get-VMHostSyslogServer? Mar 22, 2009 10:04 PM
Click to view c_shanklin's profile Master c_shanklin 740 posts since
Dec 3, 2007
VMware
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
Actions