- Community Home
- >
- Servers and Operating Systems
- >
- ProLiant
- >
- Server Management - Remote Server Management
- >
- Invoke-HPOAiLOCommand doesn't work on Powershell 5...
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP