Servers - General
1820645 Members
1999 Online
109626 Solutions
New Discussion

Re: Query: Scripting Tools for Windows PowerShell: iLO cmdlets - Error Connection and Time

 
MarioE
Trusted Contributor

Scripting Tools for Windows PowerShell: iLO cmdlets - Error Connection and Timeout

I have installed the HPEiLOCmdlets version 4.3.0.0. 

When I now want to make a connection to an iLO, I get a timeout error.
Likewise, when I make a Find-HPEiLO, I get a timeout. However, when I open the URL in the browser, I get all the information from the iLO:

---

> $ILOname = "x.x.x.x"
> $Creds = Get-Credential

Cmdlet Get-Credential an der Befehlspipelineposition 1
Geben Sie Werte für die folgenden Parameter an:
Credential
> $connection = Connect-HPEiLO -Address $ILOname -Credential $Creds -DisableCertificateAuthentication:$true -Timeout 60 -Verbose
AUSFÜHRLICH: Ausführen des Vorgangs "Connect-HPEiLO" für das Ziel "Address: x.x.x.x".
AUSFÜHRLICH: Executing the cmdlets with 1 task serially.
Connect-HPEiLO : [x.x.x.x] : Timeout für Vorgang überschritten
In Zeile:1 Zeichen:15
+ ... onnection = Connect-HPEiLO -Address $ILOname -Credential $Creds -Disa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Connect-HPEiLO], Exception
+ FullyQualifiedErrorId : HPE.iLO.Cmdlet.Connector.ConnectHPEiLO

---

> Find-HPEiLO x.x.x.x -verbose
AUSFÜHRLICH: Ausführen des Vorgangs "Find-HPEiLO" für das Ziel "Range: x.x.x.x".
AUSFÜHRLICH: Executing the cmdlets with 1 task serially.
AUSFÜHRLICH: [Find-HPEiLO][x.x.x.x]: Getting iLO information.
AUSFÜHRLICH: [Find-HPEiLO][x.x.x.x]: URL:https://x.x.x.x/xmldata?item=All
AUSFÜHRLICH: [Find-HPEiLO][x.x.x.x]: No response from the target.

---

-> when I open the URL "https://x.x.x.x/xmldata?item=All" in the browser, I get all the information from the iLO

I am grateful for any help.

 

7 REPLIES 7
support_s
System Recommended

Query: Scripting Tools for Windows PowerShell: iLO cmdlets - Error Connection and Timeout

System recommended content:

1. HPE iLO 6 1.61 User Guide | iLO scripting and command line

2. HPE iLO 6 1.61 User Guide | Other iLO configuration tools

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".

 

Thank you for being a HPE valuable community member.


Accept or Kudo

yesheswini_s
HPE Pro

Re: Query: Scripting Tools for Windows PowerShell: iLO cmdlets - Error Connection and Time

Hi @MarioE 
Please ensure the prerequisites are met as mentioned in this guide on page number 6 and also ensure that iLO with Administrator privileges is connected while using PowerShell.



I work at HPE
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
MarioE
Trusted Contributor

Re: Query: Scripting Tools for Windows PowerShell: iLO cmdlets - Error Connection and Time

I have now found out the following.
I cannot use the iLO FQDN or iLO IP address. I have to use the Hostname (short name from the iLO), then all commands work:

> $ILOname = "<hostnameilo>"
> $cred = Get-Credential -UserName <username> -Message "Enter current standard iLO password"
> $connection = Connect-HPEiLO -Address $ILOname -Credential $cred -DisableCertificateAuthentication:$true
> $connection


IP : x.x.x.x
Hostname : <hostnameilo>
Timeout : 60
DisableCertificateAuthentication : True
TargetInfo : @{ProductName=ProLiant DL380 Gen10; ServerFamily=ProLiant; ServerGeneration=Gen10; ServerModel=DL380; iLOGeneration=iLO5; iLOFirmwareVersion=3.03;
SystemROM=U30 v3.10 (02/22/2024); ProcessorName=Intel(R) Xeon(R) Gold 6146 CPU @ 3.20GHz}
ExtendedInfo : @{UserSuppliedAddress=<hostnameilo>; HttpConnectAddress=<hostnameilo>; UserName=<username>; Modifier1=xxx;
Modifier2=xxx
ConnectionInfo : @{Redfish=}

If I use the FQDN of the iLO or the iLO IP address, I get an error.

 

 

yesheswini_s
HPE Pro

Re: Query: Scripting Tools for Windows PowerShell: iLO cmdlets - Error Connection and Time

Hi @MarioE,
Please try this command to use the iLO IP address
$connection = Connect-HPEiLO -IP <IP address of iLO> -Username <username of iLO> -Password <password of iLO> -DisableCertificateAuthentication -Verbose
$connection



I work at HPE
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
MarioE
Trusted Contributor

Re: Query: Scripting Tools for Windows PowerShell: iLO cmdlets - Error Connection and Time

Hi @yesheswini_s 

I get an error with the IP address:

> $connection = Connect-HPEiLO -IP <IP address of iLO> -Username <username of iLO> -Password <password of iLO> -DisableCertificateAuthentication -Verbose
AUSFÜHRLICH: Ausführen des Vorgangs "Connect-HPEiLO" für das Ziel "Address: <IP address of iLO>".
AUSFÜHRLICH: Executing the cmdlets with 1 task serially.
Connect-HPEiLO : [<IP address of iLO>] : Timeout für Vorgang überschritten
In Zeile:1 Zeichen:15
+ ... onnection = Connect-HPEiLO -IP <IP address of iLO> -Username <username of iLO> -Password ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Connect-HPEiLO], Exception
+ FullyQualifiedErrorId : HPE.iLO.Cmdlet.Connector.ConnectHPEiLO

 

If I change the IP address to the hostname of the iLO, the connection works:

> $connection = Connect-HPEiLO -IP <hostname of iLO> -Username <username of iLO> -Password <password of iLO> -DisableCertificateAuthentication -Verbose
AUSFÜHRLICH: Ausführen des Vorgangs "Connect-HPEiLO" für das Ziel "Address: <hostname of iLO>".
AUSFÜHRLICH: Executing the cmdlets with 1 task serially.
AUSFÜHRLICH: [Connect-HPEiLO][<hostname of iLO>]: XML Reply on: Reading iLO xml data
AUSFÜHRLICH: [Connect-HPEiLO][<hostname of iLO>]: iLO FirmwareVersion: iLO5 v3.03
AUSFÜHRLICH: [Connect-HPEiLO][<hostname of iLO>]: Product Name: ProLiant DL380 Gen10
AUSFÜHRLICH: [Connect-HPEiLO][<hostname of iLO>]: Creating connection for connection type(s): Redfish
AUSFÜHRLICH: [Connect-HPEiLO][<hostname of iLO>][Redfish]: Establishing connection.
AUSFÜHRLICH: [Connect-HPEiLO][<hostname of iLO>][Redfish]: Received response for create connection request.
AUSFÜHRLICH: [Connect-HPEiLO][<hostname of iLO>][Redfish]: Connection established.
AUSFÜHRLICH: [Connect-HPEiLO][<hostname of iLO>]: Connection established for connection type(s): Redfish

> $connection


IP : <IP address of iLO>
Hostname : <hostname of iLO>
Timeout : 60
DisableCertificateAuthentication : True
TargetInfo : @{ProductName=ProLiant DL380 Gen10; ServerFamily=ProLiant; ServerGeneration=Gen10; ServerModel=DL380; iLOGeneration=iLO5; iLOFirmwareVersion=3.03; SystemROM=U30 v3.10 (02/22/2024); ProcessorName=Intel(R) Xeon(R) Gold 6146 CPU @
3.20GHz}
ExtendedInfo : @{UserSuppliedAddress=<hostname of iLO>; HttpConnectAddress=<hostname of iLO>; UserName= <username of iLO>; Modifier1=xxx; Modifier2=xxx}
ConnectionInfo : @{Redfish=}

yesheswini_s
HPE Pro

Re: Query: Scripting Tools for Windows PowerShell: iLO cmdlets - Error Connection and Time

Hi @MarioE ,

This command worked for me when I used the iLO IP address with administrator privileges



I work at HPE
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
support_s
System Recommended

Query: Scripting Tools for Windows PowerShell: iLO cmdlets - Error Connection and Timeout

Hello,

 

Let us know if you were able to resolve the issue.

 

If you have no further query, and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".

 

Thank you for being a HPE valuable community member.


Accept or Kudo