<?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 Re: OneView Custom Report in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7018272#M3332</link>
    <description>&lt;P&gt;&lt;SPAN&gt;HI&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1672049" target="_self"&gt;&lt;SPAN class=""&gt;Chris_L1&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; and&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1615572" target="_self"&gt;Cottoc&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Go through this thread, i still have some questions regarding:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;- How to run these scripts?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;- Where output is placed ($filePath = "\\UNC_PATH\Scheduled_Reports\OneView_Reports\"), on client you run script or on Oneview appliant?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thank you for your support&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2018 10:35:40 GMT</pubDate>
    <dc:creator>Tienna</dc:creator>
    <dc:date>2018-09-14T10:35:40Z</dc:date>
    <item>
      <title>OneView Custom Report</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7005026#M2913</link>
      <description>&lt;P&gt;Is there a way (PowerShell, etc) to run a script to get more information from OneView?&lt;/P&gt;&lt;P&gt;Our manager is looking for a report that will give the basic inventory of what we have in OV, along with physical inventory (specifically CPU and RAM) as well as CPU usage over a specific time-frame (weekly/monthly).&lt;/P&gt;&lt;P&gt;Any input is appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 18:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7005026#M2913</guid>
      <dc:creator>Chris_L1</dc:creator>
      <dc:date>2018-05-07T18:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: OneView Custom Report</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7005048#M2914</link>
      <description>&lt;P&gt;Hey Chris_L1&lt;/P&gt;&lt;P&gt;This has actually been a topic of interest for me as well recently. My management sometimes requests some reports from me, and though I try to steer them to the built in reports from OneView and the OneView Global Dashboard, they dont always like that and just want a .csv to filter through.&lt;/P&gt;&lt;P&gt;Now I havent really jumped into utilization, but I know that depending on what version OneView you are running and what version of the powershell library you have there is a show-hpovutilization cmdlet. You can apply the same principles as what I have done below to that most likely to build out your own reports.&lt;/P&gt;&lt;P&gt;I will disclaimer this with:&lt;/P&gt;&lt;P&gt;-this is all just fiddling around, and there are most likely 'cleaner' ways of pulling some of this information, I am just using this as an excuse to get a little better with my own powershell skills. I would love to hear if someone else can piggy back on some of the stuff I am doing and make it better!&lt;/P&gt;&lt;P&gt;Additional, I am running 3 instances of OneView 3.10.08 and I run these reports using the Powershell Library release Vers. 3.10.1588.1229&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1458"&gt;@ChrisLynch&lt;/a&gt;&amp;nbsp;if I absolutely butcher something in here, just pretend like you didnt see it, I dont want you to think I just dump your awesome Powershell modules into a garbage disposal lol.&lt;/P&gt;&lt;P&gt;To begin, I have created a local read-only account on my OneView instances, lets call it 'ovreporting' and lets say it has a password of 'PASSWORD'. Lets also say my OneView appliances are named 'ovapp01' 'ovapp02' and 'ovapp03'&lt;/P&gt;&lt;P&gt;To begin I start my script by building out some variables I am going to use throughout. The formatting might get garbled in here, so apologies if this looks nasty&lt;/P&gt;&lt;P&gt;----------------------------------&lt;/P&gt;&lt;P&gt;$appliances = @('ovapp01','ovapp02','ovapp03')&lt;BR /&gt;$reportUsername = 'ovreporting'&lt;BR /&gt;$reportPassword = 'PASSWORD'&lt;BR /&gt;$filePath = "\\UNC_PATH\Scheduled_Reports\OneView_Reports\"&lt;BR /&gt;$date = Get-Date&lt;BR /&gt;$fileDate = "_" + $Date.Year + "-" + $Date.Month + "-" + $Date.Day&lt;BR /&gt;$reportName = @{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;serverInventory = "Server_Inventory";&lt;BR /&gt;}&lt;BR /&gt;$exportPath = @{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;serverInventory = $filePath + "Server_Inventory\" + $reportName.serverInventory + $fileDate + ".csv";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have several other reports that run in this manner, so you can follow that format within the $reportName and $exportPath variable depending on what info you are retreiving.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Note that you can also use the Global variable for appliance connection, I just wasnt aware of it when I initially started writing this script, and I just havent made it back around to correct, i just use the $appliances variable when i need to refer to 'all'&lt;/P&gt;&lt;P&gt;Then I loop through and connect to all of my appliances below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ForEach ($appliance in $appliances)&lt;BR /&gt;{&lt;BR /&gt;Connect-HPOVMgmt -Hostname $appliance -AuthLoginDomain Local -UserName $reportUsername -Password $reportPassword&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From here I have jumped into a specific cmdlet 'Get-HPOVServer' and I pulled out only the information my Management wanted in a specific report. Again, I steer them to the built in reports as often as possible, but I still have to provide what is requested of me. I clean up the column headers just a touch and then just dump it to a .csv in the filepath we defined earlier.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Get-HPOVServer -ApplianceConnection $appliances |&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Select-Object -Property @{Name="Name"; Expression={$_.name}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Server Name"; Expression={$_.serverName}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Serial Number"; Expression={$_.serialNumber}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Asset Tag"; Expression={$_.assetTag}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Status"; Expression={$_.status}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Profile State"; Expression={$_.state}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Power State"; Expression={$_.powerState}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Intelligent Provisioning Version"; Expression={$_.intelligentProvisioningVersion}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="License Type"; Expression={$_.licensingIntent}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Model"; Expression={$_.model}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Form Factor"; Expression={$_.formFactor}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Part Number"; Expression={$_.partNumber}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="RAM Count - GB"; Expression={$_.memoryMb / 1024}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Processor Model"; Expression={$_.processorType}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Processor Speed MHz"; Expression={$_.processorSpeedMhz}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Processor Socket Count"; Expression={$_.processorCount}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Processor Core Count"; Expression={$_.processorCoreCount}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="iLO Version"; Expression={$_.mpModel}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="iLO Firmware Version"; Expression={$_.mpFirmwareVersion}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="iLO Hostname"; Expression={$_.mpHostInfo.mpHostName}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="iLO IP"; Expression={$_.mpHostInfo.mpIpAddresses | Select-Object -ExpandProperty address}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="ROM Version"; Expression={$_.romVersion}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Source OneView Appliance"; Expression={$_.applianceConnection.name}} |&lt;BR /&gt;Export-Csv -NoTypeInformation -Path $exportPath.serverInventory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Once that is done I just loop through a disconnect and there you have a quick and easy report from the Powershell modules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ForEach ($appliance in $appliances)&lt;BR /&gt;{&lt;BR /&gt;Disconnect-HPOVMgmt -Hostname $appliance&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have used this method to build out several reports. There are several ways of pulling out what you need from a cmdlet to set up a different report. I personally prefer to pipe the results of a 'get-something' or 'show-something' cmdlet to 'format-custom' and then out-file so that I can open it up in notepad++ and have it as reference while I build out what I want from the report.&amp;nbsp;You can also pipe to a 'Get-Member', or even a 'Select-Object *' to find out what all is returned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a handy one I use to tell me which of my Servers have a broken registration to IRS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Get-HPOVServer -ApplianceConnection $appliances |&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Select-Object -Property @{Name="Name"; Expression={$_.name}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Serial Number"; Expression={$_.serialNumber}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Model"; Expression={$_.model}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="IRS Status"; Expression={$_.remoteSupportSettings.remoteSupportCurrentState}},&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;@{Name="Registered Via"; Expression={$_.remoteSupportSettings.destination}} |&lt;BR /&gt;Export-Csv -NoTypeInformation -Path $exportPath.insightRemoteSupportStatus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hopefully that makes sense or gives you some guidance. Let me know if you have a question about my wall of text above, hopefully I will be able to answer it!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Cottoc&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 22:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7005048#M2914</guid>
      <dc:creator>Cottoc</dc:creator>
      <dc:date>2018-05-07T22:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: OneView Custom Report</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7005277#M2915</link>
      <description>&lt;P&gt;Perfect outline to what I was looking for.&lt;/P&gt;&lt;P&gt;Thanks for the help - it is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 14:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7005277#M2915</guid>
      <dc:creator>Chris_L1</dc:creator>
      <dc:date>2018-05-09T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: OneView Custom Report</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7005297#M2916</link>
      <description>&lt;P&gt;Going to have to open new string - now requesting more information including:&lt;/P&gt;&lt;P&gt;CPU Utilization, Power Utilization, Temperature - on an hourly basis to span a full month.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 17:41:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7005297#M2916</guid>
      <dc:creator>Chris_L1</dc:creator>
      <dc:date>2018-05-09T17:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: OneView Custom Report</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7018262#M3331</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;A href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1672049" target="_self"&gt;&lt;SPAN class=""&gt;Chris_L1&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am a newbie in scripting. like you, i want to add more report to oneview (v4.10). I would like to make a script or report that is able to retrieve Memory/CPU performance in a week for in specific period,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you intruct me steps to create that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you a&amp;nbsp; lot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tien&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 09:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7018262#M3331</guid>
      <dc:creator>Tienna</dc:creator>
      <dc:date>2018-09-14T09:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: OneView Custom Report</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7018272#M3332</link>
      <description>&lt;P&gt;&lt;SPAN&gt;HI&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1672049" target="_self"&gt;&lt;SPAN class=""&gt;Chris_L1&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; and&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1615572" target="_self"&gt;Cottoc&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Go through this thread, i still have some questions regarding:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;- How to run these scripts?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;- Where output is placed ($filePath = "\\UNC_PATH\Scheduled_Reports\OneView_Reports\"), on client you run script or on Oneview appliant?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thank you for your support&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 10:35:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7018272#M3332</guid>
      <dc:creator>Tienna</dc:creator>
      <dc:date>2018-09-14T10:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: OneView Custom Report</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7026117#M3545</link>
      <description>&lt;P&gt;this is a great post and learned me to get serverproperties. However I am looking for temperature values for each server. Any Idea how to get them via Powershell?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 15:49:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7026117#M3545</guid>
      <dc:creator>Broomer</dc:creator>
      <dc:date>2018-11-21T15:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: OneView Custom Report</title>
      <link>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7109475#M5832</link>
      <description>&lt;P&gt;hi&amp;nbsp; I find some like your script.&lt;/P&gt;&lt;P&gt;1. Question. its posible get 3 months Cpu utilization information , or the quanty off the months could depends of the storage in the appliance? Oneview only have realtime information about power, cpu, power right.&lt;/P&gt;&lt;P&gt;Thks for your time and your experience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 21:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/oneview-custom-report/m-p/7109475#M5832</guid>
      <dc:creator>Izaac</dc:creator>
      <dc:date>2020-11-17T21:41:20Z</dc:date>
    </item>
  </channel>
</rss>

