Suggest A Scripting Language for 3PAR.

pmu
Posts: 1
Joined: Wed Jan 13, 2016 10:02 am

Suggest A Scripting Language for 3PAR.

Post by pmu »

Hi,

I recently started working on 3par. While I'm still getting used to the various terminologies, I feel it's better to keep an eye for scripting/automation.

Would Perl or Python be better? There appears to be a Python Module as well as a PowerShell module...anyone can suggest which would be a better one?

Regards,
pmu
hdtvguy
Posts: 576
Joined: Sun Jul 29, 2012 9:30 am

Re: Suggest A Scripting Language for 3PAR.

Post by hdtvguy »

I guess that depends on what kind of shop you are, if you are mostly Windows admins then Powershell would likely be best, if Linux then probably perl. The 3par Powershell kit is very weak, but you can just write powershell to call CLI commands, that is what I have been doing since before the Powershell kit was out, I also have some simple just windows batch scripts.
RitonLaBevue
Posts: 390
Joined: Fri Jun 27, 2014 2:01 am

Re: Suggest A Scripting Language for 3PAR.

Post by RitonLaBevue »

TCL is native 3PAR language, so use TCL ^^
Agiker
Posts: 1
Joined: Thu Dec 07, 2017 8:58 pm

Re: Suggest A Scripting Language for 3PAR.

Post by Agiker »

Trying to find a suitable scripting language for 3par . Need to get some show command output to excel. We are having an all windows environment. Checking on powershell , but it has different command set for 3par as part of the HPE 3par powershell kit. Can we just write powershell to just call usual 3par CLI commands as well (Like we do normally do while SSH into 3par ). Or Python can be used to call 3par CLI commands. Python also has HPE3parclient package which again shows different 3par command set.
yashgupta9696
Posts: 1
Joined: Thu Feb 22, 2018 4:51 am

Re: Suggest A Scripting Language for 3PAR.

Post by yashgupta9696 »

You can definitely use Python, use Paramiko to SSH into the 3PAR and execute the commands.
It works pretty nicely!
robertjohnson
Posts: 1
Joined: Sat Aug 04, 2018 12:10 pm

Re: Suggest A Scripting Language for 3PAR.

Post by robertjohnson »

Has someone replied you appropriately? Have you found the most adequate solution? Let me know if so.
nicDM77
Posts: 17
Joined: Tue Sep 11, 2012 1:58 am
Location: Mechelen, Belgium

Re: Suggest A Scripting Language for 3PAR.

Post by nicDM77 »

Use whatever scripting language you're comfortable with, in combination with either the 3PAR API or parse commands over ssh.

If you're not already proficient in a(ny) scripting language (python or perl or powershell or ...), I would start there and learn one.
User avatar
Richard Siemers
Site Admin
Posts: 1333
Joined: Tue Aug 18, 2009 10:35 pm
Location: Dallas, Texas

Re: Suggest A Scripting Language for 3PAR.

Post by Richard Siemers »

There is a powershell toolkit for 3PAR, but requires a opensource SSH module to be added to your powershell as well. This should be the best solution for someone who knows powershell already.

If you know something else instead, like Python, Perl, Bash, etc... any thing that can script ssh commands will get the job done.
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
nicDM77
Posts: 17
Joined: Tue Sep 11, 2012 1:58 am
Location: Mechelen, Belgium

Re: Suggest A Scripting Language for 3PAR.

Post by nicDM77 »

Richard Siemers wrote:any thing that can script ssh commands will get the job done.

or, of course, is able to talk to the 3PAR api (curl, python-3parclient, etc)
msarro
Posts: 13
Joined: Mon Nov 06, 2017 12:53 pm

Re: Suggest A Scripting Language for 3PAR.

Post by msarro »

I have used ansible for almost all 3par configs. Specifically I do this using the raw module.

There are some configs you can't change from the CLI or WSAPI, for example setting login banners or installing ssh keys.
Post Reply