- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Remote Server Management
- >
- Set-HPEiLOIPv4NetworkSetting and iLO4
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2018 12:43 PM - edited тАО09-14-2018 12:50 PM
тАО09-14-2018 12:43 PM - edited тАО09-14-2018 12:50 PM
In version 2.0.0.1, cmdlet Set-HPEiLOIPv4NetworkSetting does not seem to apply certain parameters to iLO4.
Parameters that will not apply no matter what:
-DNSServerType
-DNSServer
-DomainName
-WINSServerType
-WINSServer
Parameters that do work:
-InterfaceType
-RegisterDDNSServer
-RegisterWINSServer
PS D:\> $connection = Connect-HPEiLO -Server 1.1.2.2 -Username admin -Password password -DisableCertificateAuthentication PS D:\> $connection IP : 1.1.2.2 Hostname : ConnectionType : RIBCL DisableCertificateAuthentication : True iLOGeneration : iLO4 iLOFirmwareVersion : 2.61 iLOResetWaitTimeout : 0 IsConnected : True ServerFamily : ProLiant ServerGeneration : Gen8 ServerModel : BL460c Timeout : 30 Username : admin PS D:\> $DNSServerTypes = ,@("Primary","Secondary","Tertiary") PS D:\> $DNSServers = ,@("3.3.3.3", "4.4.4.4", "5.5.5.5") PS D:\> Set-HPEiLOIPv4NetworkSetting -connection $connection ` >> -InterfaceType Dedicated ` >> -RegisterDDNSServer Enabled ` >> -RegisterWINSServer Disabled ` >> -DNSServerType $DNSServerTypes ` >> -DNSServer $DNSServers -Verbose VERBOSE: Performing the operation "Set-HPEiLOIPv4NetworkSetting" on target "IP: 1.1.2.2". VERBOSE: [Set-HPEiLOIPv4NetworkSetting] Executing the cmdlets with 1 task serially. VERBOSE: [Set-HPEiLOIPv4NetworkSetting][1.1.2.2]: Validating input parameter values. VERBOSE: [Set-HPEiLOIPv4NetworkSetting][1.1.2.2]: Validating Cmdlet supportability. VERBOSE: [Set-HPEiLOIPv4NetworkSetting][1.1.2.2]: Validating parameter supportability. VERBOSE: [Set-HPEiLOIPv4NetworkSetting][1.1.2.2]: Validating for set of parameters to be given. VERBOSE: [Set-HPEiLOIPv4NetworkSetting][1.1.2.2]: Creating web request. VERBOSE: [Set-HPEiLOIPv4NetworkSetting][1.1.2.2]: Writting request stream. VERBOSE: [Set-HPEiLOIPv4NetworkSetting][1.1.2.2]: Getting web response. VERBOSE: [Set-HPEiLOIPv4NetworkSetting][1.1.2.2]: Processing RIBCL response.
It appears to execute but some parameters do not set at all.
What am I missing here?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2018 12:11 AM
тАО09-17-2018 12:11 AM
SolutionHi,
You have missed including -DHCPv4DNSServer and DHCPv4WINSServer which need to be disabled.
Otherwise by default DHCP enabled IP's will take DNS and WINS server settings from DHCP server.
$out = Set-HPEiLOIPv4NetworkSetting -connection $con16 -InterfaceType Dedicated -RegisterDDNSServer Enabled -DNSServerType $DNSServerTypes -DNSServer $DNSServers -RegisterWINSServer Enabled -Verbose -DHCPv4DNSServer Disabled -WINSServerType $WINSTypes -WINSServer $WINSServers -DHCPv4WINSServer Disabled
Try this and let me know i hope it should work i tried it on iLO4.
Thanks,
Gokul
I am a HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2018 05:37 AM - edited тАО09-17-2018 05:52 AM
тАО09-17-2018 05:37 AM - edited тАО09-17-2018 05:52 AM
Re: Set-HPEiLOIPv4NetworkSetting and iLO4
Thank you, that worked. Holy cow was that frustrating!! I also needed to add -DHCPv4DomainName Disabled for the DomainName parameter to update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2020 12:14 AM - edited тАО01-20-2020 12:17 AM
тАО01-20-2020 12:14 AM - edited тАО01-20-2020 12:17 AM
Re: Set-HPEiLOIPv4NetworkSetting and iLO4
Unfortunatelly it does not work if you want to change DNS server settings when DHCP is disabled (tested on latest HPEiLOCmdlets module version 2.2.0.0). The StatusInfo message is "DHCP is currently disabled, enable DHCP to use any DHCP setting"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2020 12:48 PM
тАО01-28-2020 12:48 PM
Re: Set-HPEiLOIPv4NetworkSetting and iLO4
@olafT , I recommend posting the problem in a new thread since this particular issue was Resolved over a year ago.
However, what works for me when using version 2.0.0.1 (needed for certain iLO3 settings that don't apply with a newer version of the cmdlets)
Set-HPEiLOIPv4NetworkSetting -connection $connection `
-InterfaceType Dedicated `
-DHCPv4NTPServer Disabled `
-DHCPv4DNSServer Disabled `
-DHCPv4DomainName Disabled `
-DHCPv4WINSServer Disabled `
-DHCPv4StaticRoute Disabled `
-DNSName $DNSName `
-DNSServerType $DNSServerTypes `
-DNSServer $DNSServers `
-RegisterDDNSServer Enabled `
-DomainName $DomainName `
-WINSServerType $WINSServerTypes `
-WINSServer $WINSServers `
-RegisterWINSServer Disabled -Wa SilentlyContinue | Out-Null
Variables:
$DNSName = "dnsname-mng"
$DNSServerTypes = ,@("Primary","Secondary","Tertiary")
$DNSServers = ,@("1.1.1.1", "1.1.1.2", "1.1.1.3")
$DomainName = "domain.com"
$WINSServerTypes = ,@("Primary","Secondary")
$WINSServers = ,@("0.0.0.0", "0.0.0.0")
Also, since I don't use IPv6, I also disable the options there.
Set-HPEiLOIPv6NetworkSetting -connection $connection `
-InterfaceType Dedicated `
-PreferredProtocol Disabled `
-StatelessAddressAutoConfiguration Disabled `
-DHCPv6StatefulMode Disabled `
-DHCPv6SNTPSetting Disabled `
-DHCPv6DNSServer Disabled `
-DHCPv6StatelessMode Disabled `
-RegisterDDNSServer Disabled -Wa SilentlyContinue | Out-Null
I hope this helps you out!