Server Management - Remote Server Management
1823920 Members
3162 Online
109667 Solutions
New Discussion юеВ

Re: HP ilo connection error with Powershell + HP ilo cmdlets

 
dakine77
Occasional Visitor

HP ilo connection error with Powershell + HP ilo cmdlets

Hello.

I just downloaded and installed the latest HP ILO commandlet package (1.3.1)

When I run a simple command I get the an error which I do not understand:

PowerCLI C:\> Get-HPiLOFirmwareInfo -Server iloserver01.company.int -Username Admin

...

Error - 192.168.99.13 - iloserver01.company.int - retrieving information from iLO
Ausnahme beim Aufrufen von "UploadString" mit 3 Argument(en): "Die zugrunde liegende Verbindung wurde geschlossen: Unerwarteter Fehler beim Senden.."

In C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:12334 Zeichen:21
+ throw $retobject.err
+ ~~~~~~~~~~~~~~~~~~~~
+CategoryInfo :OperationStopped: (Ausnahme beim A...beim Senden.."
:String) [], RuntimeException
+FullyQualifiedErrorId :Ausnahme beim Aufrufen von "UploadString" mit 3 Argument(en): "Die zugrunde liegende Verbindung wurde geschlossen: Unerwarteter Fehler beim Senden.."

Does anyone have the same issue and know a workaround or answer for this problem?

 

I have found a post with a same error post, but without a reply or solution:

PS C:\Windows\System32> Get-HPiLOServerName -Server usraciPV100-r  -Username "RILOE_ADMIN" тАУPassword "password" -DisableCertificateAuthentication

Error - 10.250.66.11 - usraciPV100-r - Error retrieving information from iLO Exception calling "UploadString" with "3" argument(s): "The remote server returned an error: (404) Not Found." At C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:19218 char:25 + throw $retobject.err + ~~~~~~~~~~~~~~~~~~~~ +CategoryInfo :OperationStopped: (Exception calli...4) Not Found." :String) [], RuntimeException +FullyQualifiedErrorId :Exception calling "UploadString" with "3" argument(s): "The remote server returned an error: (404) Not Found."

 IтАЩve verified the ILO name is correct. The ILO is running version 2.05. ItтАЩs online and running. And I can log into the ILO with the username and password. I get this error message for any of the ILOтАЩs in our environment.

 

16 REPLIES 16
GokulKS
HPE Pro

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Hi,

This is an enhanced security feature implemented in all cmdlets of iLO 1.3 release where cmdlets will work only if target iLO server has an valid server certificate installed on it, otherwise cmdlet will fail with the mentioned output.

To by-pass this check we have provided another switch parameter for all cmdlets called "-DisableCertificateAuthentication" which will not check for server certificate and you will get desired output, but its not recommened from security point of view.

Let me know if you still face same issue.

Thanks,

Gokul

HPE PowerShell Team

 


I am a HPE Employee

Accept or Kudo

dakine77
Occasional Visitor

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Still having the same error with the error message that I posted before. There is a valid certificate installed. Even calling the cmdlet with the option "-DisableCertificateAuthentication" has the same problem.

I have tested the cmdlet call with different ilos and settings:

DL380 G7 is working  - ilo 3 FW 1.87 with valid certificate

DL380 G7 is not working  - ilo 3 FW 1.87 with invalid certificate (also with option "-DisableCertificateAuthentication")

iDL380 G8 is not working - ilo 4 with FW 2.40 with valid certificate

DL380 G9 is not working - ilo 4 with FW 2.40 with valid certificate

 

Strange behaviour. Any idea?

GokulKS
HPE Pro

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Hi,

Can you get me more details on the system where iLO cmdlets are not working to triage the issue further.

$PSVersionTable

Get-HPiLOModuleVersion

Get-WmiObject Win32_OperatingSystem | Select-Object Caption, Description, OSArchitecture, ServicePackMajorVersion | Format-List

Also have you enabled higher security standard like AEH or FIPS on the iLO server where its not working ?

Thanks,

Gokul


I am a HPE Employee

Accept or Kudo

dakine77
Occasional Visitor

Re: HP ilo connection error with Powershell + HP ilo cmdlets

PS H:\> $PSVersionTable

Name                           Value                                                                                                                                                                                                     
----                           -----                                                                                                                                                                                                     
PSVersion                      4.0                                                                                                                                                                                                       
WSManStackVersion              3.0                                                                                                                                                                                                       
SerializationVersion           1.1.0.1                                                                                                                                                                                                   
CLRVersion                     4.0.30319.42000                                                                                                                                                                                           
BuildVersion                   6.3.9600.16406                                                                                                                                                                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}                                                                                                                                                                                      
PSRemotingProtocolVersion      2.2   
PS H:\> Get-HPiLOModuleVersion


