- Community Home
- >
- Software
- >
- HPE OneView
- >
- Update Enclosure Groups (configuration scripts) vi...
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-01-2018 06:25 AM
06-01-2018 06:25 AM
I'm looking for a way to "mass update" the configuration scripts of existing Enclosure Groups.
As there seems to be no Update- or Set-HPOVEnclosureGroup Commandlet I'm stuck with manually updating these scripts using the Web UI.
This is somewhat tiresome if you have multiple OneView instances with multple Enclsoure Groups each.
Any suggestions?
Thanks for your support!
Daniel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-01-2018 10:57 AM
06-01-2018 10:57 AM
SolutionIn order to update the Configuration Script in an Enclosure Group, you will need to do the following:
# Get the Enclosure Group $EnclosureGroup = Get-HPOVEnclosureGroup -Name MyEg -ErrorAction Stop # Define the new c-Class OA Configuration Script $NewConfigurationScript = '# This is my updated OA config script # with multiple lines' # Save the configuration script $results = Send-HPOVRequest -Uri ($EnclosureGroup.uri + '/script') -Method PUT -Body $NewConfigurationScript # Update associated Logical Enclosures Get-HPOVLogicalEnclosure | Where-Object { $_.state -ne 'Consisent' } | Update-HPOVLogicalEnclosure -UpdateFromGroup
If you go to the HPE OneView PowerShell Github project, please open an issue for this, as I can then look at enhancing the library to support this workflow in a future release. Please do include the version of the library you are using.
I am an HPE employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-03-2018 11:18 PM
06-03-2018 11:18 PM
Re: Update Enclosure Groups (configuration scripts) via PowerShell
Hello Chris,
thanks for your reply and great support.
I've opened a new issue for this: Enhancement request: Update Enclosure Group configuration scripts #341
Regards,
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-04-2018 10:03 AM
06-04-2018 10:03 AM
Re: Update Enclosure Groups (configuration scripts) via PowerShell
Yes, I see the issue on the tracker.
I am an HPE employee
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP