Open CoffinDocSavage opened 3 months ago
Does your environment require HTTPS for Proxy? Is there a reason why the proxy isn't being bypassed for local networks? Can you provide the generated file from Get-OVCommandTrace -ScriptBlock { Connect-OVMgmt -Hostname $Appliance -Credential $Credz }
?
BTW, you do not need to include the -AuthLoginDomain
unless you omit the domain name from the Credentials object.
Hi Chris,
Thank you for the response. No, it does not require a HTTPS proxy, it should bypass the proxy like I use to connect to vCenter for example. I've tried to play around with my PowerShell profile but this didn't work out.
LibraryVersion Path
8.50.3667.2043 Documents\PowerShell\Modules\HPEOneView.850\8.50.3667.2043
VERBOSE: [CONNECT-OVMGMT] Bound PS Parameters:
Name Value
Credential System.Management.Automation.PSCredential
Hostname <name>
VERBOSE: [CONNECT-OVMGMT] Creating Session Container
VERBOSE: [CONNECT-OVMGMT] Caller did not provide -AuthLoginDomain parameter. Checking for Domain Name or UPN formatted Username value.
VERBOSE: [CONNECT-OVMGMT] Found UPN-style domain name in the username field,
VERBOSE: [CONNECT-OVMGMT] Checking X-API Version.
VERBOSE: [SEND-OVREQUEST] BEGIN
VERBOSE: [SEND-OVREQUEST] Called from: Connect-OVMgmt
VERBOSE: [SEND-OVREQUEST] Bound PS Parameters:
Key Value
uri /rest/version
Hostname <hostname>
VERBOSE: [SEND-OVREQUEST] Process
VERBOSE: [SEND-OVREQUEST] Hostname value: <hostname>
VERBOSE: [SEND-OVREQUEST] Filtering for Connection Object via String: <hostname>
VERBOSE: [SEND-OVREQUEST] Processing '<hostname>' appliance connection request. 1 of 1
VERBOSE: [SEND-OVREQUEST] Requested URI '/rest/version' to '<hostname>
VERBOSE: [SEND-OVREQUEST] We have reached the URI Whitelist condition block. Unauth request allowed for '/rest/version'.VERBOSE: [HPEOneView.Utilities.Net.RestClient] URI: <hostname>rest/version
VERBOSE: [HPEOneView.Utilities.Net.RestClient] Method: GET
VERBOSE: [HPEOneView.Utilities.Net.RestClient] XApiVersion: 5600
VERBOSE: [[HPEOneView.PKI.SslValidator]::SslValidation()] Enforcing TLS1.2 only for [System.Net.ServicePointManager.SecurityProtocol].
VERBOSE: [CONNECT-OVMGMT] Exception caught when checking X-API version.
VERBOSE: [[HPEOneView.Library.ConnectedSessionsList]::RemoveConnection()] Removing host <hostname>from collection.
VERBOSE: [[HPEOneView.Library.ConnectedSessionsList]::RemoveConnection()] Calling to remove host <hostname> from TrustedHost collection.
VERBOSE: [[HPEOneView.PKI.SslValidator]::RemoveTrustedHost()] Host <hostname>does not exist in TrustedHosts collection.
Connect-OVMgmt:
Line |
2 | Connect-OVMgmt -Hostname <hostname>-Credential $ …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling "RestClient" with "3" argument(s): "The ServicePointManager does not support proxies with the https scheme."
VERBOSE: --------------------------------------------------------------------------------```
I have the same issue. Was intermittent for me so I tried to find what would trigger it for me.
Connect-OVMgmt works fine (for me) until one of these modules ...
VMware.Vim 8.3.0.24145081
VMware.VimAutomation.Cis.Core 13.3.0.24145081
VMware.VimAutomation.Common 13.3.0.24145081
VMware.VimAutomation.Core 13.3.0.24145081
VMware.VimAutomation.Sdk 13.3.0.24145081
... gets loaded. From then, even if i remove the modules, either with or without the HPEOneView module, the problem persists.
I also get issues with HPEiLOCmdlet in the same fashion, works when those modules havent been loaded but not after that.
(HPEiLOCmdlet complains about log4net.dll missing and when that occurs I can no longer access collections in that runspace)
What do you need from me?
Expected Behavior
Connect to HPEOneView
Actual Behavior
Steps to reproduce
Connect-OVMgmt -Hostname -Credential $Credz -Verbose -AuthLoginDomain
Version Information
HPE OneView PowerShell Library Version (
Get-OVVersion
or$PSLibraryVersion
): 8.50.3667.2043 HPE OneView Appliance Version (Get-OVVersion -ApplianceVer
): N/A Output from$PSVersionTable
on your Windows Host: