- Community Home
- >
- Software
- >
- HPE OneView
- >
- Re: Update Enclosure Groups (configuration scripts...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- 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
- 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
- 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
- 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