Server Management - Remote Server Management
cancel
Showing results for 
Search instead for 
Did you mean: 

Changing iLO Hostname using PowerShellScript

 
Highlighted
Occasional 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.

1 REPLY 1
Highlighted
Occasional Advisor

Re: Changing iLO Hostname using PowerShellScript

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