Name                 : HPiLOCmdlets
Path                 : C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1
Description          : Cmdlets to interface with Hewlett Packard Enterprise iLO
GUID                 : 05545ade-5f25-4696-bfcc-e1d67fe32519
Version              : 1.3.0.1
CurrentUICultureName : de-DE
AvailableUICulture   : {@{UICultureName=en-US; UICultureVersion=1.3.0.0}, @{UICultureName=zh-CN; UICultureVersion=1.3.0.0}, @{UICultureName=ja-JP; UICultureVersion=1.3.0.0}}
PS H:\> Get-WmiObject Win32_OperatingSystem | Select-Object Caption, Description, OSArchitecture, ServicePackMajorVersion | Format-List


Caption                 : Microsoft Windows 7 Enterprise 
Description             : 
OSArchitecture          : 64-Bit
ServicePackMajorVersion : 1

 

Here are some test results with a test HP cmdlet via ilo (test cmdlet: Get-HPiLOFirmwareInfo -Server -Username)

 

DL380 G7 with ilo3 FW_1.87: AES and FIPS Encryption not activated, valid certificate, Browserconnection is using TLS 1.1 - test is working
DL380 G7 with ilo3 FW_1.87: AES activated, FIPS not activated, valid certificate, Browserconnection is using TLS 1.1 - test is working
DL380 G8 with ilo4 FW_2.40: AES activated, FIPS not activated, valid certificate, Browser connection is using TLS 1.2 - test is not working
DL380 G8 with ilo4 FW_2.40: AES activated, FIPS not activated, valid certificate, Browser connection is using TLS 1.2, with option "DisableCertificateAuthentication" - test is not working
DL380 G8 with ilo4 FW_2.40: AES not activated, FIPS not activated, valid certificate, Browser connection is using TLS 1.2 - test working

 

 

 

 

GokulKS
HPE Pro

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Hi,

We tried to reproduce the issue in our lab and found that its not reproducible for the servers you mentioned earlier.

DL380p тАУ Gen8 тАУ FW 2.40 тАУ Encryption Enabled / Disabled тАУ Valid and Invalid Certificate тАУ Cmdlet Works.

DL380  тАУ  Gen9 тАУ FW 2.40  тАУ Encryption Enabled / Disabled тАУ Valid and Invalid Certificate  - Cmdlet Works.

The environment we tested is same as you mentioned PS 4.0 and Windows 7.

Looks like there is some thing different on your environment which making cmdlets fail.

Are you using localised build of iLO ?

Thanks,

Gokul

 


I am a HPE Employee

Accept or Kudo

DDinu
Visitor

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Hi Everyone,

 

Am running in to the same issue.  Any resolution for this one yet ?

AaronK
Frequent Advisor

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Same issue here. Anyone figure out a fix?

AK

JW-_CSA
New Member

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Simmilar Problem here.

Tried to access ILO3 Board with Powershell Tools

ILO3 Ver. 1.87 - AES on - Access ok

ILO3 Ver. 1.87 - AES off - Access ok

ILO3 Ver. 1.88 - AES on - Access nok

ILO3 Ver. 1.88 - AES off - Access ok

tested on BL460c G7, DL380 G7,DL360 G7,DL580 G7

Tested Command:

Get-HPiLOFirmwareVersion -Server iloserver.local -Username $user -Password $password -DisableCertificateAuthentication

 

Error:

Error - 1.1.1.2 - iloserver.local - retrieving information from iLO

Exception calling "UploadString" with "3" argument(s): "The request was aborted: Could not create SSL/TLS secure channel."

At C:\Program Files\Hewlett-Packard\PowerShell\Modules\hpilocmdlets\HPiLOCmdlets.psm1:12555 char:21

+ throw $retobject.err

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

+CategoryInfo :OperationStopped: (Exception calli...cure channel."

:String) [], RuntimeException

+FullyQualifiedErrorId :Exception calling "UploadString" with "3" argument(s): "The request was aborted: Could not create SSL/TLS secure channel."

PS Version:

 

Name Value

---- -----

PSVersion 4.0

WSManStackVersion 3.0

SerializationVersion 1.1.0.1

CLRVersion 4.0.30319.42000

BuildVersion 6.3.9600.16406

PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}

PSRemotingProtocolVersion 2.2

 

.NET Version

4.6.2

 

HPILOCMDLETS Version

ModuleType Version Name ExportedCommands

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

Script 1.3.0.1 hpilocmdlets {Add-HPiLOFederationGroup, Add-HPiLOSSORecord, Add-HPiLOUser, Clear-HPiLOAHSData...}

 

