HPE Storage Users Group

A Storage Administrator Community




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: 3PAR WSAPI examples?
PostPosted: Mon Jan 30, 2017 4:36 am 

Joined: Wed May 07, 2014 1:51 am
Posts: 267
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.

_________________
When all else fails, read the instructions.


Top
 Profile  
Reply with quote  
 Post subject: Re: 3PAR WSAPI examples?
PostPosted: Mon Jan 30, 2017 2:50 pm 

Joined: Sun Dec 21, 2014 3:05 pm
Posts: 72
I use it for reporting.

I took the perlite example and wrote a powershell script thyat followed the example.


Top
 Profile  
Reply with quote  
 Post subject: Re: 3PAR WSAPI examples?
PostPosted: Wed Feb 01, 2017 7:09 am 

Joined: Wed May 07, 2014 1:51 am
Posts: 267
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 :x

_________________
When all else fails, read the instructions.


Top
 Profile  
Reply with quote  
 Post subject: Re: 3PAR WSAPI examples?
PostPosted: Wed Feb 01, 2017 9:16 am 

Joined: Mon Feb 03, 2014 9:40 am
Posts: 116
Take a look at my Powershell example
http://blog.gptnet.net/?p=304


Top
 Profile  
Reply with quote  
 Post subject: Re: 3PAR WSAPI examples?
PostPosted: Thu Feb 02, 2017 1:52 am 

Joined: Wed May 07, 2014 1:51 am
Posts: 267
nsnidanko, thank you very much. This is exactly what I was looking for!

_________________
When all else fails, read the instructions.


Top
 Profile  
Reply with quote  
 Post subject: Re: 3PAR WSAPI examples?
PostPosted: Thu Feb 23, 2017 10:15 am 

Joined: Thu Feb 23, 2017 10:12 am
Posts: 1
I'm new around here, so maybe this is silly.

Buy y'all know about this?

https://github.com/hpe-storage/python-3parclient


Top
 Profile  
Reply with quote  
 Post subject: Re: 3PAR WSAPI examples?
PostPosted: Fri Feb 24, 2017 1:33 am 

Joined: Wed May 07, 2014 1:51 am
Posts: 267
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | DVGFX2 by: Matt