- Community Home
- >
- Storage
- >
- Midrange and Enterprise Storage
- >
- HPE Primera Storage
- >
- Re: Problems with PSToolkit
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
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
тАО05-07-2021 03:48 AM
тАО05-07-2021 03:48 AM
Hi, I'm trying to get used to the Powershell Toolkit Wrapper for WSAPI.
All CmdLets that Get stuff work, but I'm completely unable to change or create something on my arrays. Yes, I tried another user: 3paradm and my LDAP/AD User with super rights both have the same problem: All update- und new-cmdlets return
FAILURE : While creating Host:testhost02
or
FAILURE : While Updating Host : testhost01.
or
FAILURE : While Updating Host Set: testhostset
I tried wrapping host- or host set names in "", but that does not help.
Does anybody use the PSToolkit V3 on a Primera (4.2.2)? Any ideas what's going wrong here?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2021 08:09 AM
тАО05-07-2021 08:09 AM
Re: Problems with PSToolkit
Hello Apol,
I couldn't completely get the procedure you are following. However please check if the below linked document is useful for you.
PS toolkit for Primera and 3PAR - userguide - https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=a00085686en_us
Regards,
Srinivas Bhat
If you feel this was helpful please click the KUDOS! thumb below!
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2021 10:36 PM - edited тАО05-07-2021 10:37 PM
тАО05-07-2021 10:36 PM - edited тАО05-07-2021 10:37 PM
Re: Problems with PSToolkit
Hi, thank you. But: this does not solve my problem, I already use this guide.
My procedure:
PS> Import-Module <path to pstoolkit>
PS> $connection = New-WSAPIConnection -ArrayFQDNorIPAddress <primera_ip> -SANUserName 3paradm -SANPassword <PWfor3paradm> -Arraytype primera
Cmdlet executed successfully
PS> Get-Host_WSAPI -HostName <hostname> -WsapiConnection $connection
Cmdlet executed successfully
<host-Data here>
PS> Update-Host_WSAPI -HostName <hostname> -NewName <unused_new_hostname> -WsapiConnection $connection
FAILURE : While Updating Host : MEINTESTHOST1003.
Same for ALL other cmdlets that change something. All Get-cmdlets work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2021 04:30 AM
тАО05-08-2021 04:30 AM
Re: Problems with PSToolkit
I tried creating new hosts (resulting in a POST request), editing an existing host (resulting in a PU request), addig a host to a host set and removing a host from a host set. In the WSAPI log file, there's always the same error:
05/07/2021 12:34:10 DEBUG: Running: Creation of the body hash
05/07/2021 12:34:10 DEBUG: Request: Request Invoke-3parWSAPI URL : /hosts TYPE : POST
05/07/2021 12:34:10 DEBUG: Running: Constructing header.
05/07/2021 12:34:10 DEBUG: Request: Invoke-WebRequest for Data, Request Type : POST
05/07/2021 12:34:10 DEBUG: Stop: Exception Occurs
05/07/2021 12:34:10 DEBUG: End: Show-RequestException
05/07/2021 12:34:10 INFO: FAILURE : While creating Host:<new_hostname>
05/07/2021 12:32:37 DEBUG: Running: Creation of the body hash
05/07/2021 12:32:37 DEBUG: Request: Request to Update-Host_WSAPI(Invoke-3parWSAPI).
05/07/2021 12:32:37 DEBUG: Request: Request Invoke-3parWSAPI URL : /hosts/<existing_hostname> TYPE : PUT
05/07/2021 12:32:37 DEBUG: Running: Constructing header.
05/07/2021 12:32:37 DEBUG: Request: Invoke-WebRequest for Data, Request Type : PUT
05/07/2021 12:32:37 DEBUG: Stop: Exception Occurs
05/07/2021 12:32:37 DEBUG: End: Show-RequestException
05/07/2021 12:32:37 INFO: FAILURE : Updating Host : <existing_hostname>.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2021 10:43 PM
тАО05-11-2021 10:43 PM
SolutionThis seems to be a bug in the WSAPI CmdLets of the PSToolkit 3.0 release. I downloaded latest master from the github project's site, and it works with that one. It's still called 3.0 (Get-Module says so).
Still broken in this version for WSAPI CmdLets:
Descriptors of existing hosts can't be changed (comment and os)
Manual is a mess