Can someone give me advice?

 

Cheers

 

JW

уАА

 

 

 

 

Saunders
Occasional Advisor

Re: HP ilo connection error with Powershell + HP ilo cmdlets

I was running into the same problem today, and after some googling around, I found out that the issue was related to the Power Configuration on your client machine, not the HPE Powershell library or ILO Configuration. 

Try adding this to your powershell script: 

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
or
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls11

Saunders 

GokulKS
HPE Pro

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Hi,

You can download the latest version of iLO i.e., 1.4.0.2 from the HPE Web which has the fix for the iLO3 AES encription issue.

Let me know if you still face same problem we can take it up further offline.

Thanks,

Gokul

 


I am a HPE Employee

Accept or Kudo

Unlisted
Advisor

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Reply originally by  MSSTLCC

Hello,

I'm afraid this still isnt working;

Name : HPiLOCmdlets
Path : C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1
Description : Scripting Tools for Windows PowerShell : iLO Cmdlets use the RIBCL interface to communicate
to iLO. These cmdlets can be used to configure and manage iLO on HPE ProLiant Gen7, Gen8 or
Gen9 servers.
GUID : 05545ade-5f25-4696-bfcc-e1d67fe32519
Version : 1.4.0.2
CurrentUICultureName : en-US
CurrentUICultureVersion : 1.4.0.1
AvailableUICulture : {@{UICultureName=en-US; UICultureVersion=1.4.0.1}, @{UICultureName=zh-CN;
UICultureVersion=1.3.0.1}, @{UICultureName=ja-JP; UICultureVersion=1.3.0.1}}

Script;

$cred = get-credential
$Servers = get-content D:\Temp\Servers.txt
ForEach ($Server in $Servers){
Set-HPiLOGlobalSetting -Credential $cred -Server $Server -DisableCertificateAuthentication -EnforceAES Enable
}

Some seem to run but the vast majority get the following.


Get-ErrorDetail : Error - "SERVERIP" - "HOSTNAME" - Retrieving information from iLO.
Exception calling "UploadString" with "3" argument(s): "The remote server returned an error: (404) Not Found."
At C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:31169 char:21
+ throw $retobject.err
+ ~~~~~~~~~~~~~~~~~~~~
+CategoryInfo :OperationStopped: (Exception calli...4) Not Found."
:String) [], RuntimeException
+FullyQualifiedErrorId :Exception calling "UploadString" with "3" argument(s): "The remote server returned an
error: (404) Not Found."
At C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:31232 char:17
+ Get-ErrorDetail $ErrorMsg
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-ErrorDetail

GokulKS
HPE Pro

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Hi,

I think the exceptions coming from some servers could be that they are not reachable from client machine where you are running the iLO cmdlets.

You can verify that by running those error throwing iLO servers list using Find-HPiLO cmdlet.

Thanks,

Gokul

HPE PowerShell Team


I am a HPE Employee

Accept or Kudo

virgored
Occasional Visitor

Re: HP ilo connection error with Powershell + HP ilo cmdlets

I have this same issue

I can connect to the iLo no problem
works fine with iLO4

not working with iLo3

GokulKS
HPE Pro

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Hi,

Can you give me more context on your problem.

Thanks,

Gokul

 


I am a HPE Employee

Accept or Kudo

Jc-Gregoire
Regular Visitor

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Hello,

Same issue here.

PS C:\WINDOWS\system32> Disable-HPiLOCertificateAuthentication
PS C:\WINDOWS\system32> $data[$server.SerialNumber]  | Get-HPiLONetworkSetting -Server 192.168.10.100
WARNING: DNS name translation not available for 192.168.10.100. The hostname was not found.
Get-ErrorDetail : Error - 192.168.10.100 -  - Retrieving information from iLO.
Exception calling "UploadString" with "3" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel."
At C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:16819 char:25
+                         throw $retobject.err
+                         ~~~~~~~~~~~~~~~~~~~~
        +CategoryInfo          :OperationStopped: (Exception calli...cure channel."
:String) [], RuntimeException
        +FullyQualifiedErrorId :Exception calling "UploadString" with "3" argument(s): "The request was aborted: Could not
create SSL/TLS secure channel."
At C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:16911 char:17
+                 Get-ErrorDetail $ErrorMsg
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-ErrorDetail
Sunitha_Mod
Moderator

Re: HP ilo connection error with Powershell + HP ilo cmdlets

Hello @Jc-Gregoire , 

Thank you for posting! Since you have posted in an old topic and there is no response yet, I would recommend you to create a new topic using the create "New Discussion" button.



Thanks,
Sunitha G
I'm an HPE employee.
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo