HPE OneView
cancel
Showing results for 
Search instead for 
Did you mean: 

finding racks in specific datacenter via powershell

 
SOLVED
Go to solution
RussF
Occasional Contributor

finding racks in specific datacenter via powershell

Our racks have been named the same in multiple datacenters.  I need a way to say something like get-hpovracj -name R1* -datacenter DC1.  This is to allow me to put a server in the correct rack via add-HPOVResourceToRack.  Can someone help out witm some sameple code or a way to accomplish this if I am using the wrong cmdlets?

Thanks

3 REPLIES 3
ChrisLynchHPE
Neighborhood Moderator
Solution

Re: finding racks in specific datacenter via powershell

The Get-HPOVRack Cmdlet does not currently support filtering based on datacenter location.  I created a new enhancement issue on the project tracker.  Can you please follow up with what version of the library you are using?

I also added a code snippet you can use to get the racks from the appliance index that are associated with a specific data center.


I am an HPE employee

Accept or Kudo

RussF
Occasional Contributor

Re: finding racks in specific datacenter via powershell

Thanks so much

I am currently using

PS Y:\> Get-HPOVVersion

OneView LibraryVersion Path
--------- -------------- ----
ApplianceVersion: 4.20.02.395878.00 4.20.2068.2204 C:\Program Files\WindowsPowerShell\Modules\HPOneView.420

but i do plan to upgrade everything to 5.0 soon.

/Russ

ChrisLynchHPE
Neighborhood Moderator

Re: finding racks in specific datacenter via powershell

I plan to add this to both the 4.20 and 5.00 library as an enhancement.


I am an HPE employee

Accept or Kudo