<?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: Change iLO hostname using RedFish API in Server Management - Remote Server Management</title>
    <link>https://community.hpe.com/t5/server-management-remote-server/change-ilo-hostname-using-redfish-api/m-p/7186503#M9695</link>
    <description>&lt;P&gt;OK, I found :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --insecure --silent --header "X-auth-Token: ${iLOAuth}" --request GET ${iLOSSO}/redfish/v1?$expand=* | jq -r '.'&lt;/LI-CODE&gt;&lt;P&gt;gives in part:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"Oem": {
        "Hpe": {
            "@odata.type": "#HpeiLOServiceExt.v2_0_0.HpeiLOServiceExt",
            "Links": {
                "ResourceDirectory": {
                    "@odata.id": "/redfish/v1/ResourceDirectory/"
                }
            },
            "Manager": [
                {
                    "DefaultLanguage": "en",
                    "FQDN": "edited",
                    "HostName": "ILO",&lt;/LI-CODE&gt;&lt;P&gt;I'm just not sure how to get down to the Manager array under Oem/Hpe.&amp;nbsp; Does anyone have an idea?&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 13:29:11 GMT</pubDate>
    <dc:creator>bradawk1</dc:creator>
    <dc:date>2023-04-17T13:29:11Z</dc:date>
    <item>
      <title>Change iLO hostname using RedFish API</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/change-ilo-hostname-using-redfish-api/m-p/7186493#M9694</link>
      <description>&lt;P&gt;I'm searching through &lt;A href="https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/" target="_blank" rel="noopener"&gt;iLO RedFish API&lt;/A&gt; , but have not found the answer yet.&amp;nbsp; We have about 600 new servers with iLO interface names as set at the factory.&amp;nbsp; We want to change them to our naming convention.&amp;nbsp; I know how to change it with hponcfg, but don't want to have to log in to every server to run that.&amp;nbsp; Does anyone know the correct RedFish API call to change the ilO hostname?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 13:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/change-ilo-hostname-using-redfish-api/m-p/7186493#M9694</guid>
      <dc:creator>bradawk1</dc:creator>
      <dc:date>2023-04-17T13:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change iLO hostname using RedFish API</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/change-ilo-hostname-using-redfish-api/m-p/7186503#M9695</link>
      <description>&lt;P&gt;OK, I found :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --insecure --silent --header "X-auth-Token: ${iLOAuth}" --request GET ${iLOSSO}/redfish/v1?$expand=* | jq -r '.'&lt;/LI-CODE&gt;&lt;P&gt;gives in part:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"Oem": {
        "Hpe": {
            "@odata.type": "#HpeiLOServiceExt.v2_0_0.HpeiLOServiceExt",
            "Links": {
                "ResourceDirectory": {
                    "@odata.id": "/redfish/v1/ResourceDirectory/"
                }
            },
            "Manager": [
                {
                    "DefaultLanguage": "en",
                    "FQDN": "edited",
                    "HostName": "ILO",&lt;/LI-CODE&gt;&lt;P&gt;I'm just not sure how to get down to the Manager array under Oem/Hpe.&amp;nbsp; Does anyone have an idea?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 13:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/change-ilo-hostname-using-redfish-api/m-p/7186503#M9695</guid>
      <dc:creator>bradawk1</dc:creator>
      <dc:date>2023-04-17T13:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change iLO hostname using RedFish API</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/change-ilo-hostname-using-redfish-api/m-p/7186504#M9696</link>
      <description>&lt;P&gt;I figured it out.&amp;nbsp; Can see the current iLO hostname with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --insecure --silent --location --header "X-Auth-Token: ${iLOAuth}" --request GET ${iLOSSO}/redfish/v1/Managers/1/NetworkProtocol | jq -r '.'&lt;/LI-CODE&gt;&lt;P&gt;Then to change, I ran:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SERVER=new-ilo-hostname
echo '{"HostName": "'${SERVER}'"}' &amp;gt; set-ilo
curl --insecure --silent --location --include --header "Content-Type: appliation/json" --header "X-Auth-Token: ${iLOAuth}" --data "@set-ilo" --request PATCH ${iLOSSO}/redfish/v1/Managers/1/NetworkProtocol&lt;/LI-CODE&gt;&lt;P&gt;I got back:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;HTTP/1.1 200 OK&lt;/LI-CODE&gt;&lt;P&gt;When I ran the GET call again, the hostname has been changed!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 13:57:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/change-ilo-hostname-using-redfish-api/m-p/7186504#M9696</guid>
      <dc:creator>bradawk1</dc:creator>
      <dc:date>2023-04-17T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change iLO hostname using RedFish API</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/change-ilo-hostname-using-redfish-api/m-p/7186560#M9697</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/2136981"&gt;@bradawk1&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's excellent!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are glad to know you were able to find the solution and we appreciate you for keeping us updated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 03:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/change-ilo-hostname-using-redfish-api/m-p/7186560#M9697</guid>
      <dc:creator>Sunitha_Mod</dc:creator>
      <dc:date>2023-04-18T03:38:18Z</dc:date>
    </item>
  </channel>
</rss>

