- Community Home
- >
- Software
- >
- HPE OneView
- >
- Re: Add server with multiple scopes using PowerShe...
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
тАО12-11-2019 11:50 AM - edited тАО12-11-2019 11:52 AM
тАО12-11-2019 11:50 AM - edited тАО12-11-2019 11:52 AM
OK to post OneView PowerShell questions in this forum? If so, here is my question:
Is it possible to specify multiple scopes when using Add-HPOVServer? The Help says it is an "array" but when I try to specify multiple scopes it fails. When I try just one scope, it works fine.
In our environment, we have one scope for All Windows servers - so that the team that supports WIndows servers can SEE and MANAGE those devices. Then we have one or more additional scopes just for alerts. So if a server is in the "Jonny's Servers" scope, only Jonny will get the email alerts for those servers. So thus a server could be in two different scopes.
I have tried this:
Add-HPOVServer -ApplianceConnection $Conn -Hostname "SERVERILO" -Credential $ILOCred -Scope $Scope1, $Scope2 -Monitored:$true
and also creating an array of scopes, using the Get-HPOVScope cmdlet and a WHERE-OBJECT clause:
Add-HPOVServer -ApplianceConnection $Conn -Hostname "SERVERILO" -Credential $ILOCred -Scope $Scopes -Monitored:$true
But both attempts fails. It seems like it will only accept a single scope, not an array. The help says this (which you can see mentions array):
-Scope [<Array>]
Provide an array of <HPOneView.Appliance.ScopeResource> Scope resource(s) to initially add.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
Any suggestions on what I am doing wrong?
Thanks
NK
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2019 01:44 PM
тАО12-11-2019 01:44 PM
SolutionThis is a bug. You already submitted an issue to the tracker. So please continue this discussion over there.
I am an HPE employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2019 02:35 PM
тАО12-11-2019 02:35 PM
Re: Add server with multiple scopes using PowerShell
Apologies - I discovered the GitHub repo after posting on this forum.
Thanks for the help so far.