Converged Data Center Infrastructure
Showing results for 
Search instead for 
Do you mean 

Putting PowerShell and Python to work automating and extending HP OneView

tammie_aron ‎02-25-2014 11:23 AM - edited ‎09-30-2015 07:01 AM

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.




0 Kudos
About the Author


Greetings! I am on the HP Enterprise Group marketing team focused on small and midsize businesses.

on ‎03-02-2014 05:29 PM

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.




Jeffrey Snover[MSFT]

Distinguished Engineer and Lead Architect for Windows Server and System Center

Bryan Jacquot_3
on ‎03-11-2014 12: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!



27 Feb - 2 March 2017
Barcelona | Fira Gran Via
Mobile World Congress 2017
Hewlett Packard Enterprise at Mobile World Congress 2017, Barcelona | Fira Gran Via Location: Hall 3, Booth 3E11
Read more
Each Month in 2017
Software Expert Days - 2017
Join us online to talk directly with our Software experts during online Expert Days. Find information here about past, current, and upcoming Expert Da...
Read more
View all