<?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: Retrieve information about &amp;quot;Operating System&amp;quot; via iLO PowerShell cmdlets in ProLiant Servers (ML,DL,SL)</title>
    <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193394#M182525</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do not add "&lt;SPAN&gt;-OutputType RawResponse", then you will likely see what you noticed in the output. I would add that and check what result you have.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regarding the use of Select-String...I do not have much experience with using this either, but this should give you something similar to what grep does in Linux. There are different variables that can be used with this that should make it easier to parse the information from the Get-HPEiLOServerInfo command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 19:54:38 GMT</pubDate>
    <dc:creator>thutchings</dc:creator>
    <dc:date>2023-08-02T19:54:38Z</dc:date>
    <item>
      <title>Retrieve information about "Operating System" via iLO PowerShell cmdlets</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193237#M182500</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;how can I retrieve the information about "Operating System" via iLO PowerShell cmdlets at iLO4 and iLO5?&lt;/P&gt;&lt;P&gt;Inormation &amp;gt; Overview &amp;gt; Server &amp;gt; &lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iLO Operating System.jpg" style="width: 810px;"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/136405iC25DC8C5D0EAA185/image-size/large?v=v2&amp;amp;px=2000" role="button" title="iLO Operating System.jpg" alt="iLO Operating System.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 03:56:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193237#M182500</guid>
      <dc:creator>Flankengott</dc:creator>
      <dc:date>2023-08-02T03:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193252#M182503</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This type of information about the OS and other various SW related items, is retrieved by the iLO using the Agentless Management Service (AMS). You can get this for RHEL here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_dc65ecbdcd2343858629d86281" target="_blank"&gt;https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_dc65ecbdcd2343858629d86281&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most supported operating systems have an option to use this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 11:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193252#M182503</guid>
      <dc:creator>thutchings</dc:creator>
      <dc:date>2023-08-01T11:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193255#M182504</link>
      <description>&lt;P&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1832546"&gt;@thutchings&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;thanks for you answer.&lt;/P&gt;
&lt;P&gt;AMS is already isnstalled.&lt;/P&gt;
&lt;P&gt;This is the reason why the "operating system" is known by iLO&lt;/P&gt;
&lt;P&gt;My question was:&lt;/P&gt;
&lt;P&gt;How can I retrieve the information about "Operating System" &lt;STRONG&gt;via iLO PowerShell cmdlets&lt;/STRONG&gt; at iLO4 and iLO5?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What iLO PowerShell cmdlet&lt;/STRONG&gt; do I have to use to get this "Operating System" information, mentioned in the screenshot above.&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;P&gt;Get-HPEiLO Overview Information.....???!!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 03:54:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193255#M182504</guid>
      <dc:creator>Flankengott</dc:creator>
      <dc:date>2023-08-02T03:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193364#M182518</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I thought you provided the screenshot as an example of what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested this out and found that the command "Get-HPEiLOServerInfo -Connection $conn -OutputType RawResponse -Verbose" does provide the OS information:&lt;BR /&gt;&lt;BR /&gt;"HostOS": {&lt;BR /&gt;"OsName": "VMware ESXi",&lt;BR /&gt;#1 SMP Release build-16324942 Jun 2 2020 10:08:07 x86_64 x86_64 x86_64 ESXi"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is quite a bit of information provided with the above command, so I suspect it will likely require a Select-String command in order to parse the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:50:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193364#M182518</guid>
      <dc:creator>thutchings</dc:creator>
      <dc:date>2023-08-23T13:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193365#M182519</link>
      <description>&lt;P&gt;Hi thutchings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;At least that looks a bit better now. (A huge amount of information.......)&lt;BR /&gt;Will try to use Select-String. Never worked with it.&lt;BR /&gt;Hopefully this works.&lt;BR /&gt;&lt;BR /&gt;Do you have another suggestion / cmdlet beside this "Select-String" ?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 14:08:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193365#M182519</guid>
      <dc:creator>Flankengott</dc:creator>
      <dc:date>2023-08-02T14:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193371#M182521</link>
      <description>&lt;P style="margin: 0;"&gt;Hi @&lt;A id="link_1" href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1832546" target="_self" aria-label="View Profile of thutchings"&gt;thutchings&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Even I tried the same command but I did not get the desired output. Is there something I am missing ? Is it because of the ILO user previlages ? Host OS details are missing in the output.&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;FanInfo : {HPE.iLO.Response.Redfish.Fan, HPE.iLO.Response.Redfish.Fan, HPE.iLO.Response.Redfish.Fan, HPE.iLO.Response.Redfish.Fan...}&lt;BR /&gt;FirmwareInfo : {HPE.iLO.Response.Redfish.FirmwareInformation, HPE.iLO.Response.Redfish.FirmwareInformation, HPE.iLO.Response.Redfish.FirmwareInformation, &lt;BR /&gt;HPE.iLO.Response.Redfish.FirmwareInformation...}&lt;BR /&gt;TemperatureInfo : {HPE.iLO.Response.Redfish.Temperature, HPE.iLO.Response.Redfish.Temperature, HPE.iLO.Response.Redfish.Temperature, &lt;BR /&gt;HPE.iLO.Response.Redfish.Temperature...}&lt;BR /&gt;MemoryInfo : HPE.iLO.Response.Redfish.MemoryInfoDetail&lt;BR /&gt;NICInfo : HPE.iLO.Response.Redfish.NICInfoDetail&lt;BR /&gt;PowerSupplyInfo : HPE.iLO.Response.Redfish.PowerSupply&lt;BR /&gt;ProcessorInfo : {HPE.iLO.Response.Redfish.Processor, HPE.iLO.Response.Redfish.Processor}&lt;BR /&gt;HealthSummaryInfo : HPE.iLO.Response.Redfish.HealthSummaryInfo&lt;BR /&gt;ServerName : localhost.localdomain&lt;BR /&gt;HostOS : &lt;BR /&gt;IP :&amp;nbsp;&lt;BR /&gt;Hostname :&amp;nbsp;&lt;BR /&gt;Status : OK&lt;BR /&gt;StatusInfo :&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193371#M182521</guid>
      <dc:creator>Kashyap02</dc:creator>
      <dc:date>2023-08-23T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193394#M182525</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do not add "&lt;SPAN&gt;-OutputType RawResponse", then you will likely see what you noticed in the output. I would add that and check what result you have.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regarding the use of Select-String...I do not have much experience with using this either, but this should give you something similar to what grep does in Linux. There are different variables that can be used with this that should make it easier to parse the information from the Get-HPEiLOServerInfo command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 19:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193394#M182525</guid>
      <dc:creator>thutchings</dc:creator>
      <dc:date>2023-08-02T19:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193472#M182536</link>
      <description>&lt;P style="margin: 0;"&gt;Thank you. I got the desired output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 09:24:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193472#M182536</guid>
      <dc:creator>Kashyap02</dc:creator>
      <dc:date>2023-08-03T09:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193501#M182543</link>
      <description>&lt;P&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1929236"&gt;@Kashyap02&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Kashyap02,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;could you please share your script with your&lt;/SPAN&gt;&amp;nbsp;desired output&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 05:41:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193501#M182543</guid>
      <dc:creator>Flankengott</dc:creator>
      <dc:date>2023-08-04T05:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve information about "Operating System" via iLO PowerShell cmdlets</title>
      <link>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193647#M182572</link>
      <description>&lt;P&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1648530"&gt;@Flankengott&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hi, You can use the below set of commands to retrieve just the OS from ILO cmdlets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;$conn = Connect-HPEiLO -Address &amp;lt;ILO IP&amp;gt; -Username &amp;lt;ILO Username&amp;gt; -Password &amp;lt;ILO Password&amp;gt; -DisableCertificateAuthentication&lt;BR /&gt;$response = $(Get-HPEiLOServerInfo -Connection $conn -OutputType RawResponse).ToString()&lt;BR /&gt;$pattern = [Regex]::new('(?&amp;lt;="HostOS":)(.*)(?=,"IntelligentProvisioningAlwaysOn)')&lt;BR /&gt;$HostOs = [regex]::Match($response,$pattern).Groups[1].Value&amp;nbsp; | ConvertFrom-Json&lt;BR /&gt;$HostOs&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried this. got the below output.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OsName OsSysDescription OsType OsVersion&lt;BR /&gt;------ ---------------- ------ ---------&lt;BR /&gt;Red Hat Enterprise Linux Linux localhost.localdomain 4.18.0-372.9.1.el8.x86_64 #1 SMP Fri Apr 15 22:12:19 EDT 2022 x86_64 40 8.6&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 05:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/proliant-servers-ml-dl-sl/retrieve-information-about-quot-operating-system-quot-via-ilo/m-p/7193647#M182572</guid>
      <dc:creator>Kashyap02</dc:creator>
      <dc:date>2023-08-07T05:41:34Z</dc:date>
    </item>
  </channel>
</rss>

