Issue: Connect-VIserver Could not connect using the requested protocol.

 

Some time back I had an issue while I tried to connect my Vcenter from powercli but unable to connect and getting below error


 ##################################################
Connect-VIServer :  6/08/2015 3:31:27 AM        Connect-VIserver          Could not connect using the requested protocol.
At line:1 char:1
+ Connect-VIServer itvc001.age.com
+
        + CategoryInfo               : ObjectNotFound: (:) [Connect-VIserver], ViServerConnectionException
        + FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_ProtocolError, VMware.VimAutomation.ViCore.Cmd
    lets.Commands.ConnectVIServer
##################################################

This is all because, there are proxy setting configured into your explorer or into your system from where you are trying to connect the vcenter from powercli.

 To resolve this Issue pls follow below KB articile. 2011395

 
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2011395 

To resolve this, check the proxy settings using the PowerCLI and set the proxy to No Proxy.

To set the proxy setting to No Proxy:

 1.Run this command to find the current proxy settings:

    Get-PowerCLIConfiguration

    You see an output similar to:

    C:\PS>Get-PowerCLIConfiguration

   Proxy Policy Default            Server Mode

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

   UseSystemProxy                  Single

    Note: This output indicates that the PowerCLI is using the System Proxy.

 2.To change this setting, run this command:

    Set-PowerCLIConfiguration -ProxyPolicy NoProxy -Confirm

    You see an output similar to:

  C:\PS>Set-PowerCLIConfiguration -ProxyPolicy NoProxy -Confirm

    Perform operation?

  Performing operation 'Update vSphere PowerCLI configuration.'?

  [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y

  Proxy Policy Default       ServerMode

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

  NoProxy                    Single

 

 

After changing above proxy settings you would be able to make connection with vCenter via Powercli. :)

Source (http://vxpresss.blogspot.in/)

Happy Sharing..  :)


 

Comments

Popular posts from this blog

VM Creation Date & Time from Powercli

Changing the FQDN of the vCenter appliance (VCSA)

Could not connect to one or more vCenter Server systems: https://FQDN:443/sdk