Hi everybody,
when scripting 3PAR-stuff, we so far simply call cli.exe with appropriate switches.
I was wondering: Does anybody use wsapi for day to day scripting, and could perhaps share a basic script showing the usage?
The HPE 3PAR Web Services API 1.5 Developer’s Guide contains stuff like "Because 3PAR CLI scripts need to process CLI-generated text, Hewlett Packard Enterprise recommends using WSAPI to automate tasks.", but provides just Java and Perl-examples.
3PAR WSAPI examples?
3PAR WSAPI examples?
When all else fails, read the instructions.
-
- Posts: 72
- Joined: Sun Dec 21, 2014 3:05 pm
Re: 3PAR WSAPI examples?
I use it for reporting.
I took the perlite example and wrote a powershell script thyat followed the example.
I took the perlite example and wrote a powershell script thyat followed the example.
Re: 3PAR WSAPI examples?
I tried the same, but failed when translating curl - parameters to the appropriate Invoke-Webrequest - parameters...
I keep getting an "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS", because I don't know what -k is in powershell
I keep getting an "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS", because I don't know what -k is in powershell
When all else fails, read the instructions.
Re: 3PAR WSAPI examples?
Take a look at my Powershell example
http://blog.gptnet.net/?p=304
http://blog.gptnet.net/?p=304
Re: 3PAR WSAPI examples?
nsnidanko, thank you very much. This is exactly what I was looking for!
When all else fails, read the instructions.
Re: 3PAR WSAPI examples?
I'm new around here, so maybe this is silly.
Buy y'all know about this?
https://github.com/hpe-storage/python-3parclient
Buy y'all know about this?
https://github.com/hpe-storage/python-3parclient
Re: 3PAR WSAPI examples?
I know it's around, but we use powershell. Our management environment is windows only, and ps is "just there".
When all else fails, read the instructions.