<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OneView Powershell Custom Report Available Fields in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/oneview-powershell-custom-report-available-fields/m-p/7117355#M5948</link>
    <description>&lt;P&gt;I'm attempting to create a custom report from oneview using the powershell library, but it would appear that not all the information I'm looking to collect is available from Get-OVServer. Specifically a rakcmount server's location. In oneview it has a location listed as (for example) Rack_01-02, however that property and that value don't appear to be grabbed with Get-OVServer. When i run "Get-OVServer -ServerName [SERVERNAME] | Format-List" I get the following items:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;type :&lt;BR /&gt;name :&lt;BR /&gt;serverName :&lt;BR /&gt;state :&lt;BR /&gt;stateReason :&lt;BR /&gt;assetTag :&lt;BR /&gt;capabilities :&lt;BR /&gt;category :&lt;BR /&gt;created :&lt;BR /&gt;description :&lt;BR /&gt;eTag :&lt;BR /&gt;formFactor :&lt;BR /&gt;generation :&lt;BR /&gt;hostOsType :&lt;BR /&gt;imlMode :&lt;BR /&gt;intelligentProvisioningVersion :&lt;BR /&gt;licensingIntent :&lt;BR /&gt;locationUri :&lt;BR /&gt;maintenanceMode :&lt;BR /&gt;memoryMb :&lt;BR /&gt;migrationState :&lt;BR /&gt;model :&lt;BR /&gt;modified :&lt;BR /&gt;mpFirmwareVersion :&lt;BR /&gt;mpHostInfo :&lt;BR /&gt;mpLicenseType :&lt;BR /&gt;mpModel :&lt;BR /&gt;mpState :&lt;BR /&gt;oneTimeBoot :&lt;BR /&gt;operatingSystem :&lt;BR /&gt;partNumber :&lt;BR /&gt;physicalServerHardwareUri :&lt;BR /&gt;platform :&lt;BR /&gt;portMap :&lt;BR /&gt;position :&lt;BR /&gt;powerLock :&lt;BR /&gt;powerState :&lt;BR /&gt;processorCoreCount :&lt;BR /&gt;processorCount :&lt;BR /&gt;processorSpeedMhz :&lt;BR /&gt;processorType :&lt;BR /&gt;refreshState :&lt;BR /&gt;remoteSupportSettings :&lt;BR /&gt;remoteSupportUri :&lt;BR /&gt;romVersion :&lt;BR /&gt;scopesUri :&lt;BR /&gt;serialNumber :&lt;BR /&gt;serverFirmwareInventoryUri :&lt;BR /&gt;serverGroupUri :&lt;BR /&gt;serverHardwareTypeUri :&lt;BR /&gt;serverProfileUri :&lt;BR /&gt;serverSettings :&lt;BR /&gt;shortModel :&lt;BR /&gt;signature :&lt;BR /&gt;status :&lt;BR /&gt;subResources :&lt;BR /&gt;supportDataCollectionState :&lt;BR /&gt;supportDataCollectionType :&lt;BR /&gt;supportDataCollectionsUri :&lt;BR /&gt;supportState :&lt;BR /&gt;supportTestEventState :&lt;BR /&gt;uidState :&lt;BR /&gt;uri :&lt;BR /&gt;uuid :&lt;BR /&gt;virtualSerialNumber :&lt;BR /&gt;virtualUuid :&lt;BR /&gt;ApplianceConnection :&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is there a way to get the Rack name that Oneview has through Get-OVServer?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 18:22:53 GMT</pubDate>
    <dc:creator>alfo</dc:creator>
    <dc:date>2021-01-14T18:22:53Z</dc:date>
    <item>
      <title>OneView Powershell Custom Report Available Fields</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-powershell-custom-report-available-fields/m-p/7117355#M5948</link>
      <description>&lt;P&gt;I'm attempting to create a custom report from oneview using the powershell library, but it would appear that not all the information I'm looking to collect is available from Get-OVServer. Specifically a rakcmount server's location. In oneview it has a location listed as (for example) Rack_01-02, however that property and that value don't appear to be grabbed with Get-OVServer. When i run "Get-OVServer -ServerName [SERVERNAME] | Format-List" I get the following items:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;type :&lt;BR /&gt;name :&lt;BR /&gt;serverName :&lt;BR /&gt;state :&lt;BR /&gt;stateReason :&lt;BR /&gt;assetTag :&lt;BR /&gt;capabilities :&lt;BR /&gt;category :&lt;BR /&gt;created :&lt;BR /&gt;description :&lt;BR /&gt;eTag :&lt;BR /&gt;formFactor :&lt;BR /&gt;generation :&lt;BR /&gt;hostOsType :&lt;BR /&gt;imlMode :&lt;BR /&gt;intelligentProvisioningVersion :&lt;BR /&gt;licensingIntent :&lt;BR /&gt;locationUri :&lt;BR /&gt;maintenanceMode :&lt;BR /&gt;memoryMb :&lt;BR /&gt;migrationState :&lt;BR /&gt;model :&lt;BR /&gt;modified :&lt;BR /&gt;mpFirmwareVersion :&lt;BR /&gt;mpHostInfo :&lt;BR /&gt;mpLicenseType :&lt;BR /&gt;mpModel :&lt;BR /&gt;mpState :&lt;BR /&gt;oneTimeBoot :&lt;BR /&gt;operatingSystem :&lt;BR /&gt;partNumber :&lt;BR /&gt;physicalServerHardwareUri :&lt;BR /&gt;platform :&lt;BR /&gt;portMap :&lt;BR /&gt;position :&lt;BR /&gt;powerLock :&lt;BR /&gt;powerState :&lt;BR /&gt;processorCoreCount :&lt;BR /&gt;processorCount :&lt;BR /&gt;processorSpeedMhz :&lt;BR /&gt;processorType :&lt;BR /&gt;refreshState :&lt;BR /&gt;remoteSupportSettings :&lt;BR /&gt;remoteSupportUri :&lt;BR /&gt;romVersion :&lt;BR /&gt;scopesUri :&lt;BR /&gt;serialNumber :&lt;BR /&gt;serverFirmwareInventoryUri :&lt;BR /&gt;serverGroupUri :&lt;BR /&gt;serverHardwareTypeUri :&lt;BR /&gt;serverProfileUri :&lt;BR /&gt;serverSettings :&lt;BR /&gt;shortModel :&lt;BR /&gt;signature :&lt;BR /&gt;status :&lt;BR /&gt;subResources :&lt;BR /&gt;supportDataCollectionState :&lt;BR /&gt;supportDataCollectionType :&lt;BR /&gt;supportDataCollectionsUri :&lt;BR /&gt;supportState :&lt;BR /&gt;supportTestEventState :&lt;BR /&gt;uidState :&lt;BR /&gt;uri :&lt;BR /&gt;uuid :&lt;BR /&gt;virtualSerialNumber :&lt;BR /&gt;virtualUuid :&lt;BR /&gt;ApplianceConnection :&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is there a way to get the Rack name that Oneview has through Get-OVServer?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 18:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-powershell-custom-report-available-fields/m-p/7117355#M5948</guid>
      <dc:creator>alfo</dc:creator>
      <dc:date>2021-01-14T18:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: OneView Powershell Custom Report Available Fields</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-powershell-custom-report-available-fields/m-p/7117382#M5949</link>
      <description>&lt;P&gt;This information is stored in the Index, not the server hardware resource.&amp;nbsp; I have been meaning to add a custom property to the server hardware resource object for PowerShell.&amp;nbsp; For now, to get the location of a specific server, use the following:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;# Get list of servers
$Servers = Get-OVServer

# Process the list of servers
ForEach ($server in $Servers) {

    $uri = "/rest/index/associations/resources?childUri={0}&amp;amp;associationName=RACK_TO_PHYSICAL_DEVICE" -f $server.uri
    
    Try {
        
        # Try to get the location from the index for the server.
        $Location = (Send-OVRequest -Uri $uri).members[0].parentResource.name

        Write-Host "Server " $server.name " is located in " $Location " rack"
    }

    Catch {

        Write-Error $_
    
    }

}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Jan 2021 23:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-powershell-custom-report-available-fields/m-p/7117382#M5949</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2021-01-14T23:14:54Z</dc:date>
    </item>
  </channel>
</rss>

