- Community Home
- >
- Software
- >
- HPE OneView
- >
- connect-HPRest returns a 404 not found response
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
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
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
02-27-2018 05:42 AM
02-27-2018 05:42 AM
I am attempting to utilize the HPRestCmdlets version 1.2.0.0 to attached to a 4.0 version of HPOneView. I have installed the cmdlets on a Windows 2008R2 64 machine and have installed the Powershell 5.1 wmf package. I have also installed ARC for Chrome to allow me to make rest calls from the browser. The ARC for chrome connects just fine and returns information as I would expect, so I know that my target, credentials and privileges are ok, but when I try to connect with the connect-HPRest it fails with the 404 error. Any direction would be appreciated. Command being used and output below:
Ps> connect-hprest -address MyMachineName -username MyUsername -password MyPassword -Timeout 60
Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
At C:\hprestcmdlets\1.2.0.0\HPRESTCmdlets.psm1:2014 char:13
+ throw $msg
+ ~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Exception calli...04) Not Found.":String) [], RuntimeException
+ FullyQualifiedErrorId : Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not F
ound."
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2018 10:19 AM - last edited on 06-24-2021 07:19 AM by Ramya_Heera
02-27-2018 10:19 AM - last edited on 06-24-2021 07:19 AM by Ramya_Heera
SolutionThat is because the HPRestCmdlets are for HPE ProLiant iLO 4 and newer, not HPE OneView. You'll instead need the HPE OneView PowerShell library, which is available on PowerShell Gallery or its project home. Pease know to install from one of those locations, not both, and the PowerShell Gallery has a dependency defect which will cause the Import-Module to fail. Run the following to avoid it, or wait for the next release of the 4.00 library that I'm currently working on publishing.
Install-Module FormatPX
I am an HPE employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2018 10:30 AM
02-27-2018 10:30 AM
Re: connect-HPRest returns a 404 not found response
thank you sir, that did the trick!