Server Management - Remote Server Management
1752295 Members
4672 Online
108786 Solutions
New Discussion

Changing iLO Hostname using PowerShellScript

 
JonasPonas
Advisor

Changing iLO Hostname using PowerShellScript

Hello everyone,

Server:  Synergy 480 Gen9 iLO 4

Powershell module: https://www.powershellgallery.com/packages/HPEiLOCmdlets/3.0.0.0

I am trying to change  - iLO Subsystem Name (Hostname). When i execute script: 

    Get-HPEiLOIPv4NetworkSetting -Connection $iLOConnection
    $DNSName = Set-HPEiLOIPv4NetworkSetting -Connection $iLOConnection -InterfaceType Dedicated -DNSName "NewHostName"
     if ($test.Status -contains "Error") 
        {
            Write-Host "Error Category: $($DNSName.StatusInfo.Category)" -ForegroundColor Red
            Write-Host "Error Message: $($DNSName.StatusInfo.Message)" -ForegroundColor Red
            Write-Host "IPV4...Failed" -ForegroundColor Red
            break;
        }

I get error 

Error Category: FeatureSupportability
Error Message: Feature not supported - SHARED_NETWORK_PORT
IPV4...Failed

If i execute command Get-HPEiLOIPv4NetworkSetting -Connection $iLOConnection I get all the information i need about the iLO network settings. Snippet of information:

PermanentMACAddress : 94:18:82:04:0e:73
MACAddress : 94:18:82:04:0e:73
DNSName : ILOHOSTNAME
DomainName :
SpeedAutoselect : Enabled
PingGatewayOnStartup : Enabled
iLONICAutoDelay : 90

My question would be how to change iLO Subsystem Name (Hostname)?  Every other command that i used with HPEiLOCmdlets work, this Set-HPEiLOIPv4NetworkSettings doesn't work and I always get SHARED_NETWORK_PORT.  I can change the iLO Hostname manually through the iLO GUI. My iLO is Dedicated Network Port.

2 REPLIES 2
JonasPonas
Advisor

Re: Changing iLO Hostname using PowerShellScript

Tried on BL460c Gen8, it worked out fine. There could be a problem with the server.

FR01
HPE Pro

Re: Changing iLO Hostname using PowerShellScript

Hello, 

Do you face the issue with all synergy compute or specifc to this synergy compute 

Regards,

FR01


I am an HPE Employee

Accept or Kudo