Server Management - Remote Server Management

Re: POSH Get-HPEiLOSSLCertificateInfo ErrorMessage with iLo4

 
SOLVED
Go to solution
Marcel_D
Advisor

POSH Get-HPEiLOSSLCertificateInfo ErrorMessage with iLo4

Hi,

I need to collect the Certificate Information from my iLo's with trying this :

$connilo = Connect-HPEiLO -Address abc -Credential $credilo -DisableCertificateAuthentication

Get-HPEiLOSSLCertificateInfo -Connection $connilo

and I'm getting this Error with the iLo4's:

Get-HPEiLOSSLCertificateInfo : [abc]: Missing type map configuration or unsupported mapping.
Mapping types:
HttpCert -> SSLCertificateInfo
HPE.iLO.Communication.REST.DataEntity.HttpCert -> HPE.iLO.Response.REST.SSLCertificateInfo
At line:1 char:1
+ Get-HPEiLOSSLCertificateInfo -Connection $connilo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Get-HPEiLOSSLCertificateInfo], Exception
+ FullyQualifiedErrorId : HPE.iLO.Cmdlet.GetHPEiLOSSLCertificateInfo

It's working by polling ilo5's

iLo4-Version 2.78 or 2.77

HPEiLocmdlets: 3.1.0.0

Any suggestions,?

1 REPLY 1
Sebasbin
HPE Pro
Solution

Re: POSH Get-HPEiLOSSLCertificateInfo ErrorMessage with iLo4

Hi ,

You can try below code 

$iloConnection = Connect-HPEiLO -IP $iLOHost.IP -Username <Username> -Password <password> -DisableCertificateAuthentication

$CertDetails = Get-HPEiLOSSLCertificateInfo -Connection $iloConnection -OutputType RawResponse


In parallel you may also Explore HPE Restul API

https://hewlettpackard.github.io/python-redfish-utility/#certificate-command
https://www.hpe.com/us/en/product-catalog/detail/pip.7630408.html#


Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company

Accept or Kudo