VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

connect-viserver error_powercli

Hi Luc ,

I am trying to connect to one ip address of vcenter (no dns record made for that ip)and gets following error.

pastedImage_0.png

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

That's an old version, I would strongly suggest to upgrade.

If you are worried about compatibility, check the matrix.

matrix.png


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
19 Replies
LucD
Leadership
Leadership
Jump to solution

One of the things you might check is the Proxy settings for PowerCLI?

Do a Get-PowerCLIConfiguration​ and perhaps try setting the ProxyPolicy to No Proxy.

Unless of course there is a proxy between your station and the vCenter.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

proxy set to no proxy but still same error .

pastedImage_0.png

and  webclient also does not connect .

pastedImage_1.png

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Do you have proxy settings on the machine from where you do the Connect-VIServer and start the browser with the Web CLient?

If yes, try removing those.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

if i connect to esxi host on which this vcenter is running .

store vcenter vm in variable .

and try to find it properties and methods will it know its a vcenter vm and can give license info????

0 Kudos
LucD
Leadership
Leadership
Jump to solution

I don't think that will work


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

no proxy is configred .also i can connect to esxi host .

0 Kudos
LucD
Leadership
Leadership
Jump to solution

What does Get-PowerCLIConfiguration show?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

pastedImage_0.png

0 Kudos
LucD
Leadership
Leadership
Jump to solution

There should be 3 lines, for the 3 scopes


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

nothing else i see there .this is what get-powercliconfiguration displayed.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Strange, normally you should see something like this

configuration.png

Are you sure that you have a clean, up-to-date PowerCLI installation?

Do this

Get-Module -Name VMware* -ListAvailable | select Name,Version

And can you also run this

Get-WmiObject -Class Win32_Product |

where{$_.Name -match 'VMware'} | Select Name,Version,Caption


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

I am checking this .Thanks.

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

Modules are there but I m not able to run power cli commands from power shell.

adding ps snapin

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Do you still have PSSnapin, that means you have a rather old version of PowerCLI.

What does Get-PowerCLIVersion say?

I would advise to upgrade.

See Welcome PowerCLI to the PowerShell Gallery – Install Process Updates


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

Actually import-module as it is powercli 6.5.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

That's also an older version.

Can you show the output of the snippets I gave earlier?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

Attached.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

That's an old version, I would strongly suggest to upgrade.

If you are worried about compatibility, check the matrix.

matrix.png


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

Thanks I am going to upgrade to 10.11.did not notice that new release came in April.

0 Kudos