Page 1 of 2
Suggest A Scripting Language for 3PAR.
Posted: Wed Jan 13, 2016 10:10 am
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
Re: Suggest A Scripting Language for 3PAR.
Posted: Wed Jan 20, 2016 7:23 am
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.
Re: Suggest A Scripting Language for 3PAR.
Posted: Sun Feb 07, 2016 5:50 am
by RitonLaBevue
TCL is native 3PAR language, so use TCL ^^
Re: Suggest A Scripting Language for 3PAR.
Posted: Thu Dec 07, 2017 9:08 pm
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.
Re: Suggest A Scripting Language for 3PAR.
Posted: Wed Jun 13, 2018 7:33 am
by yashgupta9696
You can definitely use Python, use Paramiko to SSH into the 3PAR and execute the commands.
It works pretty nicely!
Re: Suggest A Scripting Language for 3PAR.
Posted: Sat Aug 04, 2018 12:19 pm
by robertjohnson
Has someone replied you appropriately? Have you found the most adequate solution? Let me know if so.
Re: Suggest A Scripting Language for 3PAR.
Posted: Mon Aug 06, 2018 8:30 am
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.
Re: Suggest A Scripting Language for 3PAR.
Posted: Thu Aug 16, 2018 11:44 pm
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.
Re: Suggest A Scripting Language for 3PAR.
Posted: Fri Aug 17, 2018 2:30 am
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)
Re: Suggest A Scripting Language for 3PAR.
Posted: Wed Jan 29, 2020 5:04 pm
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.