HewlettPackard / PowerShell-ProLiant-SDK

PowerShell sample scripts for managing HPE servers
https://www.hpe.com/servers/powershell
90 stars 42 forks source link

Error when trying to manage certificates on iLO4 with HPEiLOCmdlets v. 2.0.0.1 #8

Closed e1pex closed 5 years ago

e1pex commented 6 years ago

Start-HPEiLOCertificateSigningRequest, Get-HPEiLOCertificateSigningRequest and Get-HPEiLOSSLCertificateInfo all fails with ERROR status on Proliant Gen8 and Gen9 Servers using the iLO 2.0.0.1 cmdlets.

The HPE.iLO.Response.StatusInfo contains the following info Category Message AffectedAttribute


FeatureSupportability Feature not supported. {}

The same code works on Gen10 servers and the corresponding cmdlets in the 1.5.0.0 codebase works on the Gen8 and Gen9 servers I've tried.

According to the Scripting Tools for Windows PowerShell User Guide it should be supported.

I've also posted this issue in the HPE Community https://community.hpe.com/t5/Server-Management-Remote-Server/Error-when-trying-to-manage-certificates-on-iLO4-with/td-p/7017998

hp-powershell commented 6 years ago

I think the customer might be using older version of iLO4 where support for REST may not be available. In 2.0.0.1 we changed the communication interface from RIBCL to REST protocol only for certificate cmdlets (affects only 3 cmdlets) and rest of the cmdlets in iLO4 still using RIBCL only.

If customer upgrades his iLO4 FW to latest i.e., 2.60 then it should work as I checked with latest FW version and its working.

Let me know the result.

Thanks, Gokul

e1pex commented 6 years ago

Hi Gokul,

I'm sorry, I should have written that I've tested on both 2.54, 2.55 and 2.60 versions of iLO4.

Here is the output from an Proliant Gen8 BL460c running iLO4 2.60 using the 2.0.0.1 version

PS D:\Scripts\ilo> $ilo=Connect-HPEiLO -IP somehostname.xxx.yy -Username user -Password pass -DisableCertificateAuthentication

PS D:\Scripts\ilo> $ilo

IP : xxx.xxx.xxx.xxx Hostname : somehostname.xxx.yy ConnectionType : RIBCL DisableCertificateAuthentication : True iLOGeneration : iLO4 iLOFirmwareVersion : 2,6 iLOResetWaitTimeout : 0 IsConnected : True ServerFamily : ProLiant ServerGeneration : Gen8 ServerModel : BL460c Timeout : 30 Username : user

PS D:\Scripts\ilo> Get-HPEiLOFirmwareVersion -Connection $ilo

FirmwareDate : May 23 2018 FirmwareVersion : 2,60 ManagerType : iLO 4 IP : xxx.xxx.xxx.xxx Hostname : somehostname.xxx.yy Status : OK StatusInfo :

PS D:\Scripts\ilo> Get-HPEiLOSSLCertificateInfo -Connection $ilo

IP Hostname Status StatusInfo '-- -------- ------ ---------- xxx.xxx.xxx.xxx somehostname.xxx.yy ERROR HPE.iLO.Response.StatusInfo

PS D:\Scripts\ilo> (Get-HPEiLOSSLCertificateInfo -Connection $ilo).statusinfo

Category Message AffectedAttribute '-------- ------- ----------------- FeatureSupportability Feature not supported. {}

PS D:\Scripts\ilo> Start-HPEiLOCertificateSigningRequest -Connection $ilo -State $State -Country $Country -City $City -Organization $Organization -OrganizationalUnit $OrganizationalUnit -CommonName somehostname.xxx.yy

IP Hostname Status StatusInfo '-- -------- ------ ---------- xxx.xxx.xxx.xxx somehostname.xxx.yy ERROR HPE.iLO.Response.StatusInfo

PS D:\Scripts\ilo> (Get-HPEiLOSSLCertificateInfo -Connection $ilo).statusinfo

Category Message AffectedAttribute '-------- ------- ----------------- FeatureSupportability Feature not supported. {}

Thanks, Torbjörn

hp-powershell commented 6 years ago

This issue is fixed in latest release of iLO i.e., 2.1.0.0 version. Please upgrade and check the issue again.

CermakPOI commented 3 years ago

I have this same issue with : FirmwareDate : Apr 28 2021 FirmwareVersion : 2,78 ManagerType : iLO 4

and

Version Name


3.1.0.1 HPEiLOCmdlets