<?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 Powershell Question - Get-HPOVServer in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/powershell-question-get-hpovserver/m-p/6906693#M1299</link>
    <description>&lt;P&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1458"&gt;@ChrisLynch﻿&lt;/a&gt;&amp;nbsp;I am hoping you can chime in on this one. Earlier today I was pulling some data in regards to&amp;nbsp;my servers - Specifically a manager was interested in Proc Model/Cpu Count/Core Count. The Canned report within OneView 2.0 has the proc model, but not the CPU Count or the Core count....and I didnt want to deal with looking everything up individually.&lt;/P&gt;&lt;P&gt;So I turned to the handy PS Module you have built. I decided to use Get-HPOVServer. When I run the function by itself, the default&amp;nbsp;properties that are returned are: Name, Status, Power, Serial Number, Model, ROM, iLO, Server Profile, License.&lt;/P&gt;&lt;P&gt;This is great, almost all the info I need to pass up to my manager&amp;nbsp;- just missing the info on the Proc. So I pipe Get-HPOVServer to a Get-Member, and there I see a NoteProperty for processorType, processorCount, processorCoreCount....Perfect!&lt;/P&gt;&lt;P&gt;So I figure Ill just run&lt;/P&gt;&lt;P&gt;Get-HPOVServer | Select * | Export-Csv&lt;/P&gt;&lt;P&gt;do some filtering and pretty up the report, and be done with it. But...when I do this, I lose my&amp;nbsp;property "Server Profile" - In fact, when I go back and look at my Get-Member from earlier...I dont even see a property for the Server Profile...just serverProfileUri. I'd wanted to hang onto it since I can use our profile naming convention to easily determine some info on the server itself (esxi vs windows etc)&lt;/P&gt;&lt;P&gt;How are you pulling this property when I just run the function Get-HPOVServer by itself? I may be blindly missing it - but I can't figure out where this is coming from. I managed to combine the output from running it as is, and running it with a select *&amp;nbsp;in order to get it...but there has got to be a simple way that I am completely overlooking.&lt;/P&gt;&lt;P&gt;Or, if there is a recommendation on a smarter way of pulling this type of info I would love to hear it!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Cottoc&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2016 21:01:17 GMT</pubDate>
    <dc:creator>Cottoc</dc:creator>
    <dc:date>2016-10-11T21:01:17Z</dc:date>
    <item>
      <title>Powershell Question - Get-HPOVServer</title>
      <link>https://community.hpe.com/t5/hpe-oneview/powershell-question-get-hpovserver/m-p/6906693#M1299</link>
      <description>&lt;P&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1458"&gt;@ChrisLynch﻿&lt;/a&gt;&amp;nbsp;I am hoping you can chime in on this one. Earlier today I was pulling some data in regards to&amp;nbsp;my servers - Specifically a manager was interested in Proc Model/Cpu Count/Core Count. The Canned report within OneView 2.0 has the proc model, but not the CPU Count or the Core count....and I didnt want to deal with looking everything up individually.&lt;/P&gt;&lt;P&gt;So I turned to the handy PS Module you have built. I decided to use Get-HPOVServer. When I run the function by itself, the default&amp;nbsp;properties that are returned are: Name, Status, Power, Serial Number, Model, ROM, iLO, Server Profile, License.&lt;/P&gt;&lt;P&gt;This is great, almost all the info I need to pass up to my manager&amp;nbsp;- just missing the info on the Proc. So I pipe Get-HPOVServer to a Get-Member, and there I see a NoteProperty for processorType, processorCount, processorCoreCount....Perfect!&lt;/P&gt;&lt;P&gt;So I figure Ill just run&lt;/P&gt;&lt;P&gt;Get-HPOVServer | Select * | Export-Csv&lt;/P&gt;&lt;P&gt;do some filtering and pretty up the report, and be done with it. But...when I do this, I lose my&amp;nbsp;property "Server Profile" - In fact, when I go back and look at my Get-Member from earlier...I dont even see a property for the Server Profile...just serverProfileUri. I'd wanted to hang onto it since I can use our profile naming convention to easily determine some info on the server itself (esxi vs windows etc)&lt;/P&gt;&lt;P&gt;How are you pulling this property when I just run the function Get-HPOVServer by itself? I may be blindly missing it - but I can't figure out where this is coming from. I managed to combine the output from running it as is, and running it with a select *&amp;nbsp;in order to get it...but there has got to be a simple way that I am completely overlooking.&lt;/P&gt;&lt;P&gt;Or, if there is a recommendation on a smarter way of pulling this type of info I would love to hear it!&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Cottoc&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 21:01:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/powershell-question-get-hpovserver/m-p/6906693#M1299</guid>
      <dc:creator>Cottoc</dc:creator>
      <dc:date>2016-10-11T21:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Question - Get-HPOVServer</title>
      <link>https://community.hpe.com/t5/hpe-oneview/powershell-question-get-hpovserver/m-p/6906777#M1300</link>
      <description>&lt;P&gt;The Server Profile isn't actually a property of the Server Hardware resource object.&amp;nbsp; What is happening when you run Get-HPOVServer is a ScriptBlock is executing within the Server.format.ps1xml file (aka formats file).&amp;nbsp; The ScriptBlock is actually taking the serverProfileUri property value, passing to Send-HPOVRequest to then return the Server Profile object and only display the name property.&lt;/P&gt;&lt;P&gt;This behavior is based on the fact the library (and the REST API for that matter) only returns deflated resource objects.&amp;nbsp; Objects do have associations with each other, and they typically are in the form of a URI property; serverProfileUri in this case.&amp;nbsp; We are planning on providing a solution to this, but it will take a substantial amount of work to implement.&lt;/P&gt;&lt;P&gt;In the future, you can submit questions like this on the GitHub Issue Tracker, which isn't strictly for reporting issues.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 04:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/powershell-question-get-hpovserver/m-p/6906777#M1300</guid>
      <dc:creator>ChrisLynch</dc:creator>
      <dc:date>2021-06-29T04:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Question - Get-HPOVServer</title>
      <link>https://community.hpe.com/t5/hpe-oneview/powershell-question-get-hpovserver/m-p/6906970#M1301</link>
      <description>&lt;P&gt;Awesome - That makes perfect sense.&lt;/P&gt;&lt;P&gt;Also -&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;In the future, you can submit questions like this on the GitHub Issue Tracker, which isn't strictly for reporting issues.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks for the heads up on that - I was hesitant as I wasn't sure it was specifically and issue and more of just not understanding the inner workings of your code. Ill direct any future questions that way.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Cottoc&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 14:59:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/powershell-question-get-hpovserver/m-p/6906970#M1301</guid>
      <dc:creator>Cottoc</dc:creator>
      <dc:date>2016-10-12T14:59:19Z</dc:date>
    </item>
  </channel>
</rss>

