Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232413

Re: Problems with Get-VMHostSyslogServer

$
0
0

I can not Get-VMHost by IP:

 

PowerCLI Z:\PHA Scripts\PowerCLI Scripts> get-vmhost -Name 10.64.124.121

get-vmhost : 5/30/2013 3:54:06 PM    Get-VMHost        VMHost with name '10.64.124.121' was not found using the specified filter(s).

 

 

At line:1 char:1

+ get-vmhost -Name 10.64.124.121

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (:) [Get-VMHost], VimException

    + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVMHost

 

 

PowerCLI Z:\PHA Scripts\PowerCLI Scripts>

 

I can, by FQDN name:

 

PowerCLI Z:\PHA Scripts\PowerCLI Scripts> get-vmhost <ESX-name>

 

 

Name                 ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz   MemoryUsageGB   MemoryTotalGB Version

----                 --------------- ---------- ------ ----------- -----------   -------------   ------------- -------

<ESX Name>... Connected       PoweredOn      32        8502       72448          91.681         255.990   5.1.0

 

 

But I still can't get the syslog server

 

PowerCLI Z:\PHA Scripts\PowerCLI Scripts> $ESX = get-vmhost <ESX-name>

PowerCLI Z:\PHA Scripts\PowerCLI Scripts> Get-VMHostSyslogServer -VMhost $ESX

Get-VMHostSyslogServer : 5/30/2013 3:59:09 PM    Get-VMHostSysLogServer        Input string was not in a correct format.

At line:1 char:1

+ Get-VMHostSyslogServer -VMhost $ESX

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-VMHostSysLogServer], VimException

    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.GetVMHostSysLogServer


Viewing all articles
Browse latest Browse all 232413

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>