Eye on Blades Blog: Trends in Infrastructure
Get HP BladeSystem news, upcoming event information, technology trends, and product information to stay up to date with what is happening in the world of blades.

Putting PowerShell and Python to work automating and extending HP OneView

Guest blog by Bryan Jacquot, Chief Technologist, HP Converged Systems

 


bryan.jpgI’m a big believer in the power of collaboration, which is why I’m excited to tell you about the recently launched HP OneView online community.  You can use this forum to collaborate on a wide range of HP OneView topics.  In addition, we have recently released both PowerShell and Python language bindings that extend and automate HP OneView. Such scripts can greatly increase data center efficiency. As a concrete example, a financial services company has written PowerShell scripts that reduce the time it takes to fully configure and deploy racks of blade servers and storage across 12 datacenters from 66 days to 1.

 

You can use PowerShell and Python scripts to automate entire processes in HP OneView. The scripts deliver a number of advantages and the ability to:

                                                                                                                                                    

  • Extend the functionality of management applications, including those built in-house
  • Scale as your infrastructure expands, working efficiently no matter how large your data center becomes
  • Replace manual tasks with automated procedures, dramatically reducing the chance for human error and saving time and money

 

The PowerShell library for HP OneView provides a full complement of cmdlets for interacting with HP OneView in a PowerShell environment. You can access and download the open source PowerShell library from an external site, CodePlex. HP has also released a similar set of capabilities for Python, frequently used in Linux environments. Hosted on a GitHub repository, the Python library is also open source.

 

Many heads are better than one

Last week I met with lead HP ambassadors from around the world.  It was exciting to hear some of the ways that HP OneView is being extended and used.  One example clearly demonstrates the benefits that can be realized with HP OneView’s open integration platform:  A python script subscribes to critical alerts on the HP OneView State Change Message Bus.  Upon receipt of such an alert, the script automatically creates a ticket in HP Service Manager and then uses the HP OneView REST API to update the alert with the ticket number.

 

I believe this type of exploration and collaboration is an engine for innovation. The HP OneView forums on the HP Enterprise Business Center, CodePlex, and Github enable you to contribute capabilities and give feedback on your peers’ contributions. You can also post questions and discover other ways to extend and automate HP OneView.

 

Custom scripts drastically cut configuration times

It’s important to realize that a key reason we created HP OneView with its open and extensible underpinnings is to deliver business value.  The financial services firm I mentioned above achieved impressive results because of these capabilities.  They started by using the HP PowerShell libraries for HP OneView and created a simple workflow based on a custom data file for each data center.  The data file contained the unique attributes for each resource, including its name, network, and storage requirements.  It’s important to stress the workflows spanned the HP Converged Infrastructure: server, storage, and network.  The end result was a fully automated provisioning process that took less than 1 day for all 12 data centers.

 

Previously, the company would have manually performed the discreet steps in each data center.  As I’m sure you can relate, such operations that span multiple IT silos across server, storage, and networking inherently introduce organizational complexities and inefficiencies during the hands-offs between administrators.  End-to-end automation based on HP OneView was critical to the success of this project.  

 

Get started with HP OneView in your environment and see a demo. To try it for yourself, download HP OneView software free for 60 days.

 

~Bryan

 

Labels: HP OneView
Comments
Jeffrey Snover(anon) | ‎03-03-2014 01:29 AM

Howdy Bryan!

 

Sounds like great stuff.  I would love to get some feedback from yourself or your HP Ambassadors about any changes/additions we should make to PowerShell to improve the integration with OneView.  In particular, it seems like our recent Desired State Configuration (DSC) work would be a good point of integration.  You should check it out and consider writing DSC resources for the HP equipment.  I'd love to explore the area more if that is of interest.

 

Cheers!

 

Jeffrey Snover[MSFT]

Distinguished Engineer and Lead Architect for Windows Server and System Center

jacquot | ‎03-11-2014 07:44 PM

Hey Jeffrey,

 

Thanks!  I will pass along your offer to the team working on the PowerShell interfaces for HP OneView.  We will also look into the Desired State Configuration materials.  I took a quick glance and I need to dig deeper.  Part of HP OneView's core capabilities allows users to define the desired state of the resources and the software ensures they are configured/updated to match.  I'll have to think more about how DSC could effectively layer on top of that.

 

Thanks again for the feedback!

 

Bryan

Leave a Comment

We encourage you to share your comments on this post. Comments are moderated and will be reviewed
and posted as promptly as possible during regular business hours

To ensure your comment is published, be sure to follow the community guidelines.

Be sure to enter a unique name. You can't reuse a name that's already in use.
Be sure to enter a unique email address. You can't reuse an email address that's already in use.
Type the characters you see in the picture above.Type the words you hear.
Search
Showing results for 
Search instead for 
Do you mean 
About the Author
Greetings! I am on the HP Enterprise Group marketing team. Topics I am interested in include Converged Infrastructure, Converged Systems a...
Featured


Follow Us
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.