VMware Cloud Community
aerodevil
Hot Shot
Hot Shot

Connect-VIserver -AllLinked Issue

I've had difficulty getting this functionality to work.  I get the following error when issuing command

Connect-VIServer -Server VC -AllLinked:$true

I have tried it a variety of iterations and still get the "Invalid URI: The hostname could not be parsed."

I assume I'm missing something straightforward here.  Thanks!

-AllLink.png

Josh Atwell @Josh_Atwell http://www.vtesseract.com http://github.com/joshatwell/
0 Kudos
7 Replies
jake_robinson_b
Hot Shot
Hot Shot

What does Get-PowerCLIConfiguration return for you? (Hint: Default Server Mode should be multiple)

Jake Robinson VCP, vExpert - geekafterfive.com - Twitter: @jakerobinson
0 Kudos
LucD
Leadership
Leadership

I think that is in the screenshot :smileygrin:


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

0 Kudos
jake_robinson_b
Hot Shot
Hot Shot

Thanks, Luc. <facepalm> :smileygrin:

Jake Robinson VCP, vExpert - geekafterfive.com - Twitter: @jakerobinson
0 Kudos
LucD
Leadership
Leadership

I trust you also tried with the FQDN of the VC ?


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

0 Kudos
aerodevil
Hot Shot
Hot Shot

Yes, in the screenshot Smiley Happy

I have tried FQDN and other aliases that we use. I have also tried to connect to other systems in the linked mode environment.

It connects to the initial system but it feels like it is not getting the rest of the names.  It's as if it is not parsing the list/array of other systems identified for linked mode.  Make sense?

1984079.png

Josh Atwell @Josh_Atwell http://www.vtesseract.com http://github.com/joshatwell/
0 Kudos
aerodevil
Hot Shot
Hot Shot

Also keep in mind that the vCenter servers are v4.1 and I'm running PowerCLI 5.0.1.  I was not able to identify any documented issues using -AllLinked with 4.1 vcenter servers.  Are there any dependencies that I'm missing?

I have also tried this with PowerCLI 5.0.1 32-bit and 64-bit

Josh Atwell @Josh_Atwell http://www.vtesseract.com http://github.com/joshatwell/
0 Kudos
GuilhermeAlves
Enthusiast
Enthusiast

I was getting the same issue yesterday. Then i realize i was not passing the right object to the Connect-viserver cmdlet.

It must be a String and i was passing an object from an array without converting it. Maybe .toString() solve your problem too. 😃

See also: Connect-VIServer - vSphere PowerCLI Cmdlets Reference

0 Kudos