- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Remote Server Management
- >
- Invoke-HPOAiLOCommand doesn't work on Powershell 5...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2018 07:01 AM
тАО01-26-2018 07:01 AM
Hello,
if I run for example these poweshell commands under powershel 5.1:
1) $Credential = Get-Credential Administrator
2) $con = Connect-HPOA -OA 15.116.26.253 -Credential $Credential
3) $us = Get-HPiLODefaultLanguage -Server 15.116.26.253 -Username "" -Password "" -DisableCertificateAuthentication -OutputType ExternalCommand
4) $con | Invoke-HPOAiLOCommand -iLOCommand $us -Bay 1
I get this output::
Exception calling "Get" with "1" argument(s): "Index was outside the bounds of the array."
The output is correct after downgrading powershell to version 5.0 on my PC
BAY : 1
IP : xxx.xxx.xxx.xxx
HOSTNAME : something.com
STATUS_TYPE : OK
STATUS_MESSAGE : OK
LANG_ID : en
LANGUAGE : English
Unfortunately, the customer does not want to make downgade powershell and command Invoke-HPOAiLOCommand is unusable.
Any advice?
Thanks
Jan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2018 08:30 PM
тАО01-28-2018 08:30 PM
Re: Invoke-HPOAiLOCommand doesn't work on Powershell 5.1
Hi Jan,
I tried your commands in my lab which has PS 5.1 installed but i could not reproduce the issue.
Its working for me.
Can i know which version of iLO cmdlets are you using ? If anything less than 1.5 then please upgrade to 1.5 as it has some bug fixes in this area.
Also provide me the $PSVersionTable value from your PS console. Try with any other iLO cmdlet in the same flow and check if its giving same behavior.
Thanks,
Gokul
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2018 05:59 AM
тАО01-30-2018 05:59 AM
Re: Invoke-HPOAiLOCommand doesn't work on Powershell 5.1
Hi Gokul,
There is $PSVersionTable output.
Name Value
---- -----
PSVersion 5.1.14409.1012
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1012
CLRVersion 4.0.30319.36399
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
HPiLOCmdlets: 1.4.0.1
HPOACmdlets: 1.1.0.7
I'll be at the customer next week. I will upgrade HPiLOCmdlets to 1.5.0.0 version, and let you know the result.
Thanks a lot for advice and testing.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2018 09:26 PM
тАО01-30-2018 09:26 PM
SolutionHi Jan,
That explains you have older version of iLO cmdlets but the fix is available in latest version 1.5.
After issue gets resolved please update community about same so that others can be benfiited.
Thanks,
Gokul
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2018 06:48 AM
тАО02-05-2018 06:48 AM
Re: Invoke-HPOAiLOCommand doesn't work on Powershell 5.1
Hi Gokul,
upgrade hpilocmdlets to version 1.5.0.0 has resolved my problem. Thank you very much.
Jan