Suggest A Scripting Language for 3PAR.
Suggest A Scripting Language for 3PAR.
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
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.
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.
-
- Posts: 390
- Joined: Fri Jun 27, 2014 2:01 am
Re: Suggest A Scripting Language for 3PAR.
TCL is native 3PAR language, so use TCL ^^
Re: Suggest A Scripting Language for 3PAR.
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.
-
- Posts: 1
- Joined: Thu Feb 22, 2018 4:51 am
Re: Suggest A Scripting Language for 3PAR.
You can definitely use Python, use Paramiko to SSH into the 3PAR and execute the commands.
It works pretty nicely!
It works pretty nicely!
-
- Posts: 1
- Joined: Sat Aug 04, 2018 12:10 pm
Re: Suggest A Scripting Language for 3PAR.
Has someone replied you appropriately? Have you found the most adequate solution? Let me know if so.
Re: Suggest A Scripting Language for 3PAR.
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.
If you're not already proficient in a(ny) scripting language (python or perl or powershell or ...), I would start there and learn one.
- Richard Siemers
- Site Admin
- Posts: 1333
- Joined: Tue Aug 18, 2009 10:35 pm
- Location: Dallas, Texas
Re: Suggest A Scripting Language for 3PAR.
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.
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.
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
Re: Suggest A Scripting Language for 3PAR.
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.
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.
There are some configs you can't change from the CLI or WSAPI, for example setting login banners or installing ssh keys.