Servers - General
cancel
Showing results for 
Search instead for 
Did you mean: 

Connect-HPEBIOS : Failed for <IP_ADRESS>: The remote server returned an error: (400) Bad Request.

 
SOLVED
Go to solution
Moyotov
Occasional Collector

Connect-HPEBIOS : Failed for <IP_ADRESS>: The remote server returned an error: (400) Bad Request.

Hi All,

I have just install the powershell module HPEBIOSCmdlets version 2.1.0.1, When running command Connect-HPEBIOS I get the error "The remote server returned an error: (400) Bad Request", I have tried with several different
servers HP ProLiant BL460c Gen9, firmware version 2.61 and I am getting the same problem for all. I have checked all the prerequisites and all are met.

I am running out of ideas, could anyone help me out?

Connect-HPEBIOS -IP 10.26.203.8 -Username "herbalifecorp\moiseses-a" -Password "MySecretPass" -DisableCertificateAuthentication -verbose
VERBOSE: Performing the operation "Connect-HPEBIOS" on target "IP: 10.26.203.8".
VERBOSE: [Connect-HPEBIOS] Executing the cmdlets with 1 task serially.
VERBOSE: 10.26.203.8 : Checking whether the input target IP or Hostname is iLO or Windows server IP.
VERBOSE: 10.26.203.8 : Creating REST connection for target IP.
WARNING: 10.26.203.8: The host name could not be resolved in DNS.
Connect-HPEBIOS : Failed for 10.26.203.8: The remote server returned an error: (400) Bad Request.
At line:1 char:1
+ Connect-HPEBIOS -IP 10.26.203.8 -Username "herbalifecorp\moiseses-a" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ConnectionError: (:) [Connect-HPEBIOS], Exception
+ FullyQualifiedErrorId : HPE.BIOS.Cmdlet.ConnectHPEBIOS

 

4 REPLIES 4
B_Rajesh
Frequent Advisor

Re: Connect-HPEBIOS : Failed for <IP_ADRESS>: The remote server returned an error: (400) Bad R

Thank you posting the issue.

It looks like the BIOS REST API is not installed properly. To confirm can you please try to access "https://<iLO_IP_ADDRESS>/rest/v1/systems/1/bios" url using any REST clients such postman, restlet clients.

Regards
Rajesh Balakrishnan
I am a HPE Employee
B_Rajesh
Frequent Advisor

Re: Connect-HPEBIOS : Failed for <IP_ADRESS>: The remote server returned an error: (400) Bad R

Any updates on this???

Regards
Rajesh Balakrishnan
I am a HPE Employee
Moyotov
Occasional Collector
Solution

Re: Connect-HPEBIOS : Failed for <IP_ADRESS>: The remote server returned an error: (400) Bad R

Hi B_Rajesh,

Sorry for the late reply, indeed the problem was a bit silly, I was pointing to the management IP address instead to the ILO IP address.

Connect-HPEiLO $ILOIP -Credential $Cred -DisableCertificateAuthentication

Now using ILO adrress works as champ!

B_Rajesh
Frequent Advisor

Re: Connect-HPEBIOS : Failed for <IP_ADRESS>: The remote server returned an error: (400) Bad R

Thank you

Happy scripting:)

Regards
Rajesh Balakrishnan
I am a HPE Employee