Server Management - Remote Server Management

Configure iLO 5 on muliple ESXi host

 
RogerH1
Occasional Visitor

Configure iLO 5 on muliple ESXi host

Is it possible to use the HPONCFG tool to configure multiple ESXi Hosts at a time.  Since we're using static IPs that are already configured by a third party service company that installs our hardware we wouldn't need to include the IPs.  I was thinking we would want to use variable for values that we would need to change, for example, assuming we would need to authenticate to each host as was executing the script and other items like "DNS_NAME"?

Does anyone have experience doing this?  

Sample HPONCFG export below

<!-- HPONCFG VERSION = "5.4-0.0.0" -->
<!-- Generated 2/25/2021 21:6:54 -->
<RIBCL VERSION="2.1">
<LOGIN USER_LOGIN="Administrator" PASSWORD="password">
<DIR_INFO MODE="write">
<MOD_DIR_CONFIG>
<DIR_AUTHENTICATION_ENABLED VALUE = "Y"/>
<DIR_LOCAL_USER_ACCT VALUE = "Y"/>
<DIR_SERVER_ADDRESS VALUE = "domain.com"/>
<DIR_SERVER_PORT VALUE = "636"/>
<DIR_OBJECT_DN VALUE = ""/>
<DIR_OBJECT_PASSWORD VALUE = ""/>
<DIR_USER_CONTEXT_1 VALUE = "CN=Server_Admins,OU=Security Groups,DC=domain,DC=com"/>
<DIR_USER_CONTEXT_2 VALUE = ""/>
<DIR_USER_CONTEXT_3 VALUE = ""/>
</MOD_DIR_CONFIG>
</DIR_INFO>
<RIB_INFO MODE="write">
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = "Y"/>
<NIC_SPEED VALUE = "10"/>
<FULL_DUPLEX VALUE = "N"/>
<IP_ADDRESS VALUE = "192.168.12.170"/>
<SUBNET_MASK VALUE = "255.255.255.0"/>
<GATEWAY_IP_ADDRESS VALUE = "192.168.12.1"/>
<DNS_NAME VALUE = "iLO-sprc1ntxesxi22"/>
<PRIM_DNS_SERVER value = "192.168.10.34"/>
<SEC_DNS_SERVER value = "192.168.10.35"/>
<TER_DNS_SERVER value = "192.168.11.34"/>
<DHCP_ENABLE VALUE = "N"/>
<DOMAIN_NAME VALUE = "domain.com"/>
<DHCP_GATEWAY VALUE = "Y"/>
<DHCP_DNS_SERVER VALUE = "Y"/>
<DHCP_STATIC_ROUTE VALUE = "Y"/>
<DHCP_WINS_SERVER VALUE = "Y"/>
<REG_WINS_SERVER VALUE = "Y"/>
<PRIM_WINS_SERVER value = "0.0.0.0"/>
<STATIC_ROUTE_1 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/>
<STATIC_ROUTE_2 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/>
<STATIC_ROUTE_3 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/>
</MOD_NETWORK_SETTINGS>
</RIB_INFO>
<USER_INFO MODE="write">
</USER_INFO>
</LOGIN>
</RIBCL>

2 REPLIES 2
RogerH1
Occasional Visitor

Re: Configure iLO 5 on muliple ESXi host

Ok, so I think I was on the wrong track trying to use HPONCFG.  For this use case anyway.  I didn't realize there were PowerShell modules available.  Since these hosts will already have IP I think PS will be a much better option.  However, now I'm running into a new hurdle.  When I try to run "Install-Module -Name HPEiLOCmdlets -Verbose"  I get the error below.  I've tried to update "PowerShellGet" and seems it is installing, but ver. 1.0.0.1 remains...  Any help would be welcomed.

WARNING: The specified module 'HPEiLOCmdlets' with PowerShellGetFormatVersion '2.0' is not supported by the current version of PowerShellGet. Get the latest version of the PowerShellGet module to install this modu
le, 'HPEiLOCmdlets'.

PS C:\Windows\system32> get-module -ListAvailable PowerShellGet

Directory: C:\Program Files (x86)\WindowsPowerShell\Modules


ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.0.0.1 PowerShellGet {Install-Module, Find-Module, Save-Module, Update-Module...}


Directory: C:\Program Files\WindowsPowerShell\Modules


ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 2.2.5 PowerShellGet {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability...}
Script 1.0.0.1 PowerShellGet {Install-Module, Find-Module, Save-Module, Update-Module...}

SanjeevGoyal
HPE Pro

Re: Configure iLO 5 on muliple ESXi host

Hello,

Please try as below.

Install-PackageProvider Nuget –Force

then

Install-Module –Name PowerShellGet –Force

then close your console, and reopen it before installing universaldashboard. community again

 

If you feel this was helpful please click the KUDOS! thumb below!   

Regards,


I am a HPE Employee

Accept or Kudo