Enabling iLO DHCP service

NOTE:

The DHCP service must be enabled, if the input.json is created by selecting the option DHCP for the OOBM IP Allocation field in the TICG. If the option selected is Manual, this step can be skipped. For more information on configuring static iLO IP addresses, see Assigning static iLO-OOBM IP address to all servers. Ensure you update the corresponding parameter values in your input JSON file.

If a third-party OOBM switch is used, see Assigning DHCP to iLO servers for third-party switches.

Prerequisites
  • Ensure you are logged in as the root user in the NPS toolkit VM.

  • Ensure that the netconf is enabled, when the management switch is Comware.

  • Ensure that DHCP is enabled on all the HPE DL/EL servers.

  • Ensure that the following environment variables are updated:

    export API_IP=<NPS Toolkit VM OAM/Customer Network IP address>
    export NPSADMIN=<user name of admin mentioned in the nps_secret.yaml file>
    export NPSPASSWD=<password of admin user mentioned in the nps_secret.yaml file>
    export TOPOLOGY_NAME=<value of the field "topology_name" in the input.json file>
    export VIM_TYPE=<VIM platform type like RHOSP/RHOCP/VMWARE>
Procedure
  1. Enable the DHCP service using the following command:
    nps deploy -s dhcp -nos <nos_type> -l debug

    Where nos is the network operating system and the supported <nos_type> is comware or cumulus.

  2. Verify the status of the DHCP service using the following command:
    nps show --service dhcp
    Wait until the status is displayed as running, failed, or error.
    • If the status is displayed as running, wait for 3 minutes. To verify whether the iLO IP address is assigned to the server through the DHCP service, run the following command:

      nps show --data servers

      In the result:

      • If the iLO IP address is displayed as NA, analyze the <topology_name>_dhcp_helper_<HH:MM>_<date>.log file in the /var/nps/logs/<topology_name>/ directory. Based on the log files, perform corrective actions and check the status again.

      • If the iLO IP addresses are displayed, record the iLO IP address of all the servers. For each server, run the following command:

        nps show --data servers --node <iLO IP address of corresponding server>
      • Verify that the DHCP status is displayed as dhcp: success in the state property.

    • If the status is displayed as failed or error, analyze the <topology_name>_dhcp_helper_<HH:MM>_<date>.log file in the /var/nps/logs/<topology_name>/ directory. Based on the log files, perform corrective actions and check the status again.

  3. After all the servers have their iLO IP addresses, run the following command to stop the DHCP deployment service:
    nps stop --service dhcp