VMware

This Question is Answered

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

What host server is supported for Get-VMHostSyslogServer? posted: Mar 22, 2009 9:31 PM

Click to view halr9000's profile Master 813 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
Click to view c_shanklin's profile Master 754 posts since
Dec 3, 2007
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

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities