HPE Storage Users Group

A Storage Administrator Community




Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Suggest A Scripting Language for 3PAR.
PostPosted: Wed Jan 13, 2016 10:10 am 

Joined: Wed Jan 13, 2016 10:02 am
Posts: 1
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Suggest A Scripting Language for 3PAR.
PostPosted: Wed Jan 20, 2016 7:23 am 

Joined: Sun Jul 29, 2012 9:30 am
Posts: 576
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Suggest A Scripting Language for 3PAR.
PostPosted: Sun Feb 07, 2016 5:50 am 

Joined: Fri Jun 27, 2014 2:01 am
Posts: 390
TCL is native 3PAR language, so use TCL ^^


Top
 Profile  
Reply with quote  
 Post subject: Re: Suggest A Scripting Language for 3PAR.
PostPosted: Thu Dec 07, 2017 9:08 pm 

Joined: Thu Dec 07, 2017 8:58 pm
Posts: 1
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Suggest A Scripting Language for 3PAR.
PostPosted: Wed Jun 13, 2018 7:33 am 

Joined: Thu Feb 22, 2018 4:51 am
Posts: 1
You can definitely use Python, use Paramiko to SSH into the 3PAR and execute the commands.
It works pretty nicely!


Top
 Profile  
Reply with quote  
 Post subject: Re: Suggest A Scripting Language for 3PAR.
PostPosted: Sat Aug 04, 2018 12:19 pm 

Joined: Sat Aug 04, 2018 12:10 pm
Posts: 1
Has someone replied you appropriately? Have you found the most adequate solution? Let me know if so.

_________________
conflict resolution paper


Top
 Profile  
Reply with quote  
 Post subject: Re: Suggest A Scripting Language for 3PAR.
PostPosted: Mon Aug 06, 2018 8:30 am 

Joined: Tue Sep 11, 2012 1:58 am
Posts: 17
Location: Mechelen, Belgium
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Suggest A Scripting Language for 3PAR.
PostPosted: Thu Aug 16, 2018 11:44 pm 
Site Admin
User avatar

Joined: Tue Aug 18, 2009 10:35 pm
Posts: 1328
Location: Dallas, Texas
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Suggest A Scripting Language for 3PAR.
PostPosted: Fri Aug 17, 2018 2:30 am 

Joined: Tue Sep 11, 2012 1:58 am
Posts: 17
Location: Mechelen, Belgium
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)


Top
 Profile  
Reply with quote  
 Post subject: Re: Suggest A Scripting Language for 3PAR.
PostPosted: Wed Jan 29, 2020 5:04 pm 

Joined: Mon Nov 06, 2017 12:53 pm
Posts: 13
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 6